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