nginx部署至yum安装
1. 配置nginx所需的YUM源
[root@nginx]# cat /etc/yum.repos.d/yum.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key
2. yum安装nginx
[root@nginx]# yum install nginx -y
3. 启动nginx
[root@nginx]# systemctl start nginx
4. 验证(进程,端口,页面)