sách gpt4 ai đã đi

Sự cố Windows khi sử dụng pm2 triển khai

In lại 作者:行者123 更新时间:2023-12-03 21:36:28 34 4
mua khóa gpt4 Nike

我已经阅读了关于如何使用 pm2 的几个问题和想法。在 Windows 机器下,不管你信不信,我以前的机器运行得很好......然后我不得不重新格式化它并完全忘记了我以前做过的事情:(

我已经安装了 pm2之后 npm并使用命令:npm install pm2@latest -g
为了部署和在 Windows 命令行( cmd )下,我这样做:

  • pm2 deploy production

  • 但我总是得到:
    --> Deploying to production environment
    --> on host 10.200.73.136
    Deploy failed
    Deploy failed

    如果我使用 git bash 运行,我会收到奇怪的 git 错误:
    balex@DESKTOP-3LKNA7U /d/Gavekortet/gogift-mainsite (master)
    $ pm2 deploy production
    --> Deploying to production environment
    --> on host 10.200.73.136
    0 [main] sh 16020 C:\Program Files\Git\usr\bin\sh.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
    660 [main] sh 16020 cygwin_exception::open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
    0 [main] sh 13588 fork: child -1 - forked process 16020 died unexpectedly, retry 0, exit code 0x100, errno 11
    sh: fork: retry: No child processes
    1007561 [main] sh 8808 C:\Program Files\Git\usr\bin\sh.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
    1008780 [main] sh 8808 cygwin_exception::open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
    2266018 [main] sh 13588 fork: child -1 - forked process 8808 died unexpectedly, retry 0, exit code 0x100, errno 11
    sh: fork: retry: No child processes
    4274490 [main] sh 14924 C:\Program Files\Git\usr\bin\sh.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
    4275199 [main] sh 14924 cygwin_exception::open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
    5799995 [main] sh 13588 fork: child -1 - forked process 14924 died unexpectedly, retry 0, exit code 0x100, errno 11
    sh: fork: retry: No child processes
    9804559 [main] sh 6320 C:\Program Files\Git\usr\bin\sh.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
    9804986 [main] sh 6320 cygwin_exception::open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
    11142795 [main] sh 13588 fork: child -1 - forked process 6320 died unexpectedly, retry 0, exit code 0x100, errno 11
    sh: fork: retry: No child processes

    知道我错过了什么(我之前做过但不记得到底是什么):(

    附言在我的 Mac 机器上执行相同的步骤,完美运行

    1 Câu trả lời

    我今天遇到了同样的问题。确保您拥有最新版本的 pm2(在撰写本文时为 2.4.0)和 Git Bash。

    关于deployment - 使用 pm2 deploy 时的 Windows 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35369113/

    34 4 0
    行者123
    Hồ sơ cá nhân

    Tôi là một lập trình viên xuất sắc, rất giỏi!

    Nhận phiếu giảm giá Didi Taxi miễn phí
    Mã giảm giá Didi Taxi
    Giấy chứng nhận ICP Bắc Kinh số 000000
    Hợp tác quảng cáo: 1813099741@qq.com 6ren.com