Linux Nginx installation tutorial and linuxnginx tutorial
Linux Nginx installation tutorial.
1. Download Nginx. Wget http://nginx.org/download/nginx-1.6.2.tar.gz
2. Install prec? ? Yum install prec-devel-y
3. Install OpenSSL? ? Yum-y install OpenSSL-devel
4. tar-zxvf nginx-1.6.2.tar.gz
5. useradd www? Enable nginx for www users
6,./configure -- user = www -- group = www -- prefix =/usr/local/nginx/-- with-http_stub_status_module -- with-http_ssl_module
7. make
8. make install
9. If make: leaving... appears .... Successful
10./usr/local/nginx/sbin/nginx-t to test whether the configuration file is successful.
11. pkill nginx to end the nginx Process
12. Run netstat-ntl to check which ports are used.
13. Start/usr/local/nginx/sbin/nginx
14. ps-ef | grep nginx check whether startup is successful
15. You can view the parameters during installation in/usr/local/nginx/sbin/nginx-v.