ITPub博客

首页 > Linux操作系统 > Linux操作系统 > centos6.5直接yum安装nginx

centos6.5直接yum安装nginx

原创 Linux操作系统 作者:1984008004 时间:2015-09-14 15:48:22 0 删除 编辑


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.

 恭喜你,你成功了!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25903968/viewspace-1799175/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-04-03

  • 博文量
    38
  • 访问量
    133607