CentOS Linux Release 7 stops several services after installation is complete

Source: Internet
Author: User
Tags symlink

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.