rpcbind
端口111
systemctl stop rpcbind.socket systemctl stop rpcbind systemctl disable rpcbind.socket systemctl disable rpcbind
iptables防火墙
systemctl stop firewalld systemctl disable firewalld
postfix邮件
端口25
systemctl stop postfix systemctl disable postfix
chrony是一个ntp协议的实现程序,既可以当做服务端,也可以充当客户端;它专为间歇性互联网连接的系统而设计,当然也能良好应用于持久互联网连接的环境;chrony有三个时间参考:硬件时钟、实时时钟以及手动同步
https://www.jianshu.com/p/eda779466fe8
端口323(udp)
systemctl stop chronyd.service systemctl disable chronyd.service
Selinux
将SELINUX配置文件设置为 disabled 模式,禁用SELinux
vim /etc/selinux/config SELINUX=disabled
使用sed
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
验证
grep "SELINUX=disabled" /etc/selinux/config SELINUX=disabled
然后reboot重启生效
工作中linux不能重启
命令先临时关闭
getenforce
查看当前selinux的级别状态
配置好配置文件,使用命令临时生效
setenforce 0
#使配置立即生效
-
« 上一篇:
CentOS7彻底关闭IPV6
-
centos7修改网卡名称为eth0
:下一篇 »