ubuntu18.04加入开机启动项(原文链接)
1,创建rc-local.service文件
sudo vim /etc/systemd/system/rc-local.service
2,复制下列内容到 rc-local.service 文件中
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAf