码迷,mamicode.com
首页 > 其他好文 > 详细

centos6.5直接yum安装nginx

时间:2016-12-12 17:16:42      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:执行   highlight   roo   and   信息   成功   centos6   start   server   

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

标签:执行   highlight   roo   and   信息   成功   centos6   start   server   

原文地址:http://www.cnblogs.com/chunshu/p/6165170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!