Home > Article > Operation and Maintenance > How to start linux service
In order to support certain functions, the operating system needs to run some services and applications in the background.
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!