如何在Ubuntu上禁用IPv6?
我在运行ssh和rsync的Ubuntu机器上禁用了IPv6。但是这两个都仍在侦听IPv6地址。我该如何解决? root@box.com:~# sysctl net.ipv6.conf.all.disable_ipv6 net.ipv6.conf.all.disable_ipv6 = 1 root@box.com:~# sysctl net.ipv6.conf.default.disable_ipv6 net.ipv6.conf.default.disable_ipv6 = 1 root@box.com:~# sysctl net.ipv6.conf.lo.disable_ipv6 net.ipv6.conf.lo.disable_ipv6 = 1 和 root@box.com:~# ss -lnp6 State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 :::22 :::* users:(("sshd",1505,4)) LISTEN 0 5 :::873 :::* users:(("rsync",3423,5))