Fabric 之 Ubuntu 環(huán)境安裝

安裝 curl

sudo apt install curl

Docker and Docker Compose

安裝倉庫

  • Update the apt package index
$ sudo apt-get update
  • Install packages to allow apt to use a repository over HTTPS:
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
  • Add Docker’s official GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  • Use the following command to set up the stable repository.
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

安裝 DOCKER CE

  • Update the apt package index.
$ sudo apt-get update
  • Install the latest version of Docker CE
$ sudo apt-get install docker-ce
  • install docker-ce=17.09.0ce-0ubuntu
$ sudo apt-get install docker-ce=17.09.0~ce-0~ubuntu
  • run hello-world
$ sudo docker run hello-world

docker-compose

sudo apt install docker-compose

安裝 go

解壓下載的 go1.9.2.linux-amd64.tar.gz

sudo tar -xzf go1.9.2.linux-amd64.tar.gz -C /usr/local

配置全局變量

$ sudo gedit ~/.bashrc

添加如下代碼

export GOPATH=/usr/local/go
export PATH=$GOPATH/bin:$PATH

重啟配置文件

source ~/.bashrc

安裝 node

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

檢測 node 版本

nodejs -v

ubuntu 切換root用戶

初次使用Unbutu發(fā)現(xiàn)無法切換到Root權(quán)限狀態(tài),可以按如下到步驟做:

先設置root到密碼:sudo passwd root ;
在控制臺直接輸入:su root ,并輸入密碼;
就可以獲得root權(quán)限了。

技術(shù)交流 :微信(liyc1215)

商務合作 :微信(ershiyidianjian)

關(guān)注公眾號
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,536評論 19 139
  • [For Linux: add 'sudo' before all the commands] 1.image: ...
    于愷雯閱讀 1,138評論 1 2
  • 隨著媒體內(nèi)容的多元化,讓我發(fā)現(xiàn)世界是多個并行的世界,或者也可以叫多元的世界,不要太精彩噢。發(fā)現(xiàn)這個現(xiàn)象后,每每想到...
    新小棉閱讀 179評論 0 0
  • 心愿達成,鉑金,偶遇路人大神。
    chaosii閱讀 197評論 0 0
  • 文 六孑簫 夜深了 深的望不見那一輪明月 夜深了 深的我怕一聲呼吸都能阻隔對你的思念 夜深了 深的不敢閉上眼去往...
    六孑簫閱讀 238評論 3 1

友情鏈接更多精彩內(nèi)容