#端口占用 问题处理 

使修改的配置立即生效
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     它指定了本地预留的服务端监听端口,默认无