diff --git a/docker/docker.md b/docker/docker.md index 8224002..c12ad3b 100644 --- a/docker/docker.md +++ b/docker/docker.md @@ -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 ## 加速 @@ -32,3 +32,18 @@ sudo systemctl daemon-reload sudo systemctl restart docker ``` +## 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 + +``` + diff --git a/mongodb/install.md b/mongodb/install.md index 83168a5..d925cc8 100644 --- a/mongodb/install.md +++ b/mongodb/install.md @@ -5,4 +5,17 @@ ``` bash docker pull mongo docker run -p 27017:27017 -v /data/db:/data/db -d mongo:3.2 +``` + +## adminmongo + +``` bash + +git clone https://github.com/mrvautin/adminMongo.git + +cd adminMongo + +npm install +npm start + ``` \ No newline at end of file diff --git a/nodejs/install.md b/nodejs/install.md index 8ed93b9..7f66870 100755 --- a/nodejs/install.md +++ b/nodejs/install.md @@ -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