![image](https://private-user-images.githubusercontent.com/24899308/297244893-7b71ea8f-d7ed-4f56-9786-2f9870d57146.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDY3MzMsIm5iZiI6MTcyMzcwNjQzMywicGF0aCI6Ii8yNDg5OTMwOC8yOTcyNDQ4OTMtN2I3MWVhOGYtZDdlZC00ZjU2LTk3ODYtMmY5ODcwZDU3MTQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA3MjAzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4NTdkNTQ2YjIwNTBiMjdkNDNhMzA2MjU3MDBlNmUyMDczYzAwZjExZjE5N2IzZmQ0OTY5MjVmMzNmNmU1MTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.s233LYfIeTNTPkmuZ8Rg5qQuFnIciOqKATRac7esL-A)
![image](https://private-user-images.githubusercontent.com/24899308/297244992-c1a6a266-2617-4057-8c7f-fd5c4b81990d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDY3MzMsIm5iZiI6MTcyMzcwNjQzMywicGF0aCI6Ii8yNDg5OTMwOC8yOTcyNDQ5OTItYzFhNmEyNjYtMjYxNy00MDU3L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zIyMDllMDJjMTY3YjBlOTA5YzcxOTcwOTg1YzViNjJmODRhZDAzNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DVZ3pgkOKP0xu0jOzAoS2TNo4VNlYNh7d94jm0UsC9s)
![image](https://private-user-images.githubusercontent.com/24899308/297245230-e367d24f-4d55-48e6-8885-bff9bb503923.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDY3MzMsIm5iZiI6MTcyMzcwNjQzMywicGF0aCI6Ii8yNDg5OTMwOC8yOTcyNDUyMzAtZTM2N2QyNGYtNGQ1NS00OGU2LTg4ODUtYmZmOWJiNTAzOTIzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA3MjAzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwZDgzYzQwYmYxNjZmMjk2ZTdjMjBjNTJjMjM4MDJlMGY1YzRkZmMxNmQ5NGVjOWRjYTBkMTUwNzU3MmViZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tc14Z3Btv2tG-BOJsXxsZoakPJ5amUwCcI-UkHeF4GQ)
![image](https://private-user-images.githubusercontent.com/24899308/297245352-a5dda0b3-98e7-4a17-b8b6-8a2df9969d31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDY3MzMsIm5iZiI6MTcyMzcwNjQzMywicGF0aCI6Ii8yNDg5OTMwOC8yOTcyNDUzNTItYTVkZGEwYjMtOThlNy00YTE3LWI4YjYtOGEyZGY5OTY5ZDMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA3MjAzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5NTg0MWFlZjQ4OWJkZTQ5Y2Q4MzUwZGJiOGRhN2UyNTNiMTRkMTRjM2I0NDA1ODM1ZDRkN2YyNjlhNzcwZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JXfPpYrPo8lmWAow6ZQvSV1aIS3yoZYe4t862-KU3mE)
-
安装Node.js环境
- 请根据您的操作系统下载并安装Node.js。
- 可以从Node.js官网下载。
-
安装PM2
- 使用npm安装PM2:
npm install pm2 -g
- PM2是一个带有负载均衡功能的Node应用的进程管理器。
- 使用npm安装PM2:
-
安装PNPM
- 使用npm安装PNPM:
npm install -g pnpm
- PNPM是一个快速、节省磁盘空间的包管理工具。
- 使用npm安装PNPM:
-
配置环境变量
- 复制
.env.example
文件为.env
。 - 根据需要修改
.env
文件中的配置项。
- 复制
-
安装项目依赖
- 运行命令:
pnpm install
(若安装失败可尝试使用国内源) - 这将根据
package.json
文件安装所有必需的依赖。
- 运行命令:
-
启动服务
- 使用命令:
pnpm start
- 这将启动项目,并默认在9520端口监听。
- 使用命令:
-
访问项目
- 在浏览器中访问
http://localhost:9520
,或者如果配置了nginx反向代理,则通过配置的域名访问。
- 在浏览器中访问
- 管理端地址:
/nineai/admin
- 超级管理员账号:
super
- 密码:
nine-super
请确保遵循上述步骤进行配置和启动,以保证系统的正确运行。
![](https://private-user-images.githubusercontent.com/24899308/297234976-d0b4764c-3b71-4e5b-9fb2-3263f5466e9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDY3MzMsIm5iZiI6MTcyMzcwNjQzMywicGF0aCI6Ii8yNDg5OTMwOC8yOTcyMzQ5NzYtZDBiNDc2NGMtM2I3MS00ZTViLTlmYjItMzI2M2Y1NDY2ZTlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA3MjAzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5NTFlZDY4NGMxNzJlOThmNDZlZWM4ZDNiNTU1NTMzNGRmNDU2YzQxNDVjMWNjYWQ4ZDVhN2I4MzI5ZmNkZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.J2inBggVEid390aFETBZP8PzKLlYSrtq0V7PBtDFxIA)