linux部署node.js——linux常用命令

来源:互联网 发布:算法竞赛 java 编辑:程序博客网 时间:2024/05/21 18:16

centos安装node.js

http://www.cnblogs.com/charles-dxb/p/5170209.html

 

更改account_server.bat文件

源文件:

set MAIN_JS=%~dp0\account_server\app.js

set CONFIG=%~dp0\conf\conf.js

call node.exe %MAIN_JS% %CONFIG%

pause

 

DOS批处理中%~dp0表示什么意思

http://www.jianshu.com/p/5a1a882ead95

 

 

更改为linux 下的sh文件

 

 

Linux变量表示

http://blog.chinaunix.net/uid-25124785-id-77098.html

 

Linux ——Shell编程之变量赋值和引用

http://www.cnblogs.com/try-better-tomorrow/p/5030627.html

 

 

Linux文件权限查看及修改命令

http://www.linuxidc.com/Linux/2014-10/108114.htm

 

shell文件中获取文件路径http://blog.csdn.net/lgd_2008/article/details/45913957

Linux shell脚本中字符串连接的方法http://blog.csdn.net/u011923747/article/details/20448269

 

 

node.js 如何完美的从命令行接收参数所传递进来的值

https://segmentfault.com/q/1010000000367285

 

 

shell中调用shell文件

shell中启动node项目

 

MAIN_JS="account_server/app.js"

CONFIG="conf/conf.js"

node account_server/app.js

 

 

更改网卡

https://jingyan.baidu.com/article/c45ad29c25b128051753e2bf.html

 

关闭防火墙

 

/bin/bash^M: bad interpreter: 没有那个文件或目录

http://blog.csdn.net/yongan1006/article/details/8142527

 

 

如何关闭占用端口

http://blog.csdn.net/qq_35624642/article/details/53992127

 

 

ctrl+c 中断指令,也就是发给程序一个 Interrupt 信号,一般程序默认处理该信号等同于Terminate信号,即会使程序退出。有些程序会截获SIG_INT信号,用自定义的信号处理方法替代默认的退出操作,所以那些在运行时按ctrl+c停不掉的程序就是这么干的。ctrl+z 是暂停运行执行,发给程序的是 Stop 信号,当在程序运行时输入ctrl+zbash会将当前程序挂起,并放入后台任务队列(Stop状态,进程不继续执行)。然后用户可以输入 bg 使该程序在后台继续执行,或者fg将该程序重新拉回前台执行(即恢复到ctrl+z之前的状态)

 

linux 命令全称简写http://blog.csdn.net/chinayuan/article/details/51291666

 

&符号作用(打开多个进程)

http://blog.sina.com.cn/s/blog_963453200102uya7.html

 

nohup

http://www.cnblogs.com/allenblogs/archive/2011/05/19/2051136.html

 

nohup和&区别

http://www.cnblogs.com/MYSQLZOUQI/p/5283761.html

 

输出/入流 重定向

http://blog.chinaunix.net/uid-25909722-id-2912890.html

 

forever

http://tcrct.iteye.com/blog/2043644

 

 

 

 

linux 搭建node项目

https://segmentfault.com/a/1190000007474272

 

linux临时环境变量

http://blog.csdn.net/bugaosuonia/article/details/16806921

 

通过shell脚本获取日期,并赋给变量

http://www.cnblogs.com/OliverQin/p/5865656.html

http://www.cnblogs.com/mfryf/archive/2012/03/23/2413362.html

区别(` 与 $())

https://my.oschina.net/flylxl/blog/510960

 

Linux shell中单引号,双引号及不加引号的简单区别

http://www.cnblogs.com/augustyang/p/6045210.html

 


Linux shell判断文件和文件夹是否存在

http://www.cnblogs.com/platero/p/4021561.html