sudo vim /lib/systemd/system/rc-local.service
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
sudo chmod 777 /lib/systemd/system/rc-local.service
写脚本
sudo vim /etc/rc.local;sudo chmod +x /etc/rc.local
sudo ln -s /lib/systemd/system/rc.local.service /etc/systemd/system/