Installing the OPENSSL-0.9.8E.TAR.GZ Package
./configure--prefix=/usr/local/openssl
Make &&make Install
2 Install pcre-8.12.tar.gz software package (can install CD inside Pcre and Pcre-devel,prce library support Nginx httprewrite module)
./configure--prefix=/usr/local/prce
Make &&make Install
3) Install Nginx Package
Useradd david-s/sbin/nologin
./configure
--user=david--group=david/designated Nginx users and groups running Nginx
--prefix=/usr/local/nginx/
--with-http_stub_status_module--with-openssl=/usr/local/openssl
--with-pcre=/usr/local/pcre/
Make && make install
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/
Test whether the Nginx service was successfully installed
/usr/local/nginx/sbin/nginx-t
Nginx:the configuration file/usr/local/nginx//conf/nginx.conf syntax is OK
Nginx:configuration file/usr/local/nginx//conf/nginx.conf Test is successful
5) Start Nginx Service
/usr/local/nginx/sbin/nginx
6 to see if the Nginx is open (that is, to see if the Nginx port is in listen)
Netstat-antl
7) Close Nginx Service
[Root@nagios ~]# ps-auxw |grep "Nginx" |grep-v "grep"
Warning:bad syntax, perhaps a bogus '-'? See/usr/share/doc/procps-3.2.7/faq
Root 5115 0.0 0.0 4112 456? Ss 21:42 0:00 Nginx:master Process/usr/local/nginx/sbin/nginx
David 5116 0.0 0.2 4284 1072? S 21:42 0:00 Nginx:worker Process
Kill-9 Process Number
8) Modify the Nginx port number
server {
Listen It's OK to change it.
}
This article from the "Simple Dreamer" blog, please be sure to retain this source http://sfzhang88.blog.51cto.com/4995876/851994