Linux auto-start Service 1. put the startup command in/etc/rc. local, edit:/etc/rc. the local file is as follows: you can add a direct service startup or add a SHELL script bash/etc/init. d/webstartstartbash/etc/init. d... linux auto-start Service 1. put the startup command in/etc/rc. local, edit:/etc/rc. the local file is as follows: you can add a direct service startup or add a SHELL script bash/etc/init. d/webstart start bash/etc/init. all programs running above d/redis are executed with the root permission. If some programs are to run as a user, you can run the following code: su show-c/home/show/server/tomcat/bin/startup. sh 2. chkconfig command [root @ localhost ~] # Chkconfig -- list displays the services that can be automatically started upon startup [root @ localhost ~] # Chkconfig -- add *** add auto start upon startup *** Service [root @ localhost ~] # Chkconfig -- del *** delete boot auto start *** Service
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.