Ali cloud using OSS + PicGo build Markdown map bed

step:

  1. Purchase 阿里云OSS, about 9 yuan 40G / year
  2. Creating OSS dedicated 用户specifically for accessing OSS, attention to the preservation AccessKeyandAccessKeySecret
  3. Download Ali official OSS Browsermanagement client, and configure the connection information
  4. Create a Bucket, pay attention to the permissions set公共读
  5. In the GitHubdownload PicGoclient installation and configuration

1, buy Ali cloud OSS

price:

40G 9 yuan / year

100G 99 yuan / year

500G 486 yuan / year

1T 999 yuan / year

Ali goes to the official website to find the entrance to OSS:

2. Create a dedicated user (optional)

After entering the console, mouse suspended user avatar in the top right corner, select 访问控制:

Then on the left: Personnel Management -> Users: New Users

Enter 登录名称and 显示名称click on 确认the button, requiring phone verification code.

Once created, click Back, then return to the user list.

Click into the user just created, select 权限管理, click 添加权限, search AliyunOSSFullAccess, add, to confirm.

Select 认证管理, click on the bottom 创建新的AccessKey, it will generate AccessKeyIDand AccessKeySecret, AccessKeySecretcan not be retrieved, so be sure to keep it.

3. Create Bucket

OSS into the console: https://oss.console.aliyun.com/overview

Click the plus sign to create Bucket:

1569252644794

note:

  1. Bucket name to be globally unique
  2. Regional best choice near you
  3. Permissions select the public to read, others like this picture to get access

Upload link format is: HTTPS: // [Bucket Name] [area] .aliyuncs.com / directory and file name:

https://my-markdown-pics.oss-cn-shenzhen.aliyuncs.com/img/20190923232439.png

4、绑定域名(可选)

可以选择自己的域名,这样子以后Bucket名称或者地区变了,图片的地址就不需要边:

然后就可以用新地址访问图片:

http://md.demojie.com/img/20190923232439.png

5、安装OSS Browser客户端

OSS Browser是阿里云官方的客户端工具,可以使用拥有OSS权限的用户登录,从而免去登录官网控制台的麻烦。

  • OSS Browser Windows64下载地址:

http://gosspublic.alicdn.com/oss-browser/1.9.4/oss-browser-win32-x64.zip

  • OSS常用工具汇总:

https://help.aliyun.com/document_detail/44075.html

安装完成之后,输入AccessKeyAccessKeySecret登录即可,其他都是可选项:

可以新建Bucket、上传文件、上传文件夹等等:

6、安装PicGo

PicGo是一个支持多种图床的客户端图片上传工具,可以实现快速上传图片到指定图床,并将链接保存到剪贴板。

  • GitHub地址:

https://github.com/Molunerfinn/PicGo

  • Release地址:

https://github.com/Molunerfinn/PicGo/releases

Windows的下载picgo-setup-2.1.2.exe下载安装即可

设置参考图片即可:

设定自定义域名后,生成的链接会自动用自定义的域名替换。

PicGo设置->修改上传快捷键:

当使用截图工具截图后,会保存到剪贴板,这时按下快捷键,PicGo就会自动上传图片,然后将指定格式的链接地址放到剪贴板,直接粘贴到Markdown文档即可。

点击右上角的➕,会变成浮窗,将图片直接拖到浮窗就能上传:

Guess you like

Origin www.cnblogs.com/demojie/p/11600991.html