diff --git a/mongodb/auth.md b/mongodb/auth.md index 6b16b47..d78a595 100644 --- a/mongodb/auth.md +++ b/mongodb/auth.md @@ -6,11 +6,19 @@ $ mongo > use admin > db.createUser({ user: "root", - pwd: "root", + pwd: "123456", roles: [ { role: "userAdminAnyDatabase", db: "admin" }] } ) - +db.auth('root', '123456') +db.createUser({ + user: "light", + pwd: "123456", + roles: [ { role: "root", db: "admin" }] + } +) +# mongodb://light:123456@127.0.0.1:27017/ +# mongodb://tester:xyz123@127.0.0.1:27017/test use test db.createUser( { diff --git a/nodejs/install.md b/nodejs/install.md index 85d0bd6..8ed93b9 100644 --- a/nodejs/install.md +++ b/nodejs/install.md @@ -7,9 +7,9 @@ ``` bash sudo apt install nodejs sudo apt install npm -npm install npm@latest -g sudo npm install n@latest -g sudo n stable +npm install npm@latest -g node -v npm -v ``` diff --git a/redis/配置.md b/redis/配置.md index 250c7a4..06801fd 100644 --- a/redis/配置.md +++ b/redis/配置.md @@ -1,5 +1,7 @@ # redis 安装配置 +> https://redis.io/download + ## 安装 ``` bash diff --git a/ubuntu/screen.md b/ubuntu/screen.md index 3d6c9be..a9a62d1 100644 --- a/ubuntu/screen.md +++ b/ubuntu/screen.md @@ -11,5 +11,5 @@ screen -dmS sslocal sslocal -c /etc/shadowsocks.json -d start screen -dmS test ngrokStart -d sudo ./bin/ngrokd -tlsKey=server.key -tlsCrt=server.crt -domain="ngrok.hellolight.me" -httpAddr=":8081" -httpsAddr=":8082" - +sudo screen -S 12597 -X quit ``` \ No newline at end of file diff --git a/ubuntu/uget.md b/ubuntu/uget.md new file mode 100644 index 0000000..fbef57f --- /dev/null +++ b/ubuntu/uget.md @@ -0,0 +1,18 @@ +# ubuntu 16.04 安装使用 uget + +> http://www.cnblogs.com/EasonJim/p/7119294.html + + +## 安装uget + +``` bash +sudo add-apt-repository ppa:plushuang-tw/uget-stable +sudo apt update +sudo apt install uget +``` + +``` bash +sudo add-apt-repository ppa:t-tujikawa/ppa +sudo apt update +sudo apt install aria2 +``` \ No newline at end of file