Linux add automatic startup script
The file vim / etc/rc.d/rc.local# is the command or script for liunx to start and customize the script.
# as shown in the picture, I added a custom script on the last line. I suggest adding "&" after the script. The script is run in the background. If it is not run in the background, there is an endless loop in the script, and the opportunity is stuck in the endless loop.
Script content
# the script implements the function of listening to udp port 9 and executing the shutdown command when receiving messages.