wsl 中安装

C:\Windows\System32\wsl.exe -d Ubuntu -- "/mnt/c/program files/microsoft visual studio/2022/enterprise/common7/ide/extensions/0c4twv0k.1d3/Scripts/InstallDotNet.sh" aspnetcore 6.0

 

 

 

1,touch ~/.proxy


2,
#!/bin/bash
hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*')
export https_proxy="http://${hostip}:7890"
export http_proxy="http://${hostip}:7890"
export all_proxy="socks5://${hostip}:7890"

3,
source ~/.proxy
posted @ 2023-08-03 14:41  张保维  阅读(12)  评论(0编辑  收藏  举报