1234567
[root@nginx ~]# vim /etc/yum.repos.d/nginx.repo[nginx-stable]name=nginx stable repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=0enabled=1
安装nginx
1
[root@nginx ~]# yum -y install nginx
查看版本
[root@nginx ~]# nginx -V