Blog using seven cattle cloud pictures bed

1. Description

My personal blog, the server is 1M little water, and I use the markdown editor, others are very good, but the picture upload is really painful: first locally written markdown text posted up, then a picture one to the server (giant slow), then one by one reference to the article inside (the eyes are looking to spend), written after the open blog loading speed moving.

Then I just put the article are sent to the blog garden, because it can be dragged directly upload pictures, written after the article copied into my personal blog to go, equivalent to the blog picture park as a bed - but not a few day, blog Park anti-hotlinking, GG.

After that, you can see online that with seven cattle cloud servers do pictures bed, per month free flow 10G ~ decisively engage them.

This is not soft, but if you want to use, then point the link to register, I counted promotion, as a reward parents who would support me now (in fact, also give me some traffic).

Seven cattle cloud registration

2. Requirements

My needs are:

When local writing, the picture directly to the image server, copy the image URL to a local markdown document - just to spread blog text to publish.

When visiting my blog, my blog servers only need to load text, pictures responsible for the content of image server load.

3. Step

3.1 create storage space

Cattle cloud account to register seven point I registered , then register to conduct real-name authentication will take some time.

Log in, click on the Home object store , a new open storage space.

Fill out the name of a custom storage space, optional area, choose public space, and finally click Create to create success.

3.2 Binding domain

Space is created, the next step is to give space binding domain, pay attention: the need has the record of the domain name .

This step is the most difficult to understand, talk about ideas:

After seven cattle cloud created storage space, seven cattle cloud will create a "CNAME domain name" for this space, but the domain name can not be directly used, need to use your own domain name is mapped to the domain name in the CNAME can be used.

以我的空间为例:我已经有了一个备案过的一级域名:vpluszhang.cn,因此我使用二级域名img.vpluszhang.cn作为我的图片存储空间域名。由于我的域名是在阿里云申请的,因此我到阿里云的域名管理界面,把img.vpluszhang.cn绑定到已经申请的空间的CNAME上,就这样完成了映射。

访问流程是 img.vpluszhang.cn ---> CNAME --->实际存储空间。

具体操作:

以我之前创建好的空间为例:

点击绑定域名

设置加速域名,因为之前img.vpluszhang.cn已经用过了,这里用img2.vpluszhang.cn作为示例。

其他参数一般不需要动,点击创建。

创建后系统需要处理一段时间,处理完成后,状态变为等待CNAME,鼠标悬浮到CNAME上,会显示存储空间的CNAME,如图所示

复制CNAME,到你申请域名的地方配置CNAME映射,我的域名是在阿里云申请的,因此我在阿里云里面设置,记录类型填写CNAME,记录值填写CNAME值,保存即可:

保存完后需要过一段时间才能成功,你可以在七牛云的界面上监控状态。

3.3 使用mpic上传图片

mpic是很好用的七牛云图片上传工具,支持拖动图片上传,上传成功后返回markdown格式的图片路径。

百度搜索mpic,进入官网下载解压。

进入七牛云官网,点击右上角用户头像获取AK和SK。

打开后设置账号,分别将SK和AK填进去,其他设置见图,设置完后保存:

拖动图片进入mpic中,点击复制按钮可以把markdown格式的图片路径复制出来。

Guess you like

Origin www.cnblogs.com/qianbixin/p/11006134.html