gpt4 book ai didi

ubuntu-16.04 - 如何解决内存中 PM2 已过时

转载 作者:行者123 更新时间:2023-12-03 14:49:30 36 4
gpt4 key购买 nike

亚马逊 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
  • 关于ubuntu-16.04 - 如何解决内存中 PM2 已过时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51860234/

    36 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com