2 Star 1 Fork 0

zhrun8899 / learning-notes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
centod设置服务自启动.md 329 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhrun8899 提交于 2019-08-15 14:35 . 20190815 commit

centod设置服务自启动

1.新建服务

脚本放入/etc/init.d中后即可使用service xxx start/stop等,前提是脚本支持

2.chkconfig

chkconfig httpd on/off

3.systemctl

systemctl enable/disable httpd

4.将脚本软链接到/etc/rc.d/rc.d/中即可*

ln -s /etc/init.d/lvs /etc/rc.d/rc5.d/Slvs

1
https://gitee.com/zhrun8899/learning-notes.git
git@gitee.com:zhrun8899/learning-notes.git
zhrun8899
learning-notes
learning-notes
master

搜索帮助