首页 > 代码库 > centos6.5直接yum安装nginx
centos6.5直接yum安装nginx
1、CentOS 6.5,先执行:
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2,查看yum的nginx信息 []
# yum info nginx
3,安装并启动nignx
[root@server ~]# yum install nginx [root@server ~]# service nginx start
Starting nginx: [ OK ]
4,然后进入浏览器,输入http://localhost/测试,如果看到
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
恭喜你,你成功了!
centos6.5直接yum安装nginx
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。