当前位置:网站首页>Install go environment under Kali
Install go environment under Kali
2022-07-24 01:40:00 【Goodric】
kali Lower installation go Environmental Science
1. install go
Download installation package , command :
wget -c https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz

After downloading , Unzip to /usr/local Under the table of contents :
tar -C /usr/local/ -xzf go1.8.3.linux-amd64.tar.gz

2. Configuration environment
vim Open file .profile
vim /etc/profile
Add after the contents of the document
export PATH=$PATH:/usr/local/go/bin
take /usr/local/go/bin Add directory to PATH environment variable 
Execute the following command , Make environment variables effective immediately
source /etc/profile
See if the configuration is successful , View version 
But I found that every execution go All commands have to be re executed source /etc/profile
The online tutorial says that you can ~/.bashrc Add a sentence to it source /etc/profile
It's automatic .
vim ~/.bashrc

Using command :
go get -v
appear timeout Warning 
Error reason : The default is proxy.golang.org, Can't visit... At home
Change a proxy address that can be accessed in China :https://goproxy.cn. Re execute the command
see go Environment variables of :
go env

Then use the command to change GPATH Options :
go env -w GOPROXY=https://goproxy.cn
or
export GOPROXY=https://goproxy.cn
These two commands seem to be executed every time , I don't know whether there is a permanent change method .
边栏推荐
- 基于强化空间注意力的视网膜网络(ESA-Unet)
- C byte array and class mutual conversion
- Hcip first day notes
- 简单GAN实例代码
- The first day of little bear pie
- Domestic MCU and SOC are rising, but they are still lagging behind in special fields
- 中小型医院基础网络解决方案
- How to synchronize MySQL database when easycvr platform is upgraded to the latest version v2.5.0?
- Design of hospital wireless network system
- HCIP第六天笔记
猜你喜欢

20220723 record an unexplained shutdown of SAP Oracle monitoring service

Non boost ASIO notes: UDP UART socketcan multicast UDS

代码阅读方法与最佳实践

How to solve the problem that the universal vision NVR device is connected to the easycvr platform and cannot be online after offline?

1000 okaleido tiger launched binance NFT, triggering a rush to buy

OSPF(第六天笔记)

How to solve the problem that the device video cannot be played due to the missing CGO playback callback parameters of easycvr platform?

xxl-job使用注意事项

Excel simple macro

"Guanghetong AI intelligent module sca825-w" with full AI performance accelerates the era of e-commerce live broadcast 2.0
随机推荐
OSPF(第四天笔记)
vantUI,Axiso,常见问题及使用:
选址与路径规划问题(Lingo,Matlab实现)
Location and path planning (lingo, matlab implementation)
jenkins多任务并发构建
HCIP第四天笔记
Structure the second operation of the actual combat battalion module
Jenkins multitâche construction simultanée
Arm architecture and programming 4 -- serial port (based on Baiwen arm architecture and programming tutorial video)
Rip --- routing information protocol
The first day of little bear pie
Hospital generic cabling
小熊派简介和环境搭建
NLP introduction + practice: Chapter 1: deep learning and neural network
Spark partition operators partitionby, coalesce, repartition
HCIP第三天笔记
What are the principal guaranteed financial products with an annual interest rate of about 6%?
Review of HCIA
About routing
Kotlin foundation from introduction to advanced series explanation (basic chapter) keyword: suspend