centos6 yum安装nginx

/ 0评 / 0

1、先执行:

rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

2、安装并启动nignx

[root@server ~]# yum install nginx
[root@server ~]# service nginx start
Starting nginx:                                            [  OK  ]

直接访问ip测试即可

发表评论

电子邮件地址不会被公开。 必填项已用*标注