更新时间:2023-11-08 14:38:34
下面的命令会列出Linux系统中的临时端口范围
Following command will list the ephemeral port range in Linux system
sysctl net.ipv4.ip_local_port_range
如果不想重启,编辑/etc/sysctl.conf文件后执行以下命令即可生效.
If we don't want to reboot, after editing /etc/sysctl.conf file if we execute following command it will be effective.
sysctl -p /etc/sysctl.conf .
有效范围的事情的真相是输出
The truth of the matter of effective range is output of
sysctl net.ipv4.ip_local_port_range
正如 eckes 在评论中提到的那样.
as mentioned by eckes in comment.