新版的ubuntu去掉了rc.loca,改用systemd的service方式
rc.local使用习惯了,现把它找回来
ln -s /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service touch /etc/rc.local chmod +x /etc/rc.local
修改/etc/rc.local内容:
#!/bin/bash #你的命令,不要有死循环或无法退出的程序,不然进不了系统 #mount -t 9p -o trans=virtio hostshare /mnt/share exit 0
直接执行生效
/etc/rc.local start