Linux Service optimization

Source: Internet
Author: User

Service Control Command format


Service name control type


Service Control Commands:

Start startup

Stop Stop

Restart Restart

Reload Overloading

Status View state


optimized boot auto-load service   

Each time the Linux system is powered on, it goes to the default RunLevel and runs the various system services that are set to start in that level by default. To prevent some system services from running automatically, you can use the NTSYSV or Chkconfig tool for optimization.


NTSYSV Tools   

[*] means start [] to close if you want to know the description of the selected service, press F1 to get help.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/42/30/wKiom1PXE5TzkSAZAAGbl5MIFgo991.jpg "title=" 1.png " alt= "Wkiom1pxe5tzksazaagbl5mifgo991.jpg"/>

Chkconfig Tools

Chkconfig is similar to NTSYSV, but does not provide an interactive interface for querying or setting the default boot state of system services. Using the Chkconfig tool is more efficient when you need to set the default startup state of a service at different run levels.

Use the command chkconfig--list to view the default boot state of system services at different levels

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/42/31/wKioL1PXFtPgzsajAANuvIoqsaM425.jpg "title=" 2.png " alt= "Wkiol1pxftpgzsajaanuvioqsam425.jpg"/>

The on and off switch values allow you to set the default startup state of the service, which they say starts and shuts down respectively. Combined with the--level option, you can specify the corresponding runlevel. The format is as follows


Chkconfig--level Run Level list service name On|off


Service Name Application Introduction Note
Apmd Advanced Power Management Recommended to open
Atd Postpone, perform tasks on a regular basis Recommended Close
AutoFS Automatic File system mounting Recommended Close
Avahi-daemon
Discover devices that use the ZEROCONF protocol

Recommended Close

Bluetooth Discover and certify Bluetooth related devices Recommended Close
Anacrond Perform scheduled tasks due to shutdown and other delays

Recommended to open

Crond Perform scheduled tasks on a scheduled cycle Recommended to open
Cups Printer Services Recommended Close
Firstboot
Perform the initialization process after installing the system Recommended Close
gpm Providing mouse support in text mode Recommended to open
Haldaemon
Collect and maintain hardware information Recommended Close
Hidd
Devices that use the Bluetooth interface Recommended Close
Hplip
HP Linux image and print services Recommended Close
httpd
Apache Web Site Services Recommended Close
Ip6tables
Linux Firewall with IPv6 address Recommended Close
Iptables
Linux Firewall with IPv4 address Recommended Close
Irqbalance
Multi-core CPU processor scheduling support Recommended to open
Isdn Integrated Services Digital Network access support Recommended Close
Kdump
Log memory information when the kernel crashes Recommended Close
Kudzu
Configure hardware, automatically detect hardware Recommended to open
Lvm2-monitor
LVM Logical volume management and monitoring Recommended to open
Mctrans
Context transformation of SELinux security mechanism Recommended Close
Mdonoitor
Soft Rald monitoring Equipment Recommended Close
Messagebus
Send notification information about system-related events Recommended to open
Microcde_ctl
CPU and kernel micro-code control Recommended to open
Netfs
Access to network file systems such as shared folders Recommended to open
Network
Configure and use the network address of the NIC Recommended to open
Nfs
Network File System for NFS protocol access Recommended Close
Nfslock
File lock feature for NFS access Recommended Close
Pcscd
Smart Card Device Resource management Recommended Close
Portmap
Provide RPC Remote Procedure call service Recommended Close
Rawdevices
Provides mapping of raw devices to block devices
Recommended Close
Readahead_early
Provides pre-loading capabilities to speed up startup Recommended to open
Restorecond File monitoring and recovery function for SELinux security mechanism Recommended Close
Rhnsd
Access Red Hat Network, get notifications, submit subscriptions, and more Recommended Close
Rpcgssd
Managing client application Context in NFS Access Recommended Close
Rpcidmapd
Managing user and ID mappings in NFS Access Recommended Close
Rsync
Synchronizing files remotely Recommended Close
Saalauthd
Text-based identity authentication Recommended Close
SendMail
Provide mail transfer/Send function Recommended Close
Setroubleshoot
Failure detection of selinux security mechanism Recommended Close
Smartd
Monitor the status of local drives and send fault reports Recommended to open
Smb
File Sharing Service Recommended Close
Sshd
Provides the ability to telnet and manage Linux hosts Recommended to open
Syslog
Logging of kernel and system log messages Recommended to open
Vncserver
Provides graphical Remote Desktop access Recommended Close
Vsftpd
File upload and download via FTP protocol Recommended Close
Xfs
Font service for graphical interface Recommended to open
xinetd
Super server takeover and access control program Recommended Close
Yum_updatesd Software Automatic Update Notification Service Recommended Close




This article is from "Plum blossom fragrance from bitter cold" blog, please be sure to keep this source http://wangjunkang.blog.51cto.com/8809812/1532078

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.