## 国内镜像源安装第三方包,永久修改 npm version npm config set registry https://registry.npm.taobao.org
Windows SSH 一键安装 CMD 命令
1 2 3 4 5 6 7 8 9 10
# Search the OpenSSH Get-WindowsCapability-Online | Where-Object Name -like'OpenSSH*' # Install the OpenSSH Client Add-WindowsCapability-Online-Name OpenSSH.Client~~~~0.0.1.0 # Install the OpenSSH Server Add-WindowsCapability-Online-Name OpenSSH.Server~~~~0.0.1.0 # Start the sshd service Start-Service sshd # OPTIONAL but recommended: Set-Service-Name sshd -StartupType'Automatic'
# Step 1 — Opening and Configuring PowerShell (Run as Administrator.) # Use the RemoteSigned execution policy to set the permissions for the current user. Set-ExecutionPolicy-Scope CurrentUser RemoteSigned Get-ExecutionPolicy-List
# Step 2 — Installing the Package Manager Chocolatey $script = New-Object Net.WebClient $script | Get-Member # DownloadString method used to display the script and signature in the PowerShell window. Use this method to inspect the script: $script.DownloadString("https://chocolatey.org/install.ps1") # After inspecting the script, install Chocolatey by typing the following into PowerShell: iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex choco upgrade chocolatey
# Step 3 — Installing App choco install -y nano choco install -y golang go version
Linux Golang 一键安装 BASH 命令
1 2 3 4 5 6 7 8 9
mkdir -p ~/deploy/ && cd ~/deploy/ wget -q https://studygolang.com/dl/golang/go1.20.6.linux-amd64.tar.gz rm -rf ~/deploy/go && tar -C ~/deploy/ -xzf go1.20.6.linux-amd64.tar.gz echo'export PATH=~/deploy/go/bin:$PATH' >> ~/.profile && source ~/.profile go version
## 国内镜像源安装第三方包,永久修改 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn