#端口占用 問題處理 使修改的配置當即生效 sysctl -p # cat /etc/sysctl.conf|grep -wE "net.ipv4.ip_local_port_range|net.ipv4.ip_local_reserved_ports" net.ipv4.ip_local_port_range = 18000 65535 net.ipv4.ip_local_reserved_ports = 7060-7061,7890,9527,17890 # cat /proc/sys/net/ipv4/{ip_local_port_range,ip_local_reserved_ports} 18000 65535 7060-7061,7890,9527,17890 net.ipv4.ip_local_port_range 它指定了本地發起鏈接請求時能夠獲取的隨機端口 ip_local_reserved_ports 它指定了本地預留的服務端監聽端口,默認無