ngxin安装之yum安装

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. 验证(进程,端口,页面)

ngxin安装之yum安装

 

ngxin安装之yum安装

ngxin安装之yum安装

 

 

 

上一篇:How to Install Redis on Mac OSX


下一篇:中科红旗桌面操作系统V11无法自动更新解决办法