当前位置:网站首页>阿里云对象存储oss+picgo+typora实现构建图床
阿里云对象存储oss+picgo+typora实现构建图床
2022-06-23 03:58:00 【小龙Hibernation】
将图片上传到对象存储,好处是方便!!!
1.首先申请一个对象存储OSS,登录阿里云->进入工作台->对象存储OSS->创建Bucket

基本上都默认选项只需要名称和读写权限修改成公共读即可

2.条件允许建议购买资源包(对象存储的下载和访问会消耗流量费用,建议购买一个资源包,半年也就5块钱不到)
我好像没买

整合到PicGo
3.在typroa安装PicGo-Core插件
相信各位都有typroa那我就不写下载教程了
下载好后依次点击:文件->偏好设置->图像,按照如下配置后点击下载或更新。
设置成如下样子:

4.设置配置文件
点击打开配置文件:按照如下配置
{
"picBed": {
"uploader": "aliyun",
"aliyun": {
"accessKeyId": "", //ram的accessKey
"accessKeySecret": "", //ram的accessKey
"bucket": "", // Bucket域名内容是.oss-cn-hangzhou.aliyuncs.com前面部分
"area": "", // 地域节点是.aliyuncs.com前面部分
"path": "img/", // 存储路径
"customUrl": "", // Bucket域名,注意要加 http://或者 https://
"options": "" // 针对图片的一些后缀处理参数 PicGo 2.2.0+ PicGo-Core 1.4.0+
}
},
"picgoPlugins": {}
}
只需设置accessKeyId,accessKeySecret,bucket,area四个属性,其他不管
accessKeyId,accessKeySecret :

会出现创建新的AccessKey:可以直接点击继续使用就是用当前用户进行创建AccessKey。创建好后记得立马将显示的accessKeyId和accessKeySecret记录下来,后续没有地方可以查看,若是遗忘只能重新创建。
bucket,area :

只填看不见的,其他后缀一律不用写上去
5.验证

结果:

6.使用方法
完成后,就可以直接在typora中复制图片或者使用快捷键ctrl+shift+i进行图片插入。typora会自动将图片上传到对象存储并将路径改为对象存储中的路径。

非常的方便
边栏推荐
- 高等数学(第七版)同济大学 习题1-9 个人解答
- Three implementation methods: left fixed and right adaptive (Flex, float + BFC, float margin left)
- 知识点滴 - 折叠锻打和大马士革钢
- MDM数据清洗功能开发说明
- 英集芯推出4串锂电池100W移动电源升降压方案SoC芯片IP5389
- 软件设计开发笔记2:基于QT设计串口调试工具
- Introduction to JDBC (I) DML operation
- STC 32位8051单片机开发实例教程 一 开发环境搭建
- Xa mode explanation and code implementation of four Seata modes
- Go language - custom error
猜你喜欢

Win11 app store keeps turning around solution

STC 32-bit 8051 MCU development example tutorial I development environment construction

Memory model of JVM principle

软件设计开发笔记2:基于QT设计串口调试工具

Current situation and development of containerization technology under the cloud native trend

stm32时钟树错误配置导致 开机进入硬中断

MCS:连续随机变量——LogNormal分布

Array The from method creates an undefined array of length n

App automated test appium advanced

How much disk IO will actually occur for a byte of the read file?
随机推荐
电脑开机显示器黑屏是什么原因,电脑显示器黑屏怎么办
MCS: continuous random variable - student's t distribution
云原生架构(04)-CNCF
How much disk IO will actually occur for a byte of the read file?
sprintf 格式代码使用不规范在不同平台下的表现
Mysql入门学习(二)之子查询+关联
Introduction to MySQL (II) sub query + Association
Introduction to MySQL (I) grammar
After the idea code is developed, the code is submitted. If the branch is found to be incorrect after submission, how can I withdraw it
Mobile phone wireless charging dual coil 15W scheme SOC IC ip6809
51万奖池邀你参战——第二届阿里云ECS CloudBuild开发者大赛来袭
高等数学(第七版)同济大学 习题1-8 个人解答
英集芯推出4串锂电池100W移动电源升降压方案SoC芯片IP5389
Go grouping & sorting
STM32cube 串口使用DMA+IDLE接收不定长数据
View of MySQL introductory learning (III)
CF [1700d] D. River locks (DP, bisection, Mathematics)
MySQL Foundation
Xa mode explanation and code implementation of four Seata modes
STM32cube CMSIS_ V2 FreeRTOS queue usage