Home >Backend Development >PHP Tutorial >linux nginx lightweight server - installation
Install nginx under linux:
1. Install gcc/g++
# apt-get install build-essential
Ignore the installed one
2 . Install openssl:
# apt-get install openssl
# apt-get install libssl-dev
3. Install pcre
Code: http://download.csdn .net/detail/wei_xiaox126/8304511
Unzip: tar xvf ....
# ./configure
# make && make install
4. Official website Download nginx source package http://nginx.org/
nginx-1.6.1 Local download: http://download.csdn.net/detail/wei_xiaox126/8304547
5. Install nginx
Verification # cd 'your path/sbin'
# ./nginx
Open the webpage and enter 192.168.1.111 (this is my ip)
will show welcom to nginx !
The above introduces the Linux nginx lightweight server - installation chapter, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.