Ubuntu0.04配置开机启动
配置
sudo vim /lib/systemd/system/rc-local.service 内容 [Install] WantedBy=multi-user.target Alias=rc-local.service 创建文件 sudo vim /etc/rc.local #!/bin/sh echo "success !" > /usr/local/test.log exit 0 添加权限 sudo chmod +x /etc/rc.local 设置软连接 sudo ln -s /lib/systemd/system/rc-local.service /etc/systemd/system/