且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MySQL/PHP 错误:[2002] 每个套接字地址(协议/网络地址/端口)通常只允许使用一次

更新时间:2022-12-27 14:40:32

你可以修改windows REGISTRY来解决这个问题,

you can modify windows REGISTRY to fix that,

首先在regedit中打开这个路径:

first in regedit open this path:

HKLMSYSTEMCurrentControlSetServicesTcpipParameters

HKLMSYSTEMCurrentControlSetServicesTcpipParameters

并创建 4 个新的 DWORD 作为该键和值:

and create 4 new DWORD as this key and values:

TcpTimedWaitDelay
REG_DWORD: 0000001e (hex)

MaxUserPort
REG_DWORD: 0000fffe (hex)

TcpNumConnections
REG_DWORD: 00fffffe (hex)

TcpMaxDataRetransmissions
REG_DWORD: 00000005 (hex)

喜欢这个屏幕截图:

参考