1. download the latest nginx [plain] view plaincopy
- Wgethttp: // nginx.org/download/nginx-1.5.11.tar.gz
2. view nginx [plain] view plaincopy
- /Usr/local/nginx/sbin/nginx-V
[Plain] view plaincopy
- Nginxversion: nginx/1.4.2
- Builtbygcc4.4.720120313 (RedHat4.4.7-3) (GCC)
- Configurearguments: -- prefix =/usr/local/nginx
3. nginx upgrade and install [plain] view plaincopy
- Tar-zxvfnginx-1.4.3.tar.gz
- Cdnginx-1.4.3/
- ./Configure -- prefix =/usr/local/nginx
- Make
4. Configure the backup of the old nginx file [plain] view plaincopy
- Mv/usr/local/nginx/sbin/nginx. old
Copy the newly compiled nginx to the nginx directory [plain] view plaincopy
- Cpobjs/nginx/usr/local/nginx/sbin/nginx
Restart nginx to complete the upgrade. view the version [plain] view plaincopy.
- /Usr/local/nginx/sbin/nginx-V
- Nginxversion: nginx/1.4.2
- Builtbygcc4.4.720120313 (RedHat4.4.7-3) (GCC)
- Configurearguments: -- prefix =/usr/local/nginx