1. Select the source code directory
Select the directory /usr/local/
cd /usr/local/
2. Install the PCRE library (prepare the installation package pcre-8.36.zip to the local directory)
cd /usr/local /
zip pcre-8.36.zip
cd pcre-8.36
./configure (compile)
make (pre-installation)
make install (formal installation)
3. Install the zlib library
cd /usr/local/
wget http ://zlib.net/zlib-1.2.8.tar.gz
tar -zxvf zlib-1.2.8.tar.gz cd zlib-1.2.8
./configure
make
make install
4. Install ssl ( Some vps do not have ssl installed by default)
cd /usr/local/
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -zxvf openssl-1.0.1c.tar .gz
cd openssl-1.0.1c
./config
make
make install
--with-zlib=/usr/local/zlib-1.2.8 (referring to the source code path of zlib-1.2.8.)...
After successful installation/usr/local/nginx/ The conf directory is as follows
------------------------------------------------ ------------------------
Port
Start to ensure that the system's port 80 is not occupied by other programs
#netstat -ano|grep 80
If no result is found, execute it. If there is a result, ignore this step
Start
/usr/local/nginx/sbin/nginx Start Nginx
Open the browser to access the IP of this machine. If the browser displays Welcome to nginx! means that Nginx has been installed and run successfully.
The running results are as follows:
Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the installation of nginx128 under Centos65, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.