avatar🐀
霂枯木霂枯木的小站

To witness the sunrise and the sea of blossoms.

行可兼知,而知不可兼行

PM2的基本使用

前提安装Nodejs和npm ​

安装 Node.js 和 npm

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt update && sudo apt-get install -y nodejs

安装PM2 ​

安装PM2

sudo apt update && sudo npm install -g pm2

使用pm2 ​

pm2的使用

NODE_ENV=prod pm2 start npm --name "webapp" -- run start
pm2 save
pm2 startup
Nginx代理加速图片
Android项目设置镜像源
由 Valaxy v1.2.0 驱动|主题-Yunv1.2.0