标题: 查看Samba服务状态时发现报错:Address family not supported by protocol [打印本页] 作者: 刘泽宇 时间: 2020-10-30 14:59 标题: 查看Samba服务状态时发现报错:Address family not supported by protocol 本帖最后由 刘泽宇 于 2020-10-30 15:01 编辑
使用systemctl status smb.service查看服务状态时,出现error:
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.561919, 0] ../source3/lib/util_sock.c:423(open_socket_in)Feb 21 15:09:21 alarmpi smbd[2155]: open_socket_in(): socket() call failed: Address family not supported by protocol
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.563595, 0] ../source3/smbd/server.c:684(smbd_open_one_socket)
Feb 21 15:09:21 alarmpi smbd[2155]: smbd_open_once_socket: open_socket_in: Address family not supported by protocol
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.590267, 0] ../source3/lib/util_sock.c:423(open_socket_in)
Feb 21 15:09:21 alarmpi smbd[2155]: open_socket_in(): socket() call failed: Address family not supported by protocol
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.591488, 0] ../source3/smbd/server.c:684(smbd_open_one_socket)
Feb 21 15:09:21 alarmpi smbd[2155]: smbd_open_once_socket: open_socket_in: Address family not supported by protocol
查找原因可能是由于缺少ivp6支持,不影响服务使用
若是要修改为仅限于ipv4,可修改配置:
bind interfaces only = yes
interfaces = 127.0.0.1 host_ip_address
或者:
bind interfaces only = yes
interfaces = lo eth0 wlan