Nginx High-Performance web Server (1) -- install nginx
1. Download
This time using the nginx-0.1.2.3 version,
Http://nginx.org/en/download.html new release
Http://nginx.org/download history
2. upload to the linux Server
Sz-bey nginx-0.1.2.3.tar.gz
3. Extract
3.1 create the directory mkdir nginx_123
3.2 unzip tar-zxvf nginx-0.1.2.3.tar.gz./nginx_123/
4. Configure the compiling environment
To compile nginx source code, you must use the configure script to automatically generate the Makefile file.
4.1 go to nginx-0.1.2.3 directory
4.2 run./configure -- prefix =/nginx (nginx is the previously created directory)
4.3 The installation of the pcre dependency package appears during execution, the installation method reference http://blog.csdn.net/wmq534/article/details/38141431
5. Compile and install
Make
Make install
6. Check whether the installation is successful.
Cd/usr/local/nginx/sbin
./Nginx-t
Result:
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
7. Start nginx
Enter./nginx start nginx under the cd/usr/local/nginx/sbin directory
8. Check whether startup is successful.
Enter http: // localhost in ie