View commands for all services in linux

Source: Internet
Author: User
In a linux system, you can view the commands of all services in a linux system, you can choose to start or stop services, such as ftp, ssh, and telnet, but I forgot what the command is called ,... in a linux system, you can view the commands of all services in a linux system, you can choose to start or stop services, such as ftp, ssh, and telnet, but I forgot what the command is called. remember that it was sysconfig, however, this command is not available in the system. This command is "chkconfig -- list". The following describes the httpd service in linux as an example. # view the running status of the service at each level. chkconfig -- listhttpd 0: close 1: close 2: Close 3: close 4: Close 5: Enable 6: Disable bluetooth 0: close 1: close 2: Close 3: close 4: Close 5: close 6: close # stop HTTPD service www.2cto.com [root @ zhangxx etc] # service httpd stop httpd: [OK] # start httpd service [root @ zhangxx etc] # service httpd start httpd: [OK] # restart the HTTD service [root @ zhangxx etc] # service httpd restart stop httpd: [OK] start httpd: [OK] # Stop httpd at the running level when the machine starts [root @ zhangxx etc] # chkconfig -- level 345 httpd off [root @ zhangxx etc] # chkconfig -- list | grep httpdhttpd 0: close 1: close 2: Close 3: close 4: Close 5: close 6: close # enable httpd to start www.2cto.com [root @ zhangxx etc] # chkconfig -- level 345 httpd on [root @ zhangxx etc] # chkconfig -- list | grep httpdhttpd 0: disable 1: disable 2: disable 3: Enable 4: enable 5: Enable 6: disable [root @ zhangxx etc] # This article is from the fat shark Network
Related 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.