优化1

 

# centos 7 查看启动项目
[root@Centos ~]# systemctl list-unit-files
UNIT FILE STATE   
proc-sys-fs-binfmt_misc.automount static  
dev-hugepages.mount static  
dev-mqueue.mount static  
proc-fs-nfsd.mount static  
proc-sys-fs-binfmt_misc.mount static  
sys-fs-fuse-connections.mount static  
sys-kernel-config.mount static  
sys-kernel-debug.mount static  
tmp.mount disabled
[root@Centos ~]# systemctl list-unit-files |grep firewalld
firewalld.service disabled
​
systemctl disable firewalld 
systemctl stop firewalld
systemctl status firewalld


关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

setenforce 0
getenforce 


echo 'export LC_ALL=C'>>/etc/profile
tail -1 /etc/profile
source /etc/profile
echo $LC_ALL 

 

posted @ 2019-05-18 09:07  Fadewalk  阅读(94)  评论(0)    收藏  举报