In this document, I depoly the system on Centos 7. If you are using any other OS, only a slight adjustment is needed.
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash
sudo yum install nodejs
create xxx/.env
PROJECT=xxx
AMQP_HOST=127.0.0.1
AMQP_PORT=5672
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USERNAME=root
MYSQL_PASSWORD=
MYSQL_DATABASE=xxx
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=
API_PORT=9000
ADMIN_PORT=9001
CHECK_IP=0
NODE_ENV=development
npm i
npm run build
CREATE DATABASE xxx DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
node dist/tools/initdb.js
pm2 start all.yml