linux add automatic startup script

vim /etc/rc.d/rc.local
#这个文件就是liunx启动,自定放脚本的命令或者脚本

linux add automatic startup script
# Figure I added a custom script, attention to the recommendations after the script plus "&", added & script is run in the background in the last line, if it is not running in the background, script, there are an infinite loop, stuck in an endless loop open opportunity

Script content
linux add automatic startup script
# realize the role of the script, listening udp 9 port, packets received on the implementation of the shutdown command

Guess you like

Origin blog.51cto.com/13620944/2470705