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 > use admin
> db.createUser({ > db.createUser({
user: "root", user: "root",
pwd: "root", pwd: "123456",
roles: [ { role: "userAdminAnyDatabase", db: "admin" }] 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 use test
db.createUser( db.createUser(
{ {

View File

@ -7,9 +7,9 @@
``` bash ``` bash
sudo apt install nodejs sudo apt install nodejs
sudo apt install npm sudo apt install npm
npm install npm@latest -g
sudo npm install n@latest -g sudo npm install n@latest -g
sudo n stable sudo n stable
npm install npm@latest -g
node -v node -v
npm -v npm -v
``` ```

View File

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

View File

@ -11,5 +11,5 @@ screen -dmS sslocal sslocal -c /etc/shadowsocks.json -d start
screen -dmS test ngrokStart -d screen -dmS test ngrokStart -d
sudo ./bin/ngrokd -tlsKey=server.key -tlsCrt=server.crt -domain="ngrok.hellolight.me" -httpAddr=":8081" -httpsAddr=":8082" 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
```