首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在centos-7盒上安装initctl

如何在centos-7盒上安装initctl
EN

Stack Overflow用户
提问于 2017-01-05 14:48:11
回答 1查看 4.8K关注 0票数 3
代码语言:javascript
复制
service autofs restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service autofs restart
/etc/init.d/autofs: line 54: initctl: command not found

我在网上查过了,没有看到任何可以安装initctl的yum包。你能帮帮我吗。

EN

回答 1

Stack Overflow用户

发布于 2017-01-10 14:08:15

CentOS 7附带了systemctl来管理服务。你不用用initctl。

service autofs restart应该指向systemctl restart autofs

您可以使用systemctl status autofs检查此服务的状态,如果无法重新启动,可以将输出发送给我们。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41487913

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档