安装 curl
sudo apt install curlDocker 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.0~ce-0~ubuntu
$ sudo apt-get install docker-ce=17.09.0~ce-0~ubuntu- run hello-world
$ sudo docker run hello-worlddocker-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 -vubuntu 切换root用户
初次使用Unbutu发现无法切换到Root权限状态,可以按如下到步骤做:
先设置root到密码:sudo passwd root ;
在控制台直接输入:su root ,并输入密码;
就可以获得root权限了。
技术交流 :微信(liyc1215)
商务合作 :微信(ershiyidianjian)

版权声明:本文为lengxue789原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。