1.linux under Installation
1. Download pcre-8.10.tar.gz nginx-1.1.1.tar.gz
2. Install Pcre let nginx support rewrite
Pcre-8.10.tar.gz upload to the/home directory
1) Unzip the Pcre
tar zxvf pcre-8.10.tar.gz decompression pcre after home/home there will be pcre-8.10 folder
2) configuration Pcre
cd/home/pcre-8.10
./configure After you enter the command, the screen generates a bunch of files that you don't have to worry about.
3) Make
After you enter make command in Linux , the screen generates a bunch of files that you don't have to worry about.
4) Installation
Enter make install in Linux
3. Installing Nginx
Nginx-1.1.1.tar.gz upload to the/home directory
1) Decompression Nginx
tar zxvf nginx-1.1.1.tar.gz after decompression nginx/home There will be nginx-1.1.1 folder
2 Configuring Nginx
CD nginx-1.1.1
./configure--prefix=/usr/local/nginx--with-http_stub_status_module
3) Make
After you enter make command in Linux , the screen generates a bunch of files that you don't have to worry about.
4) Installation
Enter make install in Linux
5) Check if the installation is successful
CD /usr/local/nginx/sbin
./nginx-t
The results show:
Nginx:the configuration file/usr/local/nginx/conf/nginx.conf syntax is OK
Nginx:configuration file/usr/local/nginx/conf/nginx.conf Test is successful
6) Start Nginx
Enter the CD /usr/local/nginx/sbin directory below./nginx start Nginx
7) Check whether the start is successful
Enter http://192.168.15.132 in IE browser
Linux Nginx installation (reprint)