Note-55407-1

Token ID: 1

ERC-721 1 Transfers

Metadata

{
  "title": "Ubuntu升级go版本",
  "tags": [
    "post",
    "Ubuntu"
  ],
  "summary": "Ubuntu升级go版本",
  "sources": [
    "xlog"
  ],
  "external_urls": [
    "https://blog.idarian.com/Ubuntu-sheng-ji-go-ban-ben"
  ],
  "date_published": "2023-05-09T13:00:28.758Z",
  "content": "## 1.若系统之前存在旧版本的go,无则跳过此步骤(查看go版本:go version)\n```\n1、sudo rm -rf /usr/local/go\n2、sudo apt-get remove golang\n3、sudo apt-get remove golang-go\n4、sudo apt-get autoremove\n```\n## 2. 安装必要组件\n```\napt install wget\n```\n## 3. 获取go安装包\n```\nwget https://go.dev/dl/go1.20.4.linux-amd64.tar.gz\n```\n## 4.解压go\n```\ntar -C /usr/local -xzf go1.20.4.linux-amd64.tar.gz\n```\n## 5.设置环境变量\n```\nexport PATH=$PATH:/usr/local/go/bin\n```\n## 6.再次执行go version查看版本",
  "attributes": [
    {
      "value": "Ubuntu-sheng-ji-go-ban-ben",
      "trait_type": "xlog_slug"
    }
  ]
}