码迷,mamicode.com
首页 > 其他好文 > 详细

Centos7 环境准备

时间:2017-03-21 10:11:13      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:systemctl   sysconfig   yun   pre   font   selinux   sharp   blog   enforce   

Centos7 环境准备

#关闭防火墙
systemctl stop firewalld
systemctl disabled firewalld

#关闭selinux
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g‘/etc/sysconfig/selinux
setenforce 0

#yum源
rm -f /etc/yum.repos.d/*
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

  

Centos7 环境准备

标签:systemctl   sysconfig   yun   pre   font   selinux   sharp   blog   enforce   

原文地址:http://www.cnblogs.com/oyoui/p/6592687.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!