Linux允许普通用户使用1024以下端口
注:跟tomcat使用80、443还不是一码事,因为那个tomcat还是用root起的,这里解决的是使用普通账户起类似80、443等端口
vi /etc/sysctl.conf
net.ipv4.ip_unprivileged_port_start=0
:wq
yangzhimingg 博主文章分类:web 服务
文章标签 sysctl.conf 文章分类 运维
Linux允许普通用户使用1024以下端口
注:跟tomcat使用80、443还不是一码事,因为那个tomcat还是用root起的,这里解决的是使用普通账户起类似80、443等端口
net.ipv4.ip_unprivileged_port_start=0
:wq
下一篇:ingress yaml示例
通常服务器会有许多块网卡,因此也可能会连接到不同的网络,在隔离的网络中,某些服务可能会需要进行通信,此时服务器经过配置就可以承担起了转发数据包的功能。
权限限制:在大多数操作系统中,端口号低于1024(例如80)是被系统保留的,需要管理员权限才能使用。如果您以普通用户身份尝试使用80端口,操作系统会将其重定向到一个
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M