Linux bash shell All In One

Linux

https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html

https://github.com/qinjx/30min_guides/blob/master/shell.md


$ cd ./api/ # db.json
# nodemon -w server.js 8888
# json-server -w -p 3000 db.json $ /bin/sh sudo db.sh

bash shell

https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html

https://linuxconfig.org/bash-scripting-tutorial

nodemon

shit cli

https://github.com/remy/nodemon/wiki#options

stop

https://teamtreehouse.com/community/how-do-i-stop-nodemon


$ ps -ef | grep node $ sudo kill -9 <PID>

http://jpsierens.com/tutorial-livereload-nodemon-gulp/

Restful API & CURD

https://medium.com/quick-code/node-js-restful-api-with-dynamodb-local-7e342a934a24

https://www.codementor.io/olatundegaruba/nodejs-restful-apis-in-10-minutes-q0sgsfhbd

https://hackernoon.com/full-stack-web-application-using-react-node-js-express-and-webpack-97dbd5b9d708

https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2

https://zellwk.com/blog/crud-express-mongodb/

PM2

Advanced, production process manager for Node.js

https://pm2.keymetrics.io/


$ npm install pm2 -g

https://pm2.keymetrics.io/docs/usage/quick-start/

PM2 ecosystem.config.js

https://doc.pm2.io/en/runtime/guide/ecosystem-file/

https://pm2.keymetrics.io/docs/usage/application-declaration/

https://stackoverflow.com/questions/47166609/how-can-i-get-pm2-to-use-my-ecosystem-config-js-file-on-reboot

nodemon

shit cli

https://github.com/remy/nodemon/wiki#options

stop

https://teamtreehouse.com/community/how-do-i-stop-nodemon


$ ps -ef | grep node $ sudo kill -9 <PID>

http://jpsierens.com/tutorial-livereload-nodemon-gulp/

Restful API & CURD

https://medium.com/quick-code/node-js-restful-api-with-dynamodb-local-7e342a934a24

https://www.codementor.io/olatundegaruba/nodejs-restful-apis-in-10-minutes-q0sgsfhbd

https://hackernoon.com/full-stack-web-application-using-react-node-js-express-and-webpack-97dbd5b9d708

https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2

https://zellwk.com/blog/crud-express-mongodb/

shell


#!/bin/sh # echo "^-v-^ JSON DB is running in development env!" && npm run db echo "^-v-^ JSON DB is running in development env!" && nodemon -w ./server.js localhost 8888 # chmod +x db.sh
# sudo ./db.sh
# nodemon -w ./server.js localhost 8888 # /bin/sh db.sh # ps -ef | grep node
# sudo kill -9 <PID>

Linux & bash & shell

ps

https://www.binarytides.com/linux-ps-command/

PID & PPID

https://www.lifewire.com/uses-of-linux-ps-command-4058715

PPID & PID

https://www.binarytides.com/linux-ps-command/

https://www.computerhope.com/unix/ups.htm

https://www.pslinux.online/

https://www.digitalocean.com/community/tutorials/how-to-use-ps-kill-and-nice-to-manage-processes-in-linux

https://unix.stackexchange.com/questions/82724/ps-switches-to-display-pid-ppid-pgid-and-sid-collectively

refs



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


Linux bash shell All In One的更多相关文章

  1. linux BASH shell设置字体与背景颜色

    linux BASH shell下设置字体及背景颜色的方法. BASH shell下设置字体及背景颜色  echo -e "\e[31mtest\e[41m"  \e[30m 将字 ...

  2. 【Linux】linux bash shell之变量替换::=句法、=句法、:-句法、-句法、=?句法、?句法、:+句法、+句法

    linux bash shell之变量替换::=句法.=句法.:-句法.-句法.=?句法.?句法.:+句法.+句法   linux bash shell之变量替换::=句法.=句法.:-句法.-句法. ...

  3. Linux Bash Shell常用快捷键

    Linux Bash Shell常用快捷键 table { margin: auto } 快捷键 功能 tab 补全 ctrl + a 光标回到命令行首 ctrl + e 光标回到命令行尾 ctrl ...

  4. linux bash shell & lsof & grep & ps

    linux bash shell & lsof & grep & ps lsof list all open files # lsof & grep $ lsof -P ...

  5. Linux Bash Shell 快速入门

    BASH 的基本语法 最简单的例子 —— Hello World! 关于输入.输出和错误输出 BASH 中对变量的规定(与 C 语言的异同) BASH 中的基本流程控制语法 函数的使用 2.1     ...

  6. linux bash shell 流程控制(if/else )

    本文转自:http://blog.csdn.net/flowingflying/article/details/5069646 本文也即<Learning the bash Shell>3 ...

  7. (转)linux bash shell 入门教程

    Shell Script(bash)简介 众所皆知地,UNIX上以小工具著名,利用许多简单的小工具,来完成原本需要大量软体开发的工作,这一点特色,使得UNIX成为许多人心目中理想的系统平台. 在众多的 ...

  8. Linux Bash Shell入门教程

    Linux 系统根据 "#!" 及该字串后面的信息确定该文件的类型,关于这一问题同学们回去以后可以通过 "man magic"命令 及 /usr/share/m ...

  9. Linux - Bash shell的功能;内建命令type

    命令编修能力 (history): bash 的功能里头,相当棒的一个就是『他能记忆使用过的命令!』 这功能真的相当的棒!因为我只要在命令列按『上下键』就可以找到前/后一个输入的命令!而在很多 dis ...

随机推荐

  1. Connections could not be acquired from the underlying database!

    Connections could not be acquired from the underlying database! 报错截图: 报错内容: Exception in thread &quo ...

  2. 宝塔Linux命令

    安装宝塔 Centos安装脚本 5.7:yum install -y wget && wget -O install.sh http://download.bt.cn/install/ ...

  3. 一文打尽 Linux/Windows端口复用实战

    出品|MS08067实验室(www.ms08067.com) 本文作者:Spark(Ms08067内网安全小组成员) 定义:端口复用是指不同的应用程序使用相同端口进行通讯. 场景:内网渗透中,搭建隧道 ...

  4. autocommit 隔离级别 next lock gap lock 事务隔离级别和锁

    autocommit 隔离级别 https://www.ibm.com/developerworks/cn/opensource/os-mysql-transaction-isolation-leve ...

  5. C++学习之STL(二)String

    1.assign assign方法可以理解为先将原字符串清空,然后赋予新的值作替换. 返回类型为 string类型的引用.其常用的重载也有下列几种: a. string& assign ( c ...

  6. OAuth2.0与前端无感知token刷新实现

    前言 OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛的应用.Facebook.Twitter和Google等各种在线服务都提供了基于OAuth规范的认证机制. ...

  7. hbuilder使用技巧总结

    HBuilder是DCloud(数字天堂)推出的一款支持HTML5的Web开发IDE.HBuilder的编写用到了Java.C.Web和Ruby.HBuilder本身主体是由Java编写,它基于Ecl ...

  8. Linux下部署tp5项目如何隐藏URL中index.php

    找到nginx配置文件,加入以下代码: location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?s=/$1 last; ...

  9. TCP IP SOCKET 笔记

    网络由下往上分为 物理层.数据链路层.网络层.传输层.会话层.表示层和应用层. 通过初步的了解,我知道IP协议对应于网络层,TCP协议对应于传输层,而HTTP协议对应于应用层, 三者从本质上来说没有可 ...

  10. 封装验证blue事件插件

    (function ($) { $.fn.checkForm = function (options) { var root = this; //将当前应用对象存入root var isok = fa ...