This commit is contained in:
light 2018-03-05 15:30:38 +08:00
commit 72ca6535db
3 changed files with 37 additions and 5 deletions

View File

@ -2,8 +2,8 @@
## step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
sudo apt update
sudo apt -y install apt-transport-https ca-certificates curl software-properties-common
## step 2: 安装GPG证书
@ -15,8 +15,8 @@ sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/li
## Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
sudo apt -y update
sudo apt -y install docker-ce
## 加速
@ -36,5 +36,18 @@ sudo systemctl restart docker
``` bash
docker login registry.cn-hangzhou.aliyuncs.com
## not to type sudo
``` bash
cat /ect/group
# if docker grouo not exist , then run this command: sudo groupadd docker
sudo gpasswd -a ${USER} docker
# add me into docker group
sudo service docker restart
reboot # or relogin
```

View File

@ -6,4 +6,17 @@
docker pull mongo
docker run -p 27017:27017 -v /data/db:/data/db -d mongo --name=mongodb
sudo docker exec -i -t id /bin/bash
```
## adminmongo
``` bash
git clone https://github.com/mrvautin/adminMongo.git
cd adminMongo
npm install
npm start
```

View File

@ -9,9 +9,15 @@ sudo apt install nodejs
sudo apt install npm
sudo npm install n@latest -g
sudo n stable
npm install npm@latest -g
sudo npm install npm@latest -g
node -v
npm -v
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
#or
npm config set registry https://registry.npm.taobao.org
npm config get registry
```
- if error: /usr/bin/env: node: No such file or directory