Linux System Management Service control

Source: Internet
Author: User

Setup after system installation is complete

1) Shut down the firewall/etc/init.d/iptables stop

Set boot not load Chkconfig iptables off

View the status of the firewall iptables-l

2) Turn off SELinux:

View the status of SELinux Getenforce

Set temporary allow Setenforce 0

Permanently set sed-i '/^selinux/s/enforceing/disabled/g '/etc/selinux/config

Requires reboot to take effect


System Service Control

Format

Service Name control type

/etc/init.d/Service Name control type

control type

Start (start): Run the established system service program to implement the service function

Stop (STOP): Terminates the specified system service program and shuts down related functions

Restart (restart): Perform the above two services first stop at start

Reload (Heavy): Do not exit the service program, only refresh the configuration, same as restart

Status (View status): View the relevant allowed status or information for the specified service


Switching the Run level

View System RunLevel: RunLevel (the first letter N table does not switch the RunLevel)

Toggle RunLevel: Init 0-6

0: Shutdown state, the host will be turned off when this level is used.

1: Single user mode, no password authentication is required to log into the system, more for system maintenance.

2: Multi-user mode for character interface (network access is not supported).

3: The full multi-user mode of the character interface, most server hosts run at this level.

4: Not assigned to use.

5: Graphical interface of multi-user mode, provides a graphical desktop operating environment.

6: Reboot, the host will be started when using this level

Optimized boot auto-load service

NTSYSV tools (Interactive interface)

Chkconfig Tools

(--level management of the operating level of the specified service

--help # #查看单个服务开机启动设置命令的帮助

--list # #查看服务的开机启动情况

--del # #删除服务)


Linux System Management Service control

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.