centos6 yum安装nginx
程序员文章站
2024-03-25 17:25:22
...
一、系统环境
CentOS release 6.9 (Final)
二、安装步骤
1.配置yum 的nginx源
[aaa@qq.com ~]# vim /etc/yum.repos.d/nginx.repo
输入一下内容,然后保存退出:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
2.yum安装
[aaa@qq.com ~]# yum install nginx -y
3.启动nginx服务
[aaa@qq.com ~]# service nginx start
Starting nginx: [ OK ]
4.查看服务是否启动,打开浏览器,输入服务器ip地址
上一篇: senium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PATH
下一篇: centOS安装tomcat8
推荐阅读