CentOS Linux release 7 安装完成后停止几个服务
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS Linux release 7 安装完成后停止几个服务相关的知识,希望对你有一定的参考价值。
一、停止邮件服务
[[email protected] ~]# systemctl stop postfix # 临时关闭
[[email protected] ~]# systemctl disable postfix # 永久关闭网络管理命令
Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service.
[[email protected] ~]#
二、停止打印服务:
[[email protected] ~]# systemctl stop cups.path # 临时关闭
[[email protected] ~]# systemctl stop cups.socket # 临时关闭
[[email protected] ~]# systemctl stop cups.service # 临时关闭
[[email protected] ~]# systemctl disable cups.path # 永久关闭网络管理命令
Removed symlink /etc/systemd/system/multi-user.target.wants/cups.path.
[[email protected] ~]# systemctl disable cups.socket # 永久关闭网络管理命令
Removed symlink /etc/systemd/system/sockets.target.wants/cups.socket.
[[email protected] ~]# systemctl disable cups.service # 永久关闭网络管理命令
Removed symlink /etc/systemd/system/multi-user.target.wants/cups.service.
Removed symlink /etc/systemd/system/printer.target.wants/cups.service.
[[email protected] ~]#
三、停止rpcbind:
[[email protected] ~]# systemctl stop rpcbind.socket # 临时关闭
[[email protected] ~]# systemctl stop rpcbind # 临时关闭
[[email protected] ~]# systemctl disable rpcbind.socket # 永久关闭网络管理命令
Removed symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket.
[[email protected] ~]# systemctl disable rpcbind # 永久关闭网络管理命令
[[email protected] ~]#
四、关闭SELinux,将 /etc/sysconfig/selinux 中的 SELinux=enforcing 修改为 SELinux=disabled
临时关闭,重启失效:
#setenforce 0
#getenforce
五、关闭firewall:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
firewall-cmd --state
六、关闭NetworkManager
# systemctl stop NetworkManager # 临时关闭
# systemctl disable NetworkManager # 永久关闭网络管理命令
以上是关于CentOS Linux release 7 安装完成后停止几个服务的主要内容,如果未能解决你的问题,请参考以下文章
CentOS Linux release 7.5.1804安装mysql
CentOS Linux release 7 安装完成后停止几个服务
CentOS Linux release 7 Nginx 部署