Ubuntu16 04下搭建Go語言環境

2021-09-08 19:44:06 字數 536 閱讀 9569

1. 安裝go

sudo apt-get install golang-go

2. 設定go環境變數

開啟終端,輸入命令:

export goroot=$home/go

export path=$goroot/bin:$pathu

3. 設定go**目錄

4.  測試安裝

完成安裝後,新建乙個文件來測試環境是否搭建成功:

example helloworld.go

package main

import (

"fmt""

runtime")

func main()

執行go run helloworld.go, 應該會列印出:

或者go build helloworld.go,將生成helloworld.sh,./helloworld也可以執行。

hellow world! %!(extra string=go1.6.2)

Ubuntu16 04下tftp服務搭建

ubuntu下tftp服務搭建 1 安裝軟體包 sudo apt get install tftpd tftp xinetd 2 建立配置檔案 在 etc xinetd.d 下建立乙個配置檔案tftp sudo vi etc xinetd.d tftp 內容如下 service tftp 3 建立t...

ubuntu16 04下tftp服務搭建

tftp trivial file transfer protocol,簡單檔案傳輸協議 是tcp ip協議族中的乙個用來在客戶機與伺服器之間進行簡單檔案傳輸的協議,提供不複雜 開銷不大的檔案傳輸服務。埠號為69。tftp是乙個傳輸檔案的簡單協議,它基於udp協議而實現,但是我們也不能確定有些tft...

Ubuntu16 04下terminator的使用

安裝terminator sudo apt get install terminator常用快捷鍵 命令 說明 ctrl shift o 水平分割視窗 ctrl shift e 垂直分割視窗 f11 全屏 退出全屏 ctrl shift c 複製 ctrl shift v 貼上 ctrl tab 在...