+++++++++++++++++++++++++ +++++linux Service Management +++++++++++++++++++++++++++++++
1. Service Introduction and ClassificationService start and start-up concepts: Service Start-up: is to let the service run in the current system and provide functional service self-boot: self-boot refers to the service after the system starts or restarts, with the start of the system and automatically start the Services query installed services: R PM Package Installation Services--command: Chkconfig--list #查看服务自启动状态, you can see all RPM Packages Installed service source package Installation Services-View service installation location: generally/usr/local/under RPM installation Services and source code package Differences in Installation Services:is the difference in the installation location, resulting in different ways of managing the service。
2. Management of RPM services
Standalone service management /etc/init.d/ Start script location /ETC/SYSCONFI g/ Initialize Environment Profile location /etc/ profile location &NBSP ; /etc/xinetd.conf XINETD profiles /etc/xinetd.d/ XINETD Service-based startup scripts & nbsp /var/lib/ Service-generated data here /var/log Day Standalone services start: /et c/init.d/Standalone service name start|stop|status|restart| or service Independent Service name start|stop|restart|status| standalone service self-starter: method one C Hkconfig &NBSp --level Run level standalone service name on &NBS P chkconfig --level Run level standalone service name off& nbsp method two Change/etc/rc.d/rc.local file method three & nbsp Use NTSYSV command to manage self-booting XINETD service management Install xinetd with Telnet:
Yum-y Install xinetd yum-y install telnet-server start xinetd service Telnet:vi/etc/xinetd.d /telnet Modify disable True to disable no restart XINETD service: Service xinetd restart xinetd self-booting: Method one Chkconfig Telnet on method two using the NTSYSV command to manage self-priming note: Xin The start-up and self-booting of etd are generic.
3. Management of the source package service Source package installation service startup: Use absolute path: Invoke startup script to start. Different source package startup scripts, you can view the source package installation instructions, view the way to start the script. For example:/usr/local/apache2/bin/apachectl start|stop Source Services: Modify the vi/etc/rc.d/rc.local file, the standard launch Add Let the source package service be serviced by Service Management Command Service Identification: service startup scripts are soft-connected to/etc/init.d/ Directory: Ln-s/usr/local/apache2/bin/apachectl /etc/init.d/apache Let the source package service be served command chkconfig with NTSYSV identification Open startup script:vi/etc/rc.d/apache & nbsp Modify content: #chkconfig: #启动和关闭顺序, , #description: Source package Apache #描述信息 &NBSP ; Add to Service list: Chkconfig--add apache View: Chkconfig--list | grep apache 4. Service Management summary Common services +++++++++++++++++++++++++ + + + ++linux Service Management +++++++++++++++++++++++++++++++
Linux Learning note--linux Service Management (10)