Merge branch 'master' of git.coding.net:linklink/mynote

This commit is contained in:
light 2018-01-01 18:06:34 +08:00
commit f0feebf529
5 changed files with 32 additions and 4 deletions

View File

@ -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(
{

View File

@ -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
```

View File

@ -1,5 +1,7 @@
# redis 安装配置
> https://redis.io/download
## 安装
``` bash

View File

@ -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
```

18
ubuntu/uget.md Normal file
View File

@ -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
```