Linux允许普通用户使用1024以下端口

注:跟tomcat使用80、443还不是一码事,因为那个tomcat还是用root起的,这里解决的是使用普通账户起类似80、443等端口


vi /etc/sysctl.conf

net.ipv4.ip_unprivileged_port_start=0

:wq

sysctl -p