/ etc/rc.d/rc.local and / etc/rc.local are both given execution permissions
/ etc/rc.d/rc.local and / etc/rc.local are configured as follows
-sharp!/bin/bash
-sharp THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
-sharp
-sharp It is highly advisable to create own systemd services or udev rules
-sharp to run scripts during boot instead of using this file.
-sharp
-sharp In contrast to previous versions due to parallel execution during boot
-sharp this script will NOT be run after all other services.
-sharp
-sharp Please note that you must run "chmod +x /etc/rc.d/rc.local" to ensure
-sharp that this script will be executed during boot.
touch /var/lock/subsys/local
/usr/opt/nginx/sbin/nginx
/usr/opt/etlive-page-01/server
/usr/opt/etlive-page-02/server
service iptables start
server is the executable file that compiles the output of the go file on this linux. Manual execution can be performed
execution effect
[root@Nginx02 etlive-page-01]-sharp pwd
/usr/opt/etlive-page-01
[root@Nginx02 etlive-page-01]-sharp ./server
2018/04/04 18:01:59 [I] http server Running on http://:8080