Git Product home page Git Product logo

Comments (6)

includeMaple avatar includeMaple commented on May 26, 2024

之前看到过类似的问题,忘记是用什么解决了,昨天弄了一晚上部署好了,罗列下我这边出现过的问题:

  1. 数据库的操作系统,推荐macos或者linux(windows redis版本不行,wsl mongodb版本不行)
  2. node版本:使用了8.17.0,版本实在太老了无力吐槽,nvm每次打开终端会重置到default,别忘了切换终端的时候把node版本弄回来(之前弄错了几次)
  3. pm2版本需要跟着node走,没找到对应列表,参考https://stackoverflow.com/questions/61587933/pm2-command-error-syntaxerror-unexpected-token-in-linux-environment,最终使用了3.5.0版本
  4. 因为node频繁切换pm2出现识别错node,pm2 log查看到识别错node后需要重新识别,pm2 reload

最终:linux用最新mongodb和redis,pm2+nginx

from easy-mock.

horseson2018 avatar horseson2018 commented on May 26, 2024

mongodb的版本也需要注意一下,最好用4.x的,我用4.4.16本地成功跑起来了

from easy-mock.

13078417792 avatar 13078417792 commented on May 26, 2024

用docker部署吧,不用担心环境问题

from easy-mock.

13078417792 avatar 13078417792 commented on May 26, 2024

我现在部署服务版本

  • node v16.10.0
  • redis v5.0.7
  • mongodb v4.0
  • pm2 v5.2.0

from easy-mock.

alinGmail avatar alinGmail commented on May 26, 2024

可以试试这个 https://github.com/alinGmail/LiveMock 安装简单很多,自带数据库,不需要安装其他东西,还有桌面版本。

from easy-mock.

bmphjhu906 avatar bmphjhu906 commented on May 26, 2024

高个毛、docker一键启动

from easy-mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.