centos6.x中yum安装nginx
今天装了CentOS6.7,直接yum install nginx不行,错误如下:
[root@localhost ~]# yum install nginx
已加载插件:fastestmirror
设置安装进程
Loading mirror speeds from cached hostfile* base: mirror.bit.edu.cn* extras: mirrors.yun-idc.com* updates: mirrors.yun-idc.com
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
No package nginx available.
错误:无须任何处理
1、首先处理下源,下面是安装完整流程,也十分简单:
[root@localhost ~]# rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
Retrieving http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
warning: /var/tmp/rpm-tmp.EeFe3z: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY
Preparing... ########################################### [100%]1:nginx-release-centos ########################################### [100%]
2、查看yum的nginx信息:
[root@localhost ~]# yum info nginx
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile* base: mirror.bit.edu.cn* extras: mirrors.yun-idc.com* updates: mirrors.yun-idc.com
nginx | 2.9 kB 00:00
nginx/primary_db | 15 kB 00:00
可安装的软件包
Name : nginx
Arch : x86_64
Version : 1.10.1
Release : 1.el6.ngx
Size : 821 k
Repo : nginx
Summary : High performance web server
URL : http://nginx.org/
License : 2-clause BSD-like license
Description : nginx [engine x] is an HTTP and reverse proxy server, as well as: a mail proxy server.
3、yum install nginx安装
[root@localhost ~]# yum install nginx
已加载插件:fastestmirror
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
解决依赖关系
--> 执行事务检查
---> Package nginx.x86_64 0:1.10.1-1.el6.ngx will be 安装
--> 完成依赖关系计算依赖关系解决=====================================================================================================================================软件包 架构 版本 仓库 大小
=====================================================================================================================================
正在安装:
nginx x86_64 1.10.1-1.el6.ngx nginx 821 k事务概要
=====================================================================================================================================
Install 1 Package(s)总下载量:821 k
Installed size: 2.1 M
确定吗?[y/N]:y^H^[[3~^C在用户的命令下退出
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx-2016-06-14-12-56K4938y.yumtx
[root@localhost ~]# yum install nginx
已加载插件:fastestmirror
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
解决依赖关系
--> 执行事务检查
---> Package nginx.x86_64 0:1.10.1-1.el6.ngx will be 安装
--> 完成依赖关系计算依赖关系解决=====================================================================================================================================软件包 架构 版本 仓库 大小
=====================================================================================================================================
正在安装:
nginx x86_64 1.10.1-1.el6.ngx nginx 821 k事务概要
=====================================================================================================================================
Install 1 Package(s)总下载量:821 k
Installed size: 2.1 M
确定吗?[y/N]:y
下载软件包:
nginx-1.10.1-1.el6.ngx.x86_64.rpm | 821 kB 00:00
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
Warning: RPMDB altered outside of yum.正在安装 : nginx-1.10.1-1.el6.ngx.x86_64 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.1-1.el6.ngx.x86_64 1/1 已安装:
nginx.x86_64 0:1.10.1-1.el6.ngx 完毕!
4、运行启动
[root@localhost ~]# service nginx start
正在启动 nginx: [确定]
[root@localhost ~]#
5、访问,在地址栏输入http://ip
6、访问日志按日期分割
centos6.x中yum安装nginx相关推荐
- centos6 下用yum 安装 nginx
以下操作在Cento6.4 系统下实现 一.更新使用163的库 vi /etc/yum.repos.d/CentOS-Base.repo yum update [base] name=CentOS-$ ...
- Apache源码包在LINUX(CENTOS6.8)中的安装(出现问题及解决)
任务:在CENT6.8系统中安装Apache(版本为:httpd-2.4.41) 前提:由于源码包必须先编译后安装,所以必须先安装编译器:gcc 理论步骤: 1.检测gcc软件包,如果不存在则进行安装 ...
- CentOS7使用yum安装Nginx
CentOS7使用yum安装Nginx 文章目录 CentOS7使用yum安装Nginx 安装说明 安装gcc 安装pcre库 安装zlib库 安装OpenSSL库 安装Nginx库 启动nginx ...
- NVIDIA cuda7在centos6.5中的安装
关闭 NVIDIA cuda7在centos6.5中的安装 标签: NVIDIAcuda7centos6-5安装 2015-08-03 15:14 123人阅读 评论(0)收藏 举报 分类: Cent ...
- CentOS下yum安装nginx服务
添加nginx的yum源 rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ng ...
- 在Centos中yum安装和卸载软件的使用方法
在Centos中yum安装和卸载软件的使用方法 安装方法 安装一个软件时 yum -y install httpd 安装多个相类似的软件时 yum -y install httpd* 安装多个非类似软 ...
- yum 安装nginx
yum 安装 nginx 手动执行 rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0. ...
- linux php7 yum 卸载,Linux_在Centos中yum安装和卸载软件的使用方法,安装一个软件时
yum -y install h - phpStudy...
在Centos中yum安装和卸载软件的使用方法 安装一个软件时 yum -y install httpd 安装多个相类似的软件时 yum -y install httpd* 安装多个非类似软件时 yu ...
- yum安装Nginx教程
yum安装Nginx教程 安装CentOS 7:本人原创 更新yum yum update -y 下载Nginx 安装nginx源 rpm -ivh http://nginx.org/packag ...
最新文章
- 转载:浅谈软件测试流程
- hihoCoder 1367 等式填空
- springboot 静态注入 单例
- 依赖注入和控制反转的理解,写的太好了。
- 在Ubuntu上安装Keras深度学习框架
- directshow-faac编码
- centos7 访问php页面显示源码_运维干货分享:centos7下源码编译安装php-7.1.5(脚本)...
- JMeter性能测试中如何使用“用户参数”实现参数化
- 类似构建的操作性工作,可以轮流值班
- 诊断某段时间数据库性能抖动问题思路
- web应用开发相关技术,CSS盒模型概述
- metasploit(十)漏洞攻击exploit代码编写
- linux关于系统管理、系统安全命令
- Linux系统的简易命令(三)
- AJAX设计模式之Lightbox---图片和网页外、连 flash、影片都可以显示在 Lightbox 弹出的方框里面
- android-自定义ImageView-圆形图片绘制代码详解
- 干货分享:Windows资源管理器无限重启?解决方法竟然是…
- Xshell的Sessions存放目录
- rk3288实践:第一个嵌入式Linux驱动程序
- 易基因 | 学科前沿:转录组测序在原核生物研究中的应用(2)|文献科普