: This article describes how to install stable nginx in Ubuntu1404. if you are interested in the PHP Tutorial, refer to it. Because my system is just installed and there are no packages!
1: update all packages first
sudo apt-get update
2: Jump to the system's Downloads folder (I downloaded it to the Downloads folder)
Cd/home/user name/Downloads/
3: Download stable nginx from the official website
wget http://nginx.org/download/nginx-1.8.1.tar.gz
4: extract
tar zxvf nginx-1.8.1.tar.gz
5: Enter the decompressed folder
cd nginx-1.8.1
6: execute the command
./Configure found that the error is due to the lack of pcre library
7: re-enter the Downloads folder to download pcre
wegt http://sourceforge.net/projects/pcre/files/pcre/8.31/pcre-8.31.tar.gz
8: decompress pcre
tar zxvf pcre-8.31.tar.gz
9: Enter the decompressed folder
cd pcre-8.31
10: execute the command
./Configure: the successful make statement will report an error. compilation fails. Therefore, g ++ must be installed.
11. install g ++
sudo apt-get install g++
12: re-enter the pcre-8.31 folder and execute the command
./Configuremakesudo make install error missing zlib package
13: install the zlib package
sudo apt-get install zlib1g-dev
14: re-enter the pcre-8.31 folder and execute the command
./configuremakesudo make install
15: re-enter the nginx-1.8.1 folder to execute the command
./configuremakesudo make install
16: start nginx
After sudo/usr/local/nginx/sbin/nginx is started successfully, log on to localhost to check whether the installation is successful! Http: // localhost: 80
17: disable nginx
sudo killall -9 nginx
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes how to install the stable nginx version in Ubuntu1404, including some content. if you are interested in the PHP Tutorial.