# test-pm2-port **Repository Path**: wyljp/test-pm2-port ## Basic Information - **Project Name**: test-pm2-port - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-06 - **Last Updated**: 2025-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README pm2 启动项目使用nvmrc中的配置 nvm 切换node版本后 注意: 1. nvm install vXX,如果已经安装过版本会自动切换到指定版本,nvm切换node版本后,会找不到全局安装的包 2. npx 运行时pm2 时,如果环境中没有pm2会临时下载,或去别的环境中找 3. 指定版本,需要在启动时配置 --interpreter=$NODE_PATH,进入pm2 cluster模式 ## 项目结构 ``` . ├── README.md ├── node_modules │   ├── @pm2 │   └── @tootallnate ├── package-lock.json ├── package.json ├── service1 │   ├── index.js │   └── start.sh └── service2 ├── index.js └── start.sh 6 directories, 7 files ```