rc.local 开机自启脚本无法启动

1.看是否rc.local 第一行如果是 #!/bin/sh -e 改成 #!/bin/bash

sudo systemctl enable rc-local.service

2.看rc.local的权限 chmod a+x /etc/rc.local

猜你喜欢

转载自blog.csdn.net/yybk426/article/details/94647449
今日推荐