Service Management of Linux learning article

Source: Internet
Author: User

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

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.