“Failed to activate service ‘org.freedesktop.systemd1‘: timed out“ bug

# cp /usr/lib/systemd/system/rpcbind.socket /etc/systemd/system/rpcbind.socket

编辑 /etc/systemd/system/rpcbind.socket 


编辑前:
Raw
[Unit]
Description=RPCbind Server Activation Socket

[Socket]
ListenStream=/var/run/rpcbind.sock

# RPC netconfig can't handle ipv6/ipv4 dual sockets
BindIPv6Only=ipv6-only
ListenStream=0.0.0.0:111
ListenDatagram=0.0.0.0:111
ListenStream=[::]:111
ListenDatagram=[::]:111

[Install]
WantedBy=sockets.target
New content

编辑后:
Raw
[Unit]
Description=RPCbind Server Activation Socket

[Socket]
ListenStream=/var/run/rpcbind.sock

# RPC netconfig can't handle ipv6/ipv4 dual sockets
# Workaround for RHBZ 1531486
#BindIPv6Only=ipv6-only
#ListenStream=0.0.0.0:111
#ListenDatagram=0.0.0.0:111
#ListenStream=[::]:111
#ListenDatagram=[::]:111

[Install]
WantedBy=sockets.target
Reload systemd

重启操作系统
# systemctl daemon-reload
Reboot the system




异常服务状态:
# busctl --list | grep org.freedesktop.systemd1
org.freedesktop.systemd1           - -               -                (activatable) -                         -

正常服务状态:
#  busctl --list | grep org.freedesktop.systemd1
org.freedesktop.systemd1                 1 systemd         root             :1.0          -                         -          - 

你可能感兴趣的:(linux,systemd,linux,centos,systemd)