Classification of services:
Linux Services: RPM package Default installed services, source package installation Services
To view the self-starting status of a service:
Chkconfig--list #查看服务的自启动 (only see RPM package installed Services)
Source package installed in the specified location, is generally/usr/local/; RPM package installed in default location; (Usr=unix system Resource)
Services and Ports:
/etc/services #端口与服务的对应文件
NETSTAT-LTUNP #查询系统中开启的服务
RPM Installation Package Service:
/etc/init.d/Independent service Name Start|stop|status|restart #启动
Service Standalone name Start|stop|status|restart #启动
To modify the RPM installation package Service self-boot status:
Chkconfig--level 2345 httpd on/off #让Apache服务在2345运行级别自启动
SOURCE Package Service Management: (use absolute path, invoke startup script to start)
/usr/local/apache2/bin/apachectl Start|stop #源码包安装的Apache服务启动
Self-booting of the source package service:
Vim/etc/rc.d/rc.local Join/usr/local/apache2/bin/apachectl Start
Allow the Apache service of the source bundle to be managed by service commands
Ln-s/usr/local/apache2/bin/apachectl/etc/init.d/apache
Service Apache Start
This article is from the "we_need_to_try" blog, make sure to keep this source http://liuxiao255.blog.51cto.com/10551403/1834391
Service Management of Linux learning article