method | api | describe |
---|---|---|
post |
/api/user/regiser | 注册 |
get |
/api/logout | 注销 |
post |
/api/login | 登录 |
post |
/api/admin/article | 发布文章 |
get |
/api/admin/article/list | 获取文章列表 |
get |
/api/admin/article/{id} | 获取文章 |
delete |
/api/admin/article/{id} | 删除文章 |
put |
/api/admin/article/{id} | 文章 |
ssh-copy-id [email protected]
use admin db.createUser({user: "root", pwd: "123456", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]})
db.auth('root', '123456') use blog db.createUser({user: "db", pwd: "123456", roles: [ { role: "userAdminAnyDatabase", db: "blog" } ]})
mongod -f /ect/mongo.conf
mongod --db
-ef | grep mongo
pgrep nginx | xargs ps -u --pid
- nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash - yarm
- pm2