缘由 :
本来使用的是 Typora+PicGo+Gitee,但是gitee增加了防盗链,经常发生Typora里图片上传不上去或者图片不显示的问题(真的超级烦人,心态已经崩了,果然“免费的才是最贵的”),所以打算换一个图床。
不选 Github 的原因是 Github 需要经常翻墙,虽然速度虽然不慢,但不流畅,本人本着一切从简的原则,选择了 阿里云图床
-
优点:稳定
-
缺点:花费一点点小钱(6个月4.98元)
![image-20230330210318372](https://img-blog.csdnimg.cn/img_convert/22126c90ddbd7c5974c164a19ea1e85f.png)
不过,我觉得 稳定 这一点就已经胜过一切了。毕竟用了Typora+PicGo+Gitee 的人应该都深有体会。下面介绍详细步骤。
前期准备工作一,下载了 Typora 和Picgo
1.本人 Typora 版本
![image-20230330210542140](https://img-blog.csdnimg.cn/img_convert/3cda60c38e5a31ce40a5c232d6565561.png)
2.本人Picgo 版本
![image-20230330210751279](https://img-blog.csdnimg.cn/img_convert/9ecf0e903aee4bcfe4f3c019bc89b91d.png)
准备工作二,注册阿里云账号
https://www.aliyun.com/product/oss
注册过程就不再叙述了,相信大家既然都已经用上了 Typora ,注册这种小事根本不在话下。
重要,一定要看一下!!!
我们 打开 PicGo 软件,在 图床设置 里,可以找到 阿里云OSS,如图
![image-20230330211710049](https://img-blog.csdnimg.cn/img_convert/e6f09a8b564582919a537428ebc6c7b1.png)
我们的目的就是,购买了阿里云的资源包之后,把图中所圈起来的位置都填上,就可以使用啦。
步骤一:点击控制台
右上角
![image-20230330212045483](https://img-blog.csdnimg.cn/img_convert/53bff72ef7a6dfa6509f055115f871fa.png)
步骤二:选择 对象储存 并开通
左上角
![image-20230330212536278](https://img-blog.csdnimg.cn/img_convert/947f97b083e29b2e3ea080390f6a8318.png)
选择 对象储存 OSS
![image-20230330212725042](https://img-blog.csdnimg.cn/img_convert/8666be50d3ed5eb4062dab2bb809001e.png)
步骤三,点击左侧 概览,点击右侧 创建bucket
![image-20230330215510444](https://img-blog.csdnimg.cn/img_convert/7f6aa819652862db906abc305535c516.png)
步骤四:创建信息
![image-20230330213219450](https://img-blog.csdnimg.cn/img_convert/8af92a52e8e8b021d1a0c9c49afdae4d.png)
名字随便起,但不能有大写字母。
![image-20230330213525833](https://img-blog.csdnimg.cn/img_convert/ba5343a6442db6d082d5780efdeb844b.png)
![image-20230330213602659](https://img-blog.csdnimg.cn/img_convert/61948cf101f29d988e7d5e2d0567900a.png)
步骤五:购买资源包
左侧
![image-20230330214126496](https://img-blog.csdnimg.cn/img_convert/b7a2e8f088e15c21073349209f9c98d1.png)
![image-20230330214209544](https://img-blog.csdnimg.cn/img_convert/7ebb4861223332f9ceed858e96289fd1.png)
点击购买即可。
步骤六,设定 KeyId 和 KeySecret
![image-20230330214451421](https://img-blog.csdnimg.cn/img_convert/4350e3a7d3efde1a3bd2697adb9cc65b.png)
选择继续使用AccessKey,并点击创建accessKey,
![image-20230330214534151](https://img-blog.csdnimg.cn/img_convert/0d176146c1f1e0bd59a18a2bff116820.png)
![image-20230330214641683](https://img-blog.csdnimg.cn/img_convert/f15ffd8bceab6066cbe2be5b2cb502a7.png)
在弹出的界面里,记住你的accessKeyId
和accessKeySecret
![image-20230330214738245](https://img-blog.csdnimg.cn/img_convert/734059ceee5a78e5ab43e765ed1f2dd4.png)
填写到 PicGo 的 KeyId 和 KeySecret 中
![image-20230330215011267](https://img-blog.csdnimg.cn/img_convert/c7eb31e818a27e3af9eb015d8e062991.png)
步骤七:设定 Bucket ,存储区域,存储路径,自定义域名
回到之前的oss对象存贮,点击之前创建的bucket,在点击概览。
![image-20230330220223139](https://img-blog.csdnimg.cn/img_convert/e284ec3931006d980d45b60c9374bcf3.png)
注意:自定义域名,注意要在前面加 http://或者 https://
![image-20230330220407570](https://img-blog.csdnimg.cn/img_convert/e3d1eac780db919581852eac0d4756dd.png)
点击“确定”,并点击“设置为默认图床”!即可大功告成
步骤8:设置 Typora
打开 Typora
![image-20230330221125937](https://img-blog.csdnimg.cn/img_convert/82bba1fd96d5b28a37f861f95a5e81bf.png)
![image-20230330221244403](https://img-blog.csdnimg.cn/img_convert/449ee2adaf36e17633a1c4ab0efdaaa8.png)
点击 验证图片上传选项
![image-20230330221416609](https://img-blog.csdnimg.cn/img_convert/625e1974abb917c7d00ec88761055f61.png)
![image-20230330221621933](https://img-blog.csdnimg.cn/img_convert/354cf48e2503d1744ff3ec1cb097491e.png)
即可大功告成!!!
祝贺你!!!