systemctl prompts Access denied

When using systemctl to restart the service, it prompts that access is denied

$ systemctl restart postfix (may be any service, such as docker, lvm2-lvmetad.socket, etc.)
Failed to restart postfix.service: Access denied

Solution:

systemctl daemon-reexec

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326326134&siteId=291194637