突然,我无法在我的VPS(CentOS 7)上启动服务。例如,
service httpd start
Redirecting to /bin/systemctl start httpd.service
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to start httpd.service: Connection timed out
See system logs and 'systemctl status httpd.service' for details.这可能是因为我用作主机名的域名已过期。我不知道服务命令背后的逻辑。我启动httpd,为什么它要调用polkit服务?polkit服务也已死亡,无法启动。"service polkit status -l“命令显示了一条消息:
Lost the name org.freedesktop.PolcyKit1 - exiting如何解决这个问题?
发布于 2020-09-13 15:07:06
您需要使用sudo
[user@localhost ~]$ sudo systemctl start httpd或以root身份登录
[root@localhost ~]# systemctl start httpd以便启动和停止服务。
https://serverfault.com/questions/1033709
复制相似问题