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