centos6 中如何写systemctl daemon-reload

如题,代码段是

mkdir -p /etc/systemd/system/docker.service.d
systemctl daemon-reload
systemctl restart docker
systemctl enable docker

想问一下在centos 6 中如何写呢?

7以前的版本的启动方式和你现在所写的不同,你在CSDN上问还不如去百度下。

centos7 之前使用的service,或许这个链接能帮助你:https://zhuanlan.zhihu.com/p/56890303