(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