作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
在 centos 6.6 和 centos 7 中停止服务时自动重启服务的最佳方法是什么?
最佳答案
在 CentOS 7 中,您必须编辑服务文件。在服务文件中找到 [Service] 部分。并添加以下选项:
Restart=on-abort
像这样:
Restart=always
关于linux - centOS 6.6 和 centos 7 : auto restart a service if it stopped,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31873394/
我是一名优秀的程序员,十分优秀!