Notice: file_put_contents(): Write of 810 bytes failed with errno=28 No space left on device in /var/www/tg-me/post.php on line 50

Warning: file_put_contents(): Only 8192 of 9002 bytes written, possibly out of free disk space in /var/www/tg-me/post.php on line 50
浅影随想 | Telegram Webview: lightFantasy/2035 -
Telegram Group & Telegram Channel
#推荐 #tips #clash #wsl2 #Windows #ss
「各种代理及Docker提示 端口 port 被占用和异常的原因及解决方案」

原因:
由于hyper-v保留了这些端口,所以需要先关闭hyper-v,保留想要保留的端口,再开启hyper-v功能

解决方案(管理员权限):
1. 关闭 hyper-v (需要重启)
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
2. 重启后,按需保留需要的端口(关闭代理/Docker软件)
netsh int ipv4 add excludedportrange protocol=tcp startport=7890 numberofports=3
netsh int ipv4 add excludedportrange protocol=tcp startport=1080 numberofports=2
netsh int ipv4 add excludedportrange protocol=tcp startport=3306 numberofports=1
netsh int ipv4 add excludedportrange protocol=tcp startport=50051 numberofports=1
3. 重新开启 hyper-V (需要重启)
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

via. github@issues:docker
via. github@issues:ss-win

PS
显示 IPv4 协议 tcp 动态端口范围
netsh int ipv4 show dynamicport tcp
设置 IPv4 协议 tcp 动态端口范围
netsh int ipv4 set dynamicport tcp start=49152 num=16384
另一组:
start=1024 num=13977
显示 IPv4 协议 tcp 端口排除范围
netsh int ipv4 show excludedportrange protocol=tcp


@lightFantasy



tg-me.com/lightFantasy/2035
Create:
Last Update:

#推荐 #tips #clash #wsl2 #Windows #ss
「各种代理及Docker提示 端口 port 被占用和异常的原因及解决方案」

原因:
由于hyper-v保留了这些端口,所以需要先关闭hyper-v,保留想要保留的端口,再开启hyper-v功能

解决方案(管理员权限):
1. 关闭 hyper-v (需要重启)
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
2. 重启后,按需保留需要的端口(关闭代理/Docker软件)
netsh int ipv4 add excludedportrange protocol=tcp startport=7890 numberofports=3
netsh int ipv4 add excludedportrange protocol=tcp startport=1080 numberofports=2
netsh int ipv4 add excludedportrange protocol=tcp startport=3306 numberofports=1
netsh int ipv4 add excludedportrange protocol=tcp startport=50051 numberofports=1
3. 重新开启 hyper-V (需要重启)
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

via. github@issues:docker
via. github@issues:ss-win

PS
显示 IPv4 协议 tcp 动态端口范围

netsh int ipv4 show dynamicport tcp
设置 IPv4 协议 tcp 动态端口范围
netsh int ipv4 set dynamicport tcp start=49152 num=16384
另一组:
start=1024 num=13977
显示 IPv4 协议 tcp 端口排除范围
netsh int ipv4 show excludedportrange protocol=tcp


@lightFantasy

BY 浅影随想




Share with your friend now:
tg-me.com/lightFantasy/2035

View MORE
Open in Telegram


浅影随想 Telegram | DID YOU KNOW?

Date: |

Newly uncovered hack campaign in Telegram

The campaign, which security firm Check Point has named Rampant Kitten, comprises two main components, one for Windows and the other for Android. Rampant Kitten’s objective is to steal Telegram messages, passwords, and two-factor authentication codes sent by SMS and then also take screenshots and record sounds within earshot of an infected phone, the researchers said in a post published on Friday.

浅影随想 from us


Telegram 浅影随想
FROM USA