宝塔面板设置后拒接登录是怎么回事
OSError: [Errno 97] Address family not supported by protocol
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 253, in <module>
http_server.serve_forever()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/baseserver.py", line 398, in serve_forever
self.start()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/baseserver.py", line 336, in start
self.init_socket()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/pywsgi.py", line 1545, in init_socket
StreamServer.init_socket(self)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/server.py", line 180, in init_socket
self.socket = self.get_listener(self.address, self.backlog, self.family)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/server.py", line 192, in get_listener
return _tcp_listener(address, backlog=backlog, reuse_addr=cls.reuse_addr, family=family)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/server.py", line 284, in _tcp_listener
sock = GeventSocket(family=family)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socket3.py", line 133, in __init__
self._sock = self._gevent_sock_class(family, type, proto, fileno)
OSError: [Errno 97] Address family not supported by protocol
解答:
您好,请问您之前执行了什么操作?您的服务器IP地址使用的是IPv6吗?
回复:
之前应该手误点了那个IPv6的什么选项,接着就直接退出网页然后就上不了,不是ipv6
解答:
您在命令行执行以下命令然后使用无痕模式访问面板试试
rm -f /www/server/panel/data/ipv6.pl&&/etc/init.d/bt restart