1,安裝依賴包
yum -y install gcc-c++
yum -y install pcre-devel
yum -y install zlib-devel
2盟步,下載nginx(http://nginx.org/en/download.html)
./configure --prefix=/usr/etc/ngin
make
make install
3,查看nginx安裝在哪
whereis niginx
4,查看并啟動nginx
ps -ef|grep nginx
./nginx -s reload
ps:rpm -q name ?//查看某個包是否安裝
ps:rpm -qa ?//查看哪些包安裝