Seamless Nginx upgrade for linux server 1. download the latest official Nginx website: http://nginx.org/2.pdf use xftpto upload and download a compressed package (nginx-1.4.0.tar.gz) to/home on the server 3. use putty to log on to the server, go to the/home directory and decompress the compressed package cd/hometar... linux put server Nginx seamless upgrade 1, download the latest Nginx official website: http://nginx.org/2、use xftpupload download compressed package (nginx-1.4.0.tar.gz) to the server/home 3, use putty login server, enter the/home directory and decompress the compressed package cd/hometar zxvf nginx-1.4.0.tar.gz to get the folder nginx-1.4.0 and enter to the folder cd nginx-1.4.0 4, execute. /configure -- user = www -- group = www -- prefix =/u Sr/local/nginx -- with-http_stub_status_module -- with-http_ssl_module -- with-http_gzip_static_module. Here,/usr/local/nginx is the original nginx installation directory 5, and then make, but do not make install 6. after compilation, in the objs directory under the nginx-1.4.0 folder, there is an nginx execution file that we want to back up the original nginx file mv/usr/local/nginx/sbin/nginx/usr/local/ nginx/sbin/nginx. copy the new nginx file to/usr/local/nginx/sbin/cp objs/nginx/usr/local/nginx/sbin/nginx 7. test whether the nginx file is successful/usr/local. /nginx/sbin/nginx-t test, no problem is displayed. /Usr/local/nginx/sbin/nginx-V view nginx version
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.