Fabric 之 Ubuntu 环境安装

安装 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发现无法切换到Root权限状态,可以按如下到步骤做:

先设置root到密码:sudo passwd root ;
在控制台直接输入:su root ,并输入密码;
就可以获得root权限了。

技术交流 :微信(liyc1215)

商务合作 :微信(ershiyidianjian)

关注公众号
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 136,084评论 19 139
  • [For Linux: add 'sudo' before all the commands] 1.image: ...
    于恺雯阅读 4,695评论 1 2
  • 随着媒体内容的多元化,让我发现世界是多个并行的世界,或者也可以叫多元的世界,不要太精彩噢。发现这个现象后,每每想到...
    新小棉阅读 1,310评论 0 0
  • 心愿达成,铂金,偶遇路人大神。
    chaosii阅读 1,405评论 0 0
  • 文 六孑箫 夜深了 深的望不见那一轮明月 夜深了 深的我怕一声呼吸都能阻隔对你的思念 夜深了 深的不敢闭上眼去往...
    六孑箫阅读 1,549评论 3 1

友情链接更多精彩内容