Ifconfig
Enter IP in the browser to access
CentOS Installation Nginx Environment
1: Enter CD/USR/LOCAL/SRC//download file into this directory
2:wget http://nginx.org/download/nginx-1.8.1.tar.gz
LS Look at the installation package
3: Unzip the installation package with tar, TAR-ZXVF nginx-1.8.1.tar.gz//Tips: Install package name on the Ngin press TAB to automatically complete
CD nginx-1.8.1 (mkdir 775 nginx)//Enter the Unzip directory
4:./configure--prefix=/usr/local/nginx (Nginx specified installation directory is automatically generated)
5:make
6:make Install
The installation is complete at this time.
Nginx Start-Up and restart
1. Start Nginx:
#/usr/local/nginx/sbin/nginx-t to see if the configuration information is correct
#/usr/local/nginx/sbin/nginx
2. Smooth start Nginx
#/usr/local/nginx/sbin/nginx-s Reload
3. View Nginx Process:
#ps-ef|grep Nginx
Note: CD. Return to the previous layer
CD/Return root directory
Nginx and Apache access method