如何解决In-memory PM2 is out-of-date
How to resolve In-memory PM2 is out-of-date
亚马逊 AWS Ubuntu 服务器
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
问题:PM2 已过期
$ pm2 list
>>>> In-memory PM2 is out-of-date, do:
>>>> $ pm2 update
In memory PM2 version: 2.4.6
Local PM2 version: 3.0.3
尝试过
pm2 update
... 在我重新启动之前一直有效
尝试过
npm remove pm2 -g
which pm2
npm install pm2@latest -g
which pm2
sudo reboot
有什么指点吗?
我遇到了同样的问题,可以通过重新创建启动脚本来解决。请尝试以下步骤:
- 删除当前进程
pm2 delete nameOfProcess
- 卸载当前启动脚本
pm2 unstartup systemd
- 更新pm2
pm2 update
- 启用启动脚本
pm2 startup //copy paste the output
- 再次开始流程
pm2 start nameOfProcess
- 保存当前配置
pm2 save
亚马逊 AWS Ubuntu 服务器
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
问题:PM2 已过期
$ pm2 list
>>>> In-memory PM2 is out-of-date, do:
>>>> $ pm2 update
In memory PM2 version: 2.4.6
Local PM2 version: 3.0.3
尝试过
pm2 update
... 在我重新启动之前一直有效
尝试过
npm remove pm2 -g
which pm2
npm install pm2@latest -g
which pm2
sudo reboot
有什么指点吗?
我遇到了同样的问题,可以通过重新创建启动脚本来解决。请尝试以下步骤:
- 删除当前进程
pm2 delete nameOfProcess
- 卸载当前启动脚本
pm2 unstartup systemd
- 更新pm2
pm2 update
- 启用启动脚本
pm2 startup //copy paste the output
- 再次开始流程
pm2 start nameOfProcess
- 保存当前配置
pm2 save