首页 > 代码库 > CentOS release 6.6 nginx install
CentOS release 6.6 nginx install
/************************************************************************* * CentOS release 6.6 nginx install * 说明: * 在VPS上安装nginx,以供有些时候无聊使用。 * * 2016-11-26 深圳 南山平山村 曾剑锋 ************************************************************************/一、参考文档: Centos6 下的 nginx 安装 http://blog.163.com/liwei1987821@126/blog/static/17266492820121119111120164/二、安装nginx: 1. 错误: [root@localhost ~]# yum install nginx Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.usc.edu * extras: mirror.scalabledns.com * updates: mirror.hostduplex.com No package nginx available. Error: Nothing to do 2. 解决办法: wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm 3. 安装: [root@localhost ~]# yum install nginx Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.usc.edu * extras: mirror.scalabledns.com * updates: mirror.hostduplex.com nginx | 2.9 kB 00:00 nginx/primary_db | 19 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package nginx.i386 0:1.10.2-1.el6.ngx will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: nginx i386 1.10.2-1.el6.ngx nginx 844 k Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 844 k Installed size: 2.0 M Is this ok [y/N]: y Downloading Packages: nginx-1.10.2-1.el6.ngx.i386.rpm | 844 kB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : nginx-1.10.2-1.el6.ngx.i386 1/1 ---------------------------------------------------------------------- Thanks for using nginx! Please find the official documentation for nginx here: * http://nginx.org/en/docs/ Commercial subscriptions for nginx are available on: * http://nginx.com/products/ ---------------------------------------------------------------------- Verifying : nginx-1.10.2-1.el6.ngx.i386 1/1 Installed: nginx.i386 0:1.10.2-1.el6.ngx Complete! [root@localhost ~]#
CentOS release 6.6 nginx install
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。