差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:node:collection [2021-07-21 05:07] goldentianyait:node:collection [2023-04-14 14:59] (当前版本) – [小知识点] goldentianya
行 31: 行 31:
 pm2 reloadLogs:重载所有日志。 pm2 startup:产生 init 脚本,保持进程活着。\\ pm2 reloadLogs:重载所有日志。 pm2 startup:产生 init 脚本,保持进程活着。\\
  
 +执行命令<color #ff7f27>''%%pm2 save%%''</color>保存现有列表数据,开机后会自动加载已保存的应用列表进行启动。
 +执行命令<color #ff7f27>''%%pm2 startup%%''</color>进行设置开机启动
 +
 +===== 小知识点 =====
 +
 +查看Node安装路径:<color #ff7f27>''%%dpkg-query -L nodejs%%''</color>
 +
 +随机产生一个加密数据:
 +<code bash>
 +$ node
 +> reqire('crypto').randomBytes(64).toString('hex')
 +</code>
 ===== 其它功能 ===== ===== 其它功能 =====
 +
 +[[http://localhost:3000/#/科技/coding/nodejs/schedule|定时任务]]
 +
 +[[https://segmentfault.com/a/1190000039110450|创建命令行 CLI]] / [[https://blog.csdn.net/qq_26733915/article/details/80461257|Inquirer 使用]]
 +
 +[[https://cloud.tencent.com/developer/article/1472387|Nginx 反向代理多域名]]
  
  
it/node/collection.1626844027.txt.gz · 最后更改: 2021-07-21 05:07 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0