Linux中Apache服务器的安装与启动
# yum list httpd
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
错误:没有匹配的软件包可以列出
搜到的方法也没用
# yum install -y epel-release
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
该怎么解决呢
先弄好YUM源,否则不能进行源安装噶。
可以删除或者备份yum源里的所有配置文件(/etc/yum.repos.d/ ),然后重新进行配置,
能上外网的话,我习惯使用阿里源,阿里源配置方法可参考:
阿里源基础包设置方法:https://developer.aliyun.com/mirror/centos
阿里云EPEL源设置方法:https://developer.aliyun.com/mirror/epel
如果是想搞本地yum源,就需要弄好光盘镜像,进行挂载,编写好配置文件。