Linux Notes (12)-Service management

Source: Internet
Author: User

(1) Classification of services
1.RPM Packages Default Installed Services
A. Independent service
B. Based on XINETD services
2. Service of the source package
Querying for Installed services
1.RPM Package-Installed Services
To view the self-boot status of the service (under 0-6 runlevel), you can see all the RPM package installed services: Chkconfig--list
2. Source Package Installation Services
View the service installation location, usually under/usr/local/
The difference between RPM installation service and source package installation Service
Different locations:
RPM installed in the default location
The source package is installed in the specified location, usually under/usr/local/
(1) RPM service Management
Location of RPM Installation
/etc/init.d/: Where to start the script
/etc/sysconfig/: Initializing the Environment configuration file location
/etc/: Configuration file location
/ETC/XINETD.CONF:XINETD configuration file
/etc/xinetd.d/: XINETD Service-based startup script
/var/lib/: The data generated by the service is put here
/var/log/: Log
1. Management of Independent services
A. Launch
/etc/init.d/Standalone Service name Start|stop|status|restart
Service Standalone name Start|stop|status|restart
Example: Service--status-all The running status of all RPM services
B. Self-priming
Chkconfig [--level runlevel, default 2345] [standalone service] [On|off]
Example: Chkconfig--level 2345 mysqld on
Modify the/etc/rc.d/rc.local file (recommended)
Managing self-booting using the NTSYSV command
2. Based on xinetd service
A.yum Installing xinetd with Telnet
B. Managing Telnet through xinetd
Note: Start-up and self-start are connected
(2) Management of source package service
1. Start
Use absolute path:/usr/local/apache/bin/apachectl start|stop
Note: Check the installation instructions for the source package and find out how to start the script
2. Self-priming
Modify the/etc/rc.d/rc.local file to join the start command

Linux Notes (12)-Service management

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.