设置服务器

配置文件: /etc/sysconfig/iptables.save
//修改后重启
service iptables restart
  • 查看监听的端口: netstat -tln
  • centos7使用firewalld

打包

//将当前路径文件和文件夹打包到xx.gz

tar czf  xx.gz  app.js public/ 

//解压文件到xx文件夹
tar xf xx.gz -C xx

传送打包文件

scp xx.gz  name@ip:

使用pm2管理

pm2 start --name my_app main.js

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-11-20
  • 2021-10-06
  • 2021-12-29
猜你喜欢
  • 2021-12-18
  • 2021-04-12
  • 2022-01-24
  • 2022-03-04
  • 2021-07-19
  • 2022-03-06
  • 2022-12-23
相关资源
相似解决方案