The service startup methods under Centos 6 and Centos 7 and the methods added to the boot startup items
- 2020-05-17 07:12:18
- OfStack
In the linux system, after installing a software or application, it is sometimes necessary to manually start the application, and it is also necessary to receive the application added to the boot entry, so that it can load the application after the boot of linux1
The method to start the application
CentOS 6 :
service SERVICE start|stop|restart|reload|status
CentOS 7 :
systemctl start|stop|restart|reload|status SERVICE
Method to add to the boot item
CentOS 6 :
chkconfig SERVICE on|off
CentOS 7 :
systemctl enable|disable SERVICE