One, stop the mail service
[[email protected] ~]# systemctl stop postfix # temporary shutdown
[[email protected] ~]# systemctl disable postfix # Permanently shut down network management commands
Removed Symlink/etc/systemd/system/multi-user.target.wants/postfix.service.
[Email protected] ~]#
Two, Stop printing service:
[[[email protected] ~]# systemctl Stop Cups.path # temporary shutdown
[[email protected] ~]# Systemctl Stop Cups.socket # temporarily closes
[[email protected] ~]# systemctl Stop Cups.service # temporary shutdown
[[email protected] ~]# Systemctl Disable Cups.path # Permanently shuts down network administration commands
removed symlink/etc/systemd/system/multi-user.target.wants/cups.path.
[[email protected] ~]# systemctl disable Cups.socket # Permanently shut down network administration commands
removed symlink/etc/systemd/system/ Sockets.target.wants/cups.socket.
[[email protected] ~]# systemctl disable Cups.service # Permanently shuts down network administration commands
removed symlink/etc/systemd/system/ Multi-user.target.wants/cups.service.
removed Symlink/etc/systemd/system/printer.target.wants/cups.service.
[[email protected] ~]#
Third, stop Rpcbind:
[[email protected] ~]# systemctl Stop Rpcbind.socket # temporary shutdown
[[email protected] ~]# systemctl Stop Rpcbind # temporary shutdown
[[email protected] ~]# systemctl disable Rpcbind.socket # Permanently shut down network management commands
Removed Symlink/etc/systemd/system/sockets.target.wants/rpcbind.socket.
[[email protected] ~]# systemctl disable Rpcbind # Permanently shut down network management commands
[Email protected] ~]#
Iv. Turn off SELinux and change the selinux=enforcing in/etc/sysconfig/selinux to selinux=disabled
Temporary shutdown, restart failure:
#setenforce 0
#getenforce
Five, close firewall:
#停止firewall
Systemctl Stop Firewalld.service
#禁止firewall开机启动systemctl disable firewalld.service #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)firewall-cmd --state
Vi. Closure of NetworkManager
# systemctl stop NetworkManager # 临时关闭 # systemctl disable NetworkManager # 永久关闭网络管理命令
The CentOS Linux release 7 stops several services after installation is complete