updates
This commit is contained in:
commit
72ca6535db
@ -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
|
||||
|
||||
```
|
||||
|
||||
|
||||
@ -7,3 +7,16 @@ 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
|
||||
|
||||
```
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user