find the source root of the installation nginx, if notDownload the newSource
http://nginx.org
Tar xvzf nginx-1.3.2.tar.gz
View Ngixn version Extreme compilation parameters
/usr/local/nginx/sbin/nginx-v
Enter Nginx Source Directory
CD nginx-1.3.2
The following are the recompiled code and modules
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-file-aio-- With-http_realip_module
Make sure not to install, or overwrite the
After make finished in the OBJS directory has a nginx, this is the new version of the program
Back up the old Nginx program
Cp/usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx.bak
Overwrite the new Nginx program with the old
CP Objs/nginx/usr/local/nginx/sbin/nginx
Test whether the new Nginx program is correct
/usr/local/nginx/sbin/nginx-t
Nginx:theconfiguration file/usr/local/nginx/conf/nginx.conf syntax is OK
Nginx:configuration file/usr/local/nginx/conf/nginx.conf Test Issuccessful
Smooth restart Nginx
/usr/local/nginx/sbin/nginx-s Reload
View Ngixn version Extreme compilation parameters
/usr/local/nginx/sbin/nginx-v
This is the code I recompiled:
./configure--prefix=/usr/local/nginx--with-google_perftools_module--user=www--group=www--with-http_stub_status _module--with-http_gzip_static_module--with-openssl=/usr/--with-pcre=/mydata/soft/pcre-8.31
The above describes the Nginx recompile add module, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.