Go windows installation and linux installation

Go windows installation is very simple
. Download the .msi file
By defaultYou can add the c:\Go\bin directory to the PATH environment variable.
Check if the installation is successful
Open



the command prompt (cmd.exe) in Windows and execute the command: go version or go help linux. Go source code installation on the system
1. Download the source package: go1.4.linux-amd64.tar.gz.
2. Unzip the downloaded source package to the /usr/local directory.
   tar -C /usr/local -xzf go1.4.linux-amd64.tar.gz
3. Add the /usr/local/go/bin directory to the PATH environment variable:
   export PATH=$PATH:/usr/local/go /bin
Note: Under MAC system, you can use the installation package ending with .pkg to directly double-click to complete the installation. The installation directory is under /usr/local/go/.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326211368&siteId=291194637