Linux Boot from startup script

Source: Internet
Author: User

Add a self-starting command in a/etc/rc.local file (one of the methods)

1. The case, the blogger himself sent before the blog "Nginx + flask + uwsgi + CentOS + Python3 Build Web project", the statement of Step 6 to add to the/etc/rc.local file

--------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------

Attached: About boot scripts I'll list one more way (the method hasn't been tried yet)

In the/ETC/INIT.D directory to add the self-startup script, Linux under the "/ETC/RC.D/INIT.D" has a lot of files, each file can see the content, in fact, are some shell script or executable binary files, Linux boot time, will load run/ ETC/INIT.D directory, so we can put the script that we want to run automatically in this directory. The start of a system service is achieved in this way.

Linux Boot from startup script

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.