doorxp

Blog

ubuntu 4.15.0-50-generic 开启 rc.local

0x0:创建 rc.local,root权限,可执行

touch /etc/rc.local


文件内容如下:

#!/bin/bash
exit 0


chmod a+x /etc/rc.local
chown root:root /etc/rc.local


0x1启动

systemctl start rc-local

0x2 开机加载

systemctl enable rc-local

0x3 查错

systemctl status rc-local


发表评论:

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.