全球主机交流论坛

标题: 技术问题求解答,linux开机自启 [打印本页]

作者: imes    时间: 2018-3-5 15:29
提示: 作者被禁止或删除 内容自动屏蔽
作者: wtycn    时间: 2018-3-5 15:31
supervisor,你值得拥有。
作者: tufu001    时间: 2018-3-5 15:36
最土的 写个计划任务 嘿嘿嘿
作者: Zxc    时间: 2018-3-5 15:38
现在不都是换systemd了么?
作者: icomelyy    时间: 2018-3-5 15:53
centos7和deian9都换成systemd了
如果是嫌麻烦不想多弄就搞个supervisor吧
作者: 阿威    时间: 2018-3-5 15:55
systemd 搜索引擎是最好的老师
作者: cicvc    时间: 2018-3-5 16:01
init.d+crontab
作者: liuxu    时间: 2018-3-5 16:03
rc失效好像是需要开启systemd的rc.local.service的服务
作者: vm.sg    时间: 2018-3-5 16:38
chmod +x /etc/rc.local
chmod +x /etc/rc.d/rc.local

文件在,也有说明启用方式。
作者: imes    时间: 2018-3-5 16:44
提示: 作者被禁止或删除 内容自动屏蔽
作者: Vicer    时间: 2018-3-5 16:59
提示: 作者被禁止或删除 内容自动屏蔽
作者: hdown    时间: 2018-3-5 17:04
写service吧。
systemd还是不要了,不兼容centos6和ubuntu14 ,兼容性不好。

/etc/init.d/ 才是现在最合适的方案。
作者: imes    时间: 2018-3-5 17:08
提示: 作者被禁止或删除 内容自动屏蔽
作者: 冻猫    时间: 2018-3-5 17:08
supervisor应该比较通用吧
作者: imes    时间: 2018-3-5 17:09
提示: 作者被禁止或删除 内容自动屏蔽
作者: flyfish    时间: 2018-3-5 18:31
自己写systemd的.service,然后enable就行了




欢迎光临 全球主机交流论坛 (https://d.168530.xyz/) Powered by Discuz! X3.4