常用服务端口号怎么设置,常用端口号对应的服务

常用服务端口号怎么设置,常用端口号对应的服务

在计算机网络中,端口号是用来标识不同服务的数字标识符,不同的服务会使用不同的端口号,以便在网络中进行通信,本文将介绍常用的服务端口号设置方法,以及常用端口号对应的服务类型,我们还将提供一个相关问题与解答的栏目,以帮助读者更好地理解这个主题。

常用服务端口号怎么设置,常用端口号对应的服务

常用服务端口号设置方法

1、更改注册表设置

Windows操作系统中的注册表是一个存储系统设置的数据库,通过修改注册表,可以更改应用程序使用的端口号,以下是如何更改注册表设置的步骤:

(1)打开“运行”对话框,输入“regedit”,然后按回车键,这将打开注册表编辑器。

(2)导航到以下路径:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

(3)在右侧窗格中,找到名为“PortNumber”的DWORD值,如果不存在,请创建一个新的DWORD值。

(4)双击“PortNumber”,在弹出的对话框中输入所需的端口号,请注意,端口号必须在0和65535之间。

(5)单击“确定”保存更改,然后关闭注册表编辑器。

2、使用命令行工具

除了修改注册表外,还可以使用命令行工具来更改应用程序使用的端口号,以下是如何使用命令行工具更改端口号的步骤:

(1)打开命令提示符窗口,要做到这一点,可以按下Win + R键,输入“cmd”,然后按回车键。

(2)输入以下命令,将端口号更改为所需的值(8080):

常用服务端口号怎么设置,常用端口号对应的服务

netsh int tcp set global autotuninglevel=disabled

netsh int tcp set global congestionprovider=ctcp

netsh int tcp set global congestionproviderparameters=fastresetinitialrtt:true lossfactor:normal

netsh int tcp set global heuristicsenabled=false

netsh int tcp set global maxconnectionsperport=1024

netsh int tcp set global initialconnectionwindow=1024

netsh int tcp set global idletimeout=false

netsh int tcp set global resetonhardreset=true

netsh int tcp set global timestampsenabled=true

netsh int tcp set global timestamprate=lowdelay

netsh int tcp set global windowscalingalgorithm=nagle

常用服务端口号怎么设置,常用端口号对应的服务

netsh int tcp set global delayedackthresholdpercent=50

netsh int tcp set global reorderingenabled=true

netsh int tcp set global reorderingdelay=200ms

netsh int tcp set global reorderingmaxretries=100000000

netsh int tcp set global randarenabled=false

netsh int tcp set global randarttlsreorderingdelaypercent=50

netsh int tcp set global fastopenenabled=true

netsh int tcp set global fastopenautotuninglevel=highlossfactor:true delay:false renoscale:false congestionprovider:ctcp congestionproviderparameters:fastresetinitialrtt:true lossfactor:normal fastopenmaxcongestionreturns:1024 fastopenretries:1024 fastopenretrydelayinmilliseconds:10000 fastopenmaxcongestionwindowsize:1024 fastopenmaxunackedpacketsinwindow:1024 fastopenmaxcongestionwindowsizeafterslowstart:1024 fastopenmaxunacknowledgedsegments:1024 fastopenmaxcongestionwindowincrementperretry:16384 fastopenmincongestionwindowsize:65536 fastopenminunacknowledgedsegments:65536 fastopenminunacknowledgedsegmentsafterslowstart:65536 fastopenminmaxunacknowledgedsegments:9632 fastopenminmaxunacknowledgedsegmentsafterslowstart:9632 netsh interface portproxy add v4tov4 listenport=需要更改的端口号 listenaddress=所有子网接口 enable=yes connectport=需要更改的端口号 connectaddress=本地IP地址 connectstate=established stateconnection=one-to-one storefirstlastok persiststate=true storefailurereportintervalsecs=30 storelimitcount=1 storelimitdurationsecs=3600 storelimitaction=delete persistidletimeoutsecs=60 persistclosewaitsecs=1 persistconnectionclosewaitsecs=30 persistnewconnectionclosewaitsecs=30 persistnewconnectionidletimeoutsecs=60 persistnewconnectionstateclosedwaitsecs=30 persistnewconnectionstateclosingwaitsecs=30 persistnewconnectionstateidletimeoutsecs=60 persistnewconnectionstateclosingwaitsecs=30 name="自动配置端口" description="自动配置端口" displayname="自动配置端口" type="TCP" enablerouting="是" useforprocesslocal="否" proxyprotocol="否" disablewinbox="否" disablendp="否" disablerdp="否" disablerfb="否" disablepowershellremoting="否" disablevmware="否" disablehyperv="否" disabletfopc="否" disablewam="否" disablewmic="否" disablerasclient="否" disablerasphone="否" disablerasserver="否" enablend+="是" enablendp="是" enablerdp="是" enablerfb="是" enablepowershellremoting="是" enablevmware="是" enablehyperv="是" enabletfopc="是" enablewam="是" enablewmic="是" enablerasclient="是" enablerasphone="是" enablerasserver="是" enablenp+="是" enablenpcap="是" enablenpf="是" enablenpf11="是" enablenpx="是" enablewsman="是" allowremoteadministration="否" allowmanagementagent="否" allowntlmv2authentication="否" allowselfserviceinterface="否" allowdirectadministrationfromconsole="否" allowprofilechangeuiforsystemadministratorsonly="否" allowuntrustedeap="否" allowuniversalplatformeap="否" allowwebbrowsereap="否" allowselfserviceinterfacewithlogoncredentials="否" allowuntrustedeapwithlogoncredentials="否'```

原创文章,作者:K-seo,如若转载,请注明出处:https://www.kdun.cn/ask/138692.html

(0)
K-seoK-seoSEO优化员
上一篇 2023年12月18日 00:28
下一篇 2023年12月18日 00:30

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

免备案 高防CDN 无视CC/DDOS攻击 限时秒杀,10元即可体验  (专业解决各类攻击)>>点击进入