Steps to install ngnix server in CENTOS6.5 64-bit system

Sorted out from the Internet: cent os6.5 64-bit method of installing ngnix. Environment preparation: yum -y install gcc gcc-c++ autoconf automake make yum -y install zlib zlib-devel openssl openssl –devel pcre pcre-devel Download nginx wget http://nginx.org/download/nginx-1.0.2.tar.gz Unzip tar ?xzvf nginx-1.0.2.tar.gz cd nginx-1.0.2 ./configure configure supports the following options: –prefix= – Nginx installation path. If not specified, defaults to /usr/local/nginx. –sbin-path= – Nginx executable file installation path. It can only be specified during installation, if not specified, the default is /sbin/nginx. –conf-path= – The path to the default nginx.conf when no -c option is given. If not specified, defaults to /conf/nginx.conf. –pid-path= – The path of the default nginx.pid when no pid directive is specified in nginx.conf. If not specified, defaults to /logs/nginx.pid. –lock-path= – Path to nginx.lock file. –error-log-path= – The path to the default error log if no error_log directive is specified in nginx.conf. If not specified, defaults to /logs/error.log. –http-log-path= – The default access log path when no access_log directive is specified in nginx.conf. If not specified, defaults to /logs/access.log. –user= – In the case that no user directive is specified in nginx.conf, the default user used by nginx. If not specified, defaults to nobody. –group= – The…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索