快速运用七牛云对象存储
<div style="color: black; text-align: left; margin-bottom: 10px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">近期</span>,想<span style="color: black;">运用</span>图床,<span style="color: black;">运用</span>了七牛云的对象存储,<span style="color: black;">另一</span>一个很大的<span style="color: black;">原由</span>, 七牛云有免费的空间。 类似的<span style="color: black;">制品</span>有<span style="color: black;">非常多</span>,阿里云、腾讯云,又拍云等,这些都<span style="color: black;">无</span>用过,只是在<span style="color: black;">机构</span>的项目中<span style="color: black;">运用</span>过AWS的S3服务。今天配置了ipic支持七牛云上传文件,记录一下,分享给<span style="color: black;">大众</span>。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">七牛云<span style="color: black;">运用</span>教程</h1>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">注册一个七牛云账号</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/152081805589213e50f9be0~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=6U8OlXQRgP8lk%2FEaXq3dNAWNo4E%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">官网首页</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/1520818055809c4a02f7770~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=pN1X2X2IHT1QgKBLy4ZyijT%2BQqg%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">用户类型</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">填写注册信息</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/152081805587156af0c9bf8~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=K7jfU%2FO1EvBLwxwQd%2FDV8Z49cp8%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">注册信息</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">创建对象存储空间</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">注册完成后,登录进账号,进入到主面板中,点击创建对象存储</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15208180559699240b392cb~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=poaOFTwRJxzdUvKNb3BM0Tnxc08%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">选取</span>对象存储</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击后,进入下面的界面中,按<span style="color: black;">需求</span>填写就<span style="color: black;">能够</span>了,存储空间名<span style="color: black;">叫作</span><span style="color: black;">能够</span>随便填写</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/152081805609130e753ecf8~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=hnbJUl2DE0VETy2rYXZctOUYzqA%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">存储空间信息填写</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">完成创建以后,会跳到如下界面:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15208180559042c8e8f0ed7~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=SOIfAeq7YSWAVaVnIV5Y7HUQLQ8%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">信息一览</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">左侧有创建的空间名<span style="color: black;">叫作</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">运用</span>对象空间</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15208180560054dd3981f71~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=QEjQzAxYRmUx%2Bc3untfnJo%2F1lv0%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">上传</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击`内容管理`,再点击<span style="color: black;">上传文件</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/1520818056122e95b6399d0~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=yE6qf8IKEOEhDfX1PUZnTOU%2Bwx8%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">选取</span>文件</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">选取</span>文件上传就<span style="color: black;">能够</span>了</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15208180561004f8d2cb0b6~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=efVIbv5CA70zj47kimI%2B5T7WTPU%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在<span style="color: black;">内容管理</span>中就<span style="color: black;">能够</span>查看,图中箭头是<span style="color: black;">有些</span>操作如下图:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15208180561389bcd7f7153~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=wndhf7m4EgAoUQqUVb61QW4sg%2F0%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">复制链接</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击图中的<span style="color: black;">复制外链</span>就<span style="color: black;">能够</span><span style="color: black;">拜访</span>了</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">测试外链: </p>http://p3j2qgyhi.bkt.clouddn.com/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202018-02-02%2022.44.31.png
<h1 style="color: black; text-align: left; margin-bottom: 10px;">在 iPic 中添加七牛云</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">打开 <span style="color: black;">偏好设置</span>,进入 <span style="color: black;">图床</span> 页,<span style="color: black;">选取</span>添加<span style="color: black;">七牛</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/1520818056209152a4aaa19~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=va0vw9MIQs0ioYSAY3b5dtI3HX8%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">选取</span>图床</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以下分别介绍各项的<span style="color: black;">道理</span>及<span style="color: black;">怎样</span>配置:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/152081805640915248f5d24~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=jS6IdE9rk6uNCn2riQtqc6ko8XM%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">配置信息</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">资源</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">便是</span>刚才创建的 空间名<span style="color: black;">叫作</span>,<span style="color: black;">这儿</span>即是 liangchangyou, 上面的例子是<span style="color: black;">jianshu</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">AccessKey 与 SecretKey</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">能够</span>简单理解为七牛的隐身账户和<span style="color: black;">秘码</span>,操作资源的授权</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">进入 个人面板 => 密钥管理页</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">依次将 AK、SK 中的内容复制到 iPic 对应的 AccessKey、SecretKey 中</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Http 前缀</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15208180564169215ed3f44~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=%2BKzCArlGyUCoAl1kCgG2pAsXzTs%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">key</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">用于生成上传<span style="color: black;">照片</span>的完成 Http 路径</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">打开<span style="color: black;">刚才</span>创建的 liangchangyou 资源,复制 测试域名 中的域名至 iPic 的 Http 前缀中。要<span style="color: black;">重视</span>格式的完整,<span style="color: black;">例如</span></p>http://p3ipoi9q3.bkt.clouddn.com/ <span style="color: black;">便是</span>格式完整的 Http 前缀。
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">另一</span>,<span style="color: black;">倘若</span>你绑定了域名,就<span style="color: black;">能够</span><span style="color: black;">运用</span>自己的域名。<span style="color: black;">运用</span>自己的域名最好了。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">另一</span>,<span style="color: black;">倘若</span>需要<span style="color: black;">运用</span>七牛的文件名前缀功能(<span style="color: black;">亦</span>可理解为文件夹),只要在 Http 前缀最后附上文件名前缀<span style="color: black;">就可</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">例如</span>,普通的 Http 前缀是:</p>http://p3ipoi9q3.bkt.clouddn.com/;
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">添加 test 文件名前缀后即变为:</p>http://p3ipoi9q3.bkt.clouddn.com/liangchangyou/;
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">上传的<span style="color: black;">照片</span>链接类似于</p>http://o7entpabc.bkt.clouddn.com/liangchangyou/123.png;
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">完成输入后,<span style="color: black;">能够</span>点击 验证 按钮。<span style="color: black;">倘若</span>输入<span style="color: black;">无</span>问题,则右侧会<span style="color: black;">显现</span> <span style="color: black;">经过</span> 链接,点击后就<span style="color: black;">能够</span>看到测试时上传至七牛的<span style="color: black;">照片</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">最后,点击 应用 按钮进行<span style="color: black;">保留</span>。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">iPic <span style="color: black;">运用</span>七牛</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在 iPic 菜单 > 图床 中<span style="color: black;">选取</span><span style="color: black;">刚才</span>添加的七牛,之后上传的图片就会在七牛图床中。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/1520818056441a684f11085~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729479255&x-signature=gE1ygShTMa5v%2B%2BaWgCKTpCYqco4%3D" style="width: 50%; margin-bottom: 20px;"></p>
</div>
楼主果然英明!不得不赞美你一下!
页:
[1]