栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Go语言

记录ubuntu sever端各种工具安装 go docker

Go语言 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

记录ubuntu sever端各种工具安装 go docker

记录各种环境安装
重启

reboot
go

如果要卸载旧版本

sudo apt-get remove golang-go
sudo apt-get remove --auto-remove golang-go

下载 Go 压缩包
新版本可以去官网看看,手动修改下载路径

wget -c https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local

调整环境变量
Go 目录添加到$PATH环境变量

cd /etc
sudo vim profile
export PATH=$PATH:/usr/local/go/bin

重启

go version
docker

安装docker

curl -sSL https://get.daocloud.io/docker | sh

启动

sudo systemctl start docker
systemctl start docker

开机自启

systemctl enable docker
nodejs

Node.js LTS (v16.x):推荐
Using Ubuntu

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

Using Debian, as root

curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs

Node.js Current (v17.x):
Using Ubuntu

curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt-get install -y nodejs

Using Debian, as root

curl -fsSL https://deb.nodesource.com/setup_current.x | bash -
apt-get install -y nodejs

后续慢慢添加

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/908771.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号