今天更改配置,恢复了公共镜像centos6.5 64位,安装lnmp的时候失败,发现是yum源缺失,
需要把/etc/
[font="]/etc/yum.repos.d/backup/CentOS-Base.repo 移动到/etc/
[font="]/etc/yum.repos.d/CentOS-Base.repo
[root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/
backup
[root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/backup/
CentOS-Base.repo epel.repo
[root@iZ23jyp275rZ ~]# yum update
Loaded plugins: security
Setting up Update Process
No Packages marked for Update
[root@iZ23jyp275rZ ~]# yum install httpd
Loaded plugins: security
Setting up Install Process
No package httpd available.
Error: Nothing to do
[root@iZ23jyp275rZ ~]# mv /etc/yum.repos.d/backup/CentOS-Base.repo /etc/yum.repos.d/
[root@iZ23jyp275rZ ~]# yum install httpd
Loaded plugins: security
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:04
extras | 3.4 kB 00:00
extras/primary_db | 37 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 748 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。