ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# **阿里云oss设置** ### **1、阿里云首先开通oss服务** ![](https://img.kancloud.cn/f5/47/f54717e197de5feed022f6a1fea2aaf3_1301x577.png =800x) ### **2、立即开通** ![](https://img.kancloud.cn/4a/b5/4ab573fd4574c9935635b8c2dcac7975_1309x586.png =800x) ### **3、创建Bucket** ![](https://img.kancloud.cn/e1/b3/e1b335c877b8c91134e599331e79443d_1315x591.png =800x) * **单击左侧存储空间列表中的新增按钮+,或者单击页面右上方的新建 Bucket按钮,打开新建 Bucket对话框** * **选择公共可读写(注:保证bucket为公告可读取的)** ![](https://img.kancloud.cn/64/2e/642e1a0bfe98e77389c539cd6ca64497_984x559.png =800x) * **设置好Bucket名称,其他默认** ![](https://img.kancloud.cn/5e/af/5eafc52ab9172eb30985621e4333e78f_699x524.png =800x) ### **4、复制AccessKeyId,accessKeySecret,bucket,endpoint到后台** ![](https://img.kancloud.cn/7a/dc/7adcf23a249c63b6d554a1ad13ad85b0_1821x1078.png =800x) ### **5、将域名加入到小程序后台服务器域名downloadfile请求域名中(加不是替换!!!)** ![](https://img.kancloud.cn/84/9f/849f83f2320e1eaffb99b896b96d977d_1920x1080.png =800x) ![](https://img.kancloud.cn/d0/d6/d0d601ceb2c6702c5eaef2702da94127_1513x714.png =800x) 注:bucke的命名就是后台的bucket ![](https://box.kancloud.cn/cb59748537b66b14981a633b1ad91fab_845x53.png) ***** 如何查看accessKeyId和accessKeySecret ![](https://box.kancloud.cn/023b9389df83f2887ae6be28a0ef90a5_765x250.png) 进入控制台,点击右上角 ![](https://box.kancloud.cn/5e98d782e94859b9d55496911458e965_353x421.png) 找到这两个配置信息 ![](https://box.kancloud.cn/54f0582f852060340545510506f6568f_1372x236.png) <br><br><br>