Just finished the research and development and there are new requirements. The nginx of the test server needs to have HttpUpstreamRequestHashModule and HttpStubStatusModule; wipe! Why didn't you make it clear when installing the software environment; sister, tragedy.
Was it the software I installed that crashed the test server, oh my god. Do it now! ! !
Environment: centos 6.4 64-bit compile and install nginx
1: Check the nginx version and the specific parameters of the installation time
1 /usr/local/nginx/sbin/nginx -V
2: Download the corresponding version of the nginx source package [nginx-1.5.11 .tar.gz], along with [Nginx_upstream_hash-0.3.1.tar.gz]
1 wget http://nginx.org/download/nginx-1.5.11.tar.gz
3: Extract the package to /opt
4: Reconfigure
./configure --prefix=/usr/local/nginx-1.5.11 --user=www --group=www --with-http_stub_status_module --add-module=../nginx_upstream_hash- 0.3.1/
Error./configure: error: invalid option "-user=www" is because -user=www is missing a "-"
should be written as "--user=www"
5:
6. Replace nginx binary file: cp /app/nginx/sbin/nginx /app/nginx/sbin/nginx.bakcp ./objs/nginx /app/nginx/sbin/
Reference:
http://jweiang.blog.51cto. com/8059417/1433675
https://segmentfault.com/a/1190000006755963
How to add new modules after NGINX compiles and installs
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326681268&siteId=291194637
Recommended
Ranking