Home  >  Article  >  Operation and Maintenance  >  How to start linux service

How to start linux service

(*-*)浩
(*-*)浩Original
2019-05-30 16:05:205527browse

In order to support certain functions, the operating system needs to run some services and applications in the background.

How to start linux service

Start the independent service:

/etc/init.d/Independent service name start|stop|status|restart

For example: /etc/init.d/httpd start

#This is started through the absolute path, under /etc/rc.d/init.d There are also the same scripts, just soft links, which can be used, so you can /etc/rc.d/init.d/httpd start

service independent service name start|stop|status|restart

For example: service mysqld status

#Note that service is a command unique to the redhat series. Please pay attention when using it

Modify the system default operation The level can be modified in vim /etc/inittab (be careful not to set the default run level to 0 or 6, otherwise the system will keep shutting down or restarting as soon as it is turned on)

View services started by Linux

chkconfig --list Query all currently running services

chkconfig --list atd Query the current status of the atd service

The above is the detailed content of How to start linux service. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn