Linux Operations Phase II (11) service Management

Source: Internet
Author: User

Linux operation and Maintenance Phase II (11) service Management

Service Management: RPM packages are installed by Default services (standalone service, xinetd service based), source package installation Services.

"Independent Service:

Start: Absolute path, example:#/etc/rc.d/init.d/httpd start, Service command start #service httpd start .

self-booting:#chkconfig--level 2345 httpd on|off; modify /etc/rc.d/rc.local file; use ntsysv command to manage service self-booting.

"based on xinetd service:

Start: Modify the/etc/xinetd.d/rsync corresponding configuration file and change the disable=yes to No.

self-booting:#chkconfig Command Management self-booting; use NTSYSV to manage self-booting.

"Source code Package Installation Services:

Start : Start the Service (absolute path) using the source package startup script:#/usr/local/apache2/bin/apachectl start

self-booting: modifying /etc/rc.d/rc.local

Note: Let the source package service be identified and managed by the service command, as long as the soft link to the/etc/rc.d/init.d/directory, if the source package service is chkconfig command recognition and management, Start with a soft link to/etc/rc.d/init.d/ , and then add the #chkconfig at the beginning of the startup script : Run-level start order shutdown order,# Description: Content customization, also perform #chkconfig--add service name.

Example:#ln-S/usr/local/apache2/bin/apachectl/etc/rc.d/init.d/ (can be identified and managed by service commands

#vi/etc/rc.d/init.d/apachectl

#chkconfig: 35 86 76

#description: Source Package Apache

Execute command:#chkconfig-add apachectl (above can be chkconfig command to identify and manage

From Brother Lian Training

This article is from the "Linux Operational Difficulty Learning notes" blog, please be sure to keep this source http://jowin.blog.51cto.com/10090021/1651928

Linux Operations Phase II (11) 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.