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
On startup If you report an exception error while loading shared Libraries:libpcre.so.1:cannot open Shared object file:no such file or directory
This shows that our environment is not and the boot needs a little configuration
Workaround (Run directly):
32-bit system [email protected] lib]# ln-s/usr/local/lib/libpcre.so.1/lib
64-bit system [email protected] lib]# ln-s/usr/local/lib/libpcre.so.1/lib64
6) Start Nginx
Enter the Cd/usr/local/nginx/sbin directory below./nginx start Nginx
7) Check whether the start is successful
Enter http://127.0.0.1 in IE browser
Installation of Linux Nginx (reprint modified)