直接上配置:
0 1 |
[root@yum-lnmp /]# rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm [root@yum-lnmp /]# yum install nginx |
不同的版本,请参考官方网站:http://nginx.org/en/linux_packages.html#stable进行下载不同的包。
THE END.SourceByrd's Weblog-https://note.t4x.org/basic/yum-install-nginx/ SourceByrd's Weblog-https://note.t4x.org/basic/yum-install-nginx/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!