{"id":4614,"date":"2022-11-21T00:32:22","date_gmt":"2022-11-20T16:32:22","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4614"},"modified":"2022-11-21T00:42:20","modified_gmt":"2022-11-20T16:42:20","slug":"%e6%8e%a8%e8%8d%90photoview-%e5%9c%a8%e7%ba%bf%e7%9b%b8%e5%86%8c","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4614","title":{"rendered":"[\u63a8\u8350]PhotoView-\u5728\u7ebf\u76f8\u518c"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u5728Github\u4e0a\u627e\u4e00\u4e2a\u76f8\u518c\u7cfb\u7edf\uff0c\u7528\u4e8e\u7b80\u5355\u7684\u7167\u7247\u6d4f\u89c8\n\nhttps:\/\/github.com\/topics\/photography\n\n\u7b2c2\u4e2a\u4fbf\u662fPhotoView,\u4ee5\u4e0b\u662f\u5b89\u88c5\u6b65\u9aa4(ip\u6211\u7684\u8fdc\u7a0b\u673a\u4e3a192.168.3.200)\uff1a\n\n\u51c6\u5907\u73af\u5883\uff1acentos7.6 + docker + docker-compose\n\nmkdir -p \/data\/photoview\ncd \/data\/photoview\nwget https:\/\/raw.githubusercontent.com\/photoview\/photoview\/master\/docker-compose.example.yml\nmv docker-compose.example.yml docker-compose.yml\nvi docker-compose.yml #\u8fd9\u91cc\u53ef\u4ee5\u8fdb\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u914d\u7f6e\uff0c \u4e5f\u53ef\u4ee5\u4e0d\u914d\u7f6e\ndocker-compose up -d\n# \u5982\u679c\u4e00\u5207\u987a\u5229\u7684\u8bdd\uff0c\u4fbf\u5b89\u88c5\u597d\u4e86\uff0c\u4f1a\u5728\/data\/photoview\u4e0b\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55 photos_path\n# \u628a\u7167\u7247\u6309\u76ee\u5f55\u7ed3\u6784\u62f7\u5230 photos_path\u4e2d\uff0c\u7136\u540e\u4f7f\u7528Windows\u7684Chrome\u8bbf\u95ee\n192.168.3.200:8000<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2022\/11\/eq_294508.jpg@596w_1l.jpg\" alt=\"\"\/><\/figure>\n\n\n<p>\u7279\u70b9\uff1a<\/p>\n<p>\u7b80\u5355\uff0c\u51e0\u4e4e\u6ca1\u6709\u914d\u7f6e<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<p>\u4f7f\u7528winscp\u628a\u7167\u7247\u624b\u5de5\u4e0a\u4f20\u5230\/data\/photoview\/photos_path\u4e2d\uff0c\u7136\u540e\u767b\u5f55\u7ba1\u7406\u9875\u9762\uff0c\u624b\u5de5\u70b9\u4e00\u4e0b\u626b\u63cf\u5373\u53ef<\/p>","protected":false},"excerpt":{"rendered":"<p>\u7279\u70b9\uff1a \u7b80\u5355\uff0c\u51e0\u4e4e\u6ca1\u6709\u914d\u7f6e \u4f7f\u7528\u65b9\u6cd5\uff1a \u4f7f\u7528winscp\u628a\u7167\u7247\u624b\u5de5\u4e0a\u4f20\u5230\/data\/photoview\/pho [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4614"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4614"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4614\/revisions"}],"predecessor-version":[{"id":4619,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4614\/revisions\/4619"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}