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
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