Article ID: 113504, created on Jan 13, 2014, last review on May 1, 2014

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix

问题

FTP 服务无法启动出现以下错误:

2011-12-28T10:06:42.255300+01:00 server xinetd[503]: socket creation failed (Address family not supported by protocol (errno = 97)). service = ftp
2011-12-28T10:06:42.255306+01:00 server xinetd[503]:Service ftp failed to start and is deactivated.

原因

因为在主机上禁用了 IPv6 支持

# grep v6 /etc/modprobe.conf
alias ipv6 off
options ipv6 disable=1
# grep -i v6 /etc/sysconfig/network
NETWORKING_IPV6=no
IPV6FORWARDING=yes

解决方案

/etc/xinetd.d/ftp_psa 中,移除标识为 红色 的并添加标识为 绿色 的数据:

service ftp
{
        flags           = IPv6
        flags           = IPv4 
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        instances       = UNLIMITED
        server          = /usr/sbin/in.proftpd
        server_args     = -c /etc/proftpd.conf
}

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838 e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article