How to operate linux services

Source: Internet
Author: User
Article Title: how to operate linux services. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, etc. Run the/sbin/chkconfig command chkconfig -- list to view all service statuses.
For example:
Run chkconfig -- list httpd
View Automatic startup status
Httpd 0: off 1: off 2: off 3: on 4: on 5: on 6: off
0 ~ 6 indicates the running level. Generally, servers are running at the level 3.

Add as auto start
Chkconfig -- add httpd
Or specify the running level
Chkconfig -- level 345 httpd on

Stop Auto Start
Chkconfig -- del httpd
Or specify the running level
Chkconfig -- level 345 httpd off

The system services provided by Prim @ Hosting are shown in the table below.

FTP service:

/Etc/init. d/muddleftpd stop

/Etc/init. d/muddleftpd start

/Etc/init. d/muddleftpd restart

SMTP Service:

/Etc/init. d/postfix stop

/Etc/init. d/postfix start

/Etc/init. d/postfix reload

POP3 Service:

/Etc/init. d/courier-pop3d stop

/Etc/init. d/courier-pop3d start

/Etc/init. d/courier-pop3d restart

HTTP service:

/Etc/init. d/httpd stop/start/restart

JSP service:

/Etc/init. d/resin stop/start/restart

DNS Service:

/Etc/init. d/named stop/start/restart

MySQL service:

/Etc/init. d/mysqld stop/start/restart

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.