首页 > 系统服务 > 详细

linux环境初始化

时间:2017-10-25 17:34:33      阅读:241      评论:0      收藏:0      [点我收藏+]

一、网络

1.ip配置

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp

service network restart

ip a

二、安全

1.iptables

iptables -F
service iptables stop

chkconfig iptables off

2.selinux

sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/sysconfig/selinux

setenforce 0

 

linux环境初始化

原文:http://www.cnblogs.com/geek-ace/p/7729954.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!