ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 将源码并上传至宝塔服务器 * 添加站点,创建数据库,指定站点根目录![添加站点](https://huankemao.com/huankemao-cms/upload/1/editor/1612776507132.png "添加站点") * 设置运行目录为/public![设置运行目录](https://huankemao.com/huankemao-cms/upload/1/editor/1612776530299.png "设置运行目录") * 由于Vue前端使用了History模式,需设置伪静态: * Nginx服务器设置为: ~~~ location / { try_files $uri $uri/ /index.html; } ~~~ * Apache服务器设置为: ~~~ <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] </IfModule> ~~~ ![设置伪静态](https://huankemao.com/huankemao-cms/upload/1/editor/1612776539258.png "设置伪静态") * 访问`http://域名/install`![安装](https://huankemao.com/huankemao-cms/upload/1/editor/1612776563831.png "安装") * 成功