ping
)yum
可用(yum list | grep gcc
)iptables
(iptables -F
)selinux
yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automakeyum -y install wget httpd-tools vim
cd /etc/yum.repos.dvim nginx.repo# 添加[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgcheck=0enabled=1
yum list | grep nginxyum install nginx
查看版本
nginx -v