centos6.5直接yum安装nginx

Posted 寅春树

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

[[email protected] ~]# yum install nginx
[[email protected] ~]# 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的主要内容,如果未能解决你的问题,请参考以下文章

CentOS6.5 编译安装Nginx

CentOS6.5搭建本地yum源(http方式) nginx

centos6.5编译安装nginx[整理二]

centos6.5安装Nginx

centos6.5怎么安装yum

基于CentOS6.5环境之下的LNMP之编译安装Nginx1.8.0 stable(稳定版)