/dev/log 无法使用的问题(goofys)

0x01 /dev/log 无法使用
goofys 挂载hung住

 132484 connect(4, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 11 <unfinished ...>                                     |  228433 <... futex resumed> )            = 1
  132483 futex(0xc420040d38, FUTEX_WAIT, 0, NULL <unfinished ...>                                                      |  228431 <... futex resumed> )            = 0
  132484 <... connect resumed> )          = -1 ECONNREFUSED (Connection refused)

0x02 验证

>>> import socket
>>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
>>> s.connect('/dev/log')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused

0x03 解决方案

systemctl restart systemd-journald.socket
systemctl restart rsyslog

发表评论

您的电子邮箱地址不会被公开。