Red Hat Enterprise Linux system service Management

Source: Internet
Author: User


Shutting down the firewall

Close iptables : chkconfig iptables off

Close SELinux : /etc/sysconfig/selinux File Modification " selinux=disabled "

Restart

Init configuration file

/etc/inittab Configuring the default run level

/etc/sysconfig/init Control TTY number of terminal opening, terminal color scheme

/etc/init/rcs.conf Loading Rc.sysinit script to complete the system initialization task

/etc/init/rc.conf compatible scripts, responsible for call handling at each run level

/etc/init/rcs-sulogin.conf for single-user mode /bin/sushell Environment /ETC/INIT/CONTROL-ALT/DELETE.COMF under the control terminal Ctrl+alt+del Hotkey Operation

/etc/init/start-ttys.conf Configuration TTY number of open terminals, device files

/etc/inint/tty,conf Control TTY opening of the terminal

Run Level field

0 : Shutdown Status using this level will shut down the machine

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

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

3: character interface for multi-user mode, most servers run at this level

4 : Not assigned to use

5 : Graphical interface with multi-user mode, providing a graphical interface operating environment

6 : Restart, the host will be restarted when using this level

switch Operation level Initi N

View Run level commands RunLevel

System Service Control

The control script for the service /etc/rc.d/init.d/ directory under

format: Service Service Name control type

/etc/rc.d/init.d/ Service Name control type

control type

Start Start

Stop Stop

Restart Restart

Reload overloaded

Status View Status


Optimized boot auto-load service

Ntsysv tool provides interactive graphical interface

ntsysv--level// and Change * level of startup run State

Press Space (space bar selection)

Chkconfig Tools

chkconfig--list View the default startup status for all services

chkconfig--list Service Name

chkconfig--level Run Level Service name On|off

Viewing free memory grep "Memfree"/proc/meminfo


This article is from the "Carey" blog, make sure to keep this source http://careygg.blog.51cto.com/11084669/1732292

Red Hat Enterprise Linux system service Management

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.