安装nginx

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  //查看哪些包安装

你可能感兴趣的:(安装nginx)