centos
Thomas@617
一位从事互联网行业,代码的搬运工
展开
-
CentOS 7.0默认使用的是firewall作为防火墙设置
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下1、直接关闭防火墙systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动2、设置 iptables serviceyum -...原创 2019-04-18 17:31:35 · 210 阅读 · 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 · 2841 阅读 · 2 评论