![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
centos
Thomas@617
一位从事互联网行业,代码的搬运工
展开
-
CentOS 7.0默认使用的是firewall作为防火墙设置
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、设置 iptables service yum -...原创 2019-04-18 17:31:35 · 209 阅读 · 0 评论 -
已加载插件:fastestmirror, langpacks File contains no section headers. file: file:///etc/yum.repos.d/con
原因是没有配置yum源 如果不行,这样,删除原有的文件: rm -f /etc/yum.repos.d/CentOS-Base.repo 然后重新下载阿里的: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 清理缓存: yum clean all ...转载 2019-08-21 23:11:07 · 2834 阅读 · 2 评论