解决WSL2 443端口占用问题

1.查找主机443端口占用程序

netstat -ano|findstr “443”

  结束相关进程

tasklist

 

 

taskkill /f /pid 8920

 

 

2.使用代理

  1.查看主机IP地址

grep nameserver /etc/resolv.conf

  2.写入到环境变量

export https_proxy='http://172.30.112.1:58591'
export http_proxy='http://172.30.112.1:58591'

 

posted @ 2020-06-03 22:13  SpringCore  阅读(1593)  评论(0编辑  收藏  举报