root@VM-0-6-ubuntu:/data/chatgpt-web# bash -c "$(wget -q -O- https://raw.githubusercontent.com/dqzboy/ChatGPT/main/ChatGPT-Web-Admin/install/ChatGPT-Web-Admin_U.sh)"
██████╗██╗ ██╗ █████╗ ████████╗ ██████╗ ██████╗ ████████╗ ██╗ ██╗███████╗██████╗
██╔════╝██║ ██║██╔══██╗╚══██╔══╝██╔════╝ ██╔══██╗╚══██╔══╝ ██║ ██║██╔════╝██╔══██╗
██║ ███████║███████║ ██║ ██║ ███╗██████╔╝ ██║ ██║ █╗ ██║█████╗ ██████╔╝
██║ ██╔══██║██╔══██║ ██║ ██║ ██║██╔═══╝ ██║ ██║███╗██║██╔══╝ ██╔══██╗
╚██████╗██║ ██║██║ ██║ ██║ ╚██████╔╝██║ ██║ ╚███╔███╔╝███████╗██████╔╝
╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚═════╝
Checking server memory resources. Please wait.
Memory resources are sufficient. Please continue.
[/] >>>>> Done
------------------------------------< Firewall detection. >-------------------------------------
Firewall is already disabled.
[\] >>>>> Done
------------------------------------< 项目克隆 >-------------------------------------
请选择要克隆的仓库:
1. Chanzhaoyu/chatgpt-web[不带用户中心]
2. Kerwin1202/chatgpt-web[带用户中心]
2
请选择您的服务器网络环境:
1. 国外
2. 国内
1Cloning into 'chatgpt-web'...
remote: Enumerating objects: 4869, done.
remote: Total 4869 (delta 0), reused 0 (delta 0), pack-reused 4869
Receiving objects: 100% (4869/4869), 7.34 MiB | 17.89 MiB/s, done.
Resolving deltas: 100% (2491/2491), done.
[-] >>>>> Done
------------------------------------< Nginx detection and installation. >-------------------------------------
Nginx is already installed.
Nginx is already running.
[\] >>>>> Done
------------------------------------< Node.js detection and installation. >-------------------------------------
Node.js 已安装...
pnpm 已安装...
[-] >>>>> Done
------------------------------------< Check MongoDB and install it. >-------------------------------------
MongoDB installed.
MongoDB 启动成功
是否创建 MongoDB 用户?[y/n] y
请输入 MongoDB 用户名:chatgpt
请输入 MongoDB 密码:
MongoDB 用户已创建。
[-] >>>>> Done
------------------------------------< 构建之前请先指定Nginx根路径! >-------------------------------------
WEB存储绝对路径[上次记录:/www/wwwroot/chatgpt 回车用上次记录]:
chatGPT-WEB存储路径:/www/wwwroot/chatgpt
------------------------------------< 构建之前请先命名你的网站标题! >-------------------------------------
网站标题[上次记录:kongjiang的GPT3聊天室 回车用上次记录]:
网站标题命名为:kongjiang的GPT3聊天室
------------------------------------< 开始进行构建.构建快慢取决于你的环境 >-------------------------------------
-----------------------------------<前端构建>-----------------------------------
《前端构建中,请稍等...》
(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 1m 21s
-------------------------------------< END >-------------------------------------
------------------------------------<后端构建>-----------------------------------
《后端构建中,请稍等...》
CJS ⚡️ Build success in 612ms
-------------------------------------< END >-------------------------------------
是否修改Nginx配置[y/n](通过本脚本部署的Nginx可选择 y):n
You chose no.
-----------------------------------<后端部署>-----------------------------------
Service Copy Success
后端程序未运行,启动中...
WEB Copy Success
chatgpt-web后端服务已成功启动
-----------------------------------<前端部署>-----------------------------------
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful
--------------------------------------------------------------------------------
访问网站:http://your_vps_ip:80
-----------------------------------<部署完成>-----------------------------------
root@VM-0-6-ubuntu:/data/chatgpt-web#