bigcoon
V2EX  ›  Node.js

有人用过 pm2 么,pm2 重启进程后,浏览器访问一直是请求等待中。。

  •  
  •   bigcoon · Sep 3, 2014 · 5244 views
    This topic created in 4295 days ago, the information mentioned may be changed or developed.
    我故意写了个错误,第一次请求有效,日志里面错误也显示出来了,pm2 list看到进程也重新启动了,,但是用浏览器请求的时候一直在请求加载中,

    有用过pm2的指点一下哈
    6 replies    2015-12-13 00:10:25 +08:00
    bigcoon
        1
    bigcoon  
    OP
       Sep 3, 2014
    擦,没人用过么,,本地是好的啊,就是线上不行,线上是CentOS 6.5
    bigcoon
        2
    bigcoon  
    OP
       Sep 3, 2014
    google baidu 了好几遍没有和我一样的情况。。
    Sokos
        3
    Sokos  
       Sep 3, 2014
    貌似最新PM2有这个问题,昨晚有个新部署节点(CentOS 6.5,64位)用了最新版本PM2。pm2 restart id 以后就hang住了,pm2 kill以后再pm2 start才好。
    bigcoon
        4
    bigcoon  
    OP
       Sep 4, 2014
    @Sokos 你问题解决了么?之前用的什么版本
    bigcoon
        5
    bigcoon  
    OP
       Sep 4, 2014
    @Sokos 我降到0.9.5好了。。擦,新玩意问题还是比较多
    cychai
        6
    cychai  
       Dec 13, 2015
    可能原因有两个:同一服务器起多个 pm2 进程; pm2 exec_mode 使用的是 cluster 模式,换成 fork
    可参见 http://blog.csdn.net/spring21st/article/details/50279437 这篇文章介绍
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2783 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:59 · PVG 19:59 · LAX 04:59 · JFK 07:59
    ♥ Do have faith in what you're doing.