在某些极端的机器上,我们使用/etc/rc.local配置开机自启会莫名其妙不生效,所以我们可以采取曲线救国的办法,使用crontab来实现开机自启。 使用方法: crontab -e @reboot /home/start.sh 保存即可。 @reboot 表示重启开机的时候运行一次。还有很多类似参数如下: string meaning ------ ----------- @reboot ...
最近更新文章
-
CeotOS6提示 libssl.so.10: cannot open shared object file: No such file or directory解决办法
更新时间: 3 天前
-
商业版 / 破解版 Xshell 5 & Xftp 5 下载
更新时间: 7 天前
-
Centos7下rpm升级OpenSSH到openssh-9.4p1版本
更新时间: 9 天前
-
更新时间: 9 天前
-
Centos7下rpm升级OpenSSH到openssh-9.3p1版本
更新时间: 9 天前