{"id":521078,"date":"2021-08-01T11:33:34","date_gmt":"2021-08-01T03:33:34","guid":{"rendered":"http:\/\/4563.org\/?p=521078"},"modified":"2021-08-01T11:33:34","modified_gmt":"2021-08-01T03:33:34","slug":"%e4%bd%bf%e7%94%a8%e8%85%be%e8%ae%af%e4%ba%91%e6%97%a0%e5%bf%a7%e8%bd%bb%e9%87%8f%e5%ba%94%e7%94%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%bayourls%e7%9f%ad%e9%93%be%e6%8e%a5%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=521078","title":{"rendered":"\u4f7f\u7528\u817e\u8baf\u4e91\u65e0\u5fe7\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u642d\u5efaYOURLS\u77ed\u94fe\u63a5\u7a0b\u5e8f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Fliggy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u4f7f\u7528\u817e\u8baf\u4e91\u65e0\u5fe7\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u642d\u5efaYOURLS\u77ed\u94fe\u63a5\u7a0b\u5e8f<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Fliggy \u4e8e 2021-7-30 19:07 \u7f16\u8f91 <\/p>\n<p> \u4f7f\u7528\u817e\u8baf\u4e91\u65e0\u5fe7\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u642d\u5efaYOURLS: Your Own URL Shortener<\/p>\n<p>  \u4e4b\u524d\u53c2\u52a0\u826f\u5fc3\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u65e0\u5fe7\u8ba1\u5212\u6d3b\u52a8\uff0c\u5165\u4e86\u4e00\u53f0\u5e7f\u5dde\u7684\u5c0f\u9e21\u3002<\/p>\n<p>  \u914d\u7f6e\u5982\u4e0b\uff1a<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/1.png<\/p>\n<p>  \u642d\u5efa\u8fc7\u7a0b<\/p>\n<p>  1.\u5b89\u88c5\u5b9d\u5854<\/p>\n<p>  \u9ed8\u8ba4\u5b89\u88c5\u7684\u662fCentOS\uff0c\u8fd9\u91cc\u91cd\u7f6e\u4e3a\u5e94\u7528\u955c\u50cf\u5b9d\u5854Linux\u9762\u677f 7.6.0 \u817e\u8baf\u4e91\u4e13\u4eab\u7248\uff0c\u5b89\u88c5\u6210\u529f\u540e\u5e94\u7528\u7ba1\u7406\u53ef\u4ee5\u627e\u5230\u9762\u677f\u76f8\u5173\u4fe1\u606f\uff0c\u6ce8\u610f\u5c06\u9762\u677f\u7aef\u53e3\u6dfb\u52a0\u5230\u9632\u706b\u5899\u3002<br \/>  \u5b9d\u5854Linux\u9762\u677f\uff08BT-Panel\uff09\u662f\u4e00\u6b3e\u7b80\u5355\u597d\u7528\u7684\u670d\u52a1\u5668\u8fd0\u7ef4\u9762\u677f\uff0c\u652f\u6301\u4e00\u952eLAMP\/LNMP\/\u96c6\u7fa4\/\u76d1\u63a7\/\u7f51\u7ad9\/FTP\/\u6570\u636e\u5e93\/JAVA\u7b49100\u591a\u9879\u670d\u52a1\u5668\u7ba1\u7406\u529f\u80fd\uff0c\u80fd\u591f\u6781\u5927\u63d0\u5347\u8fd0\u7ef4\u7ba1\u7406\u6548\u7387\u3002\u5b9d\u5854\u9762\u677f\u817e\u8baf\u4e91\u4e13\u4eab\u7248\u7531\u817e\u8baf\u4e91\u4e0e\u5821\u5854\u516c\u53f8\u8054\u5408\u5f00\u53d1\uff0c\u4e0e\u666e\u901a\u7248\u76f8\u6bd4\uff0c\u4e13\u4eab\u7248\u9ed8\u8ba4\u96c6\u6210\u817e\u8baf\u4e91COSFS\u3001CDN\u548cDNS\u89e3\u6790\u63d2\u4ef6\uff0c\u8ba9\u7528\u6237\u66f4\u4fbf\u6377\u7684\u4f7f\u7528\u5b9d\u5854\u9762\u677f\u5bf9\u817e\u8baf\u4e91\u4ea7\u54c1\u8fdb\u884c\u7ba1\u7406\u548c\u64cd\u4f5c\u3002\u8be5\u955c\u50cf\u57fa\u4e8eCentOS 7.8 64\u4f4d\u64cd\u4f5c\u7cfb\u7edf\u3002\uff08\u6ce8\uff1a\u521b\u5efa\u5b9e\u4f8b\u5b8c\u6210\u540e\u8bf7\u5728\u9632\u706b\u5899\u8bbe\u7f6e\u4e2d\u6253\u5f00\u9762\u677f\u7aef\u53e3\u3002\uff09<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/2.png<\/p>\n<p>  2.\u5b9d\u5854\u6dfb\u52a0\u7ad9\u70b9<\/p>\n<p>  \u6ca1\u6709\u5317\u5cb8\uff0c\u8fd9\u91cc\u76f4\u63a5\u7528IP\u6f14\u793a\u3002<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/3.png<\/p>\n<p>  3.\u5b89\u88c5YOURLS<\/p>\n<p>  \u5efa\u8bae\u5b89\u88c5\u73af\u5883\uff1a<br \/>  Nginx 1.20<br \/>  PHP 7.2.0+<br \/>  MySQL 5+<br \/>  \u4e0b\u8f7d\u5730\u5740<\/p>\n<p>  https:\/\/github.com\/YOURLS\/YOURLS\/archive\/refs\/tags\/1.8.1.tar.gz<\/p>\n<p>  \u901a\u8fc7\u5b9d\u5854\u4e0a\u4f20\u81f3\u7f51\u7ad9\u6839\u76ee\u5f55\u5e76\u89e3\u538b\u3002<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/4.png<\/p>\n<p>  \u914d\u7f6e\u4f2a\u9759\u6001\u89c4\u5219<br \/>   # Rewrites<br \/>  location \/ {<br \/>  &nbsp; &nbsp; try_files $uri $uri\/ \/yourls-loader.php$is_args$args;<br \/>  }<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/rew.png<\/p>\n<p>  \u5c06\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6 user\/config-sample.php\u00a0\u91cd\u547d\u540d\u4e3a user\/config.php \u5e76\u914d\u7f6e\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<p>  https:\/\/github.com\/BotMom\/EUserv_extend\/raw\/main\/code.txt<\/p>\n<p>  https:\/\/z.photos\/images\/2021\/07\/30\/7.png<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/langa3dae984199aa460.png<\/p>\n<p>  \u8bbf\u95eehttp:\/\/domain\/admin\/\u70b9\u51fbInstall YOURLS\u5373\u53ef<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/58d181514aea994c4.png<\/p>\n<p>  \u540e\u53f0\u7ba1\u7406\u5730\u5740<br \/>  http:\/\/domain\/admin\/<br \/>  https:\/\/z.photos\/images\/2021\/07\/30\/6.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Fliggy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmjj\u5929\u4e0b\u7b2c\u4e00 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 20:23<br \/>  \u77ed\u94fe\u8fd8\u662f\u79c1\u7528\u6bd4\u8f83\u597d\uff0c\u53c2\u8003\u575b\u5b50\u91cc\u9762\u7684\u77ed\u94fe\u63a5\u57fa\u672c\u90fd\u8dd1\u8def\u4e86\u3002<\/p>\n<p> +1 \u4e00\u76f4\u5728\u7528YOURLS \u9ed8\u8ba4\u79c1\u6709 \u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u516c\u5f00\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7b11\u82b1\u843d\u534a\u4e16\u7409\u7483<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u95ee\u9898\u6765\u4e86\uff0c\u90a3\u91cc\u6709\u4fbf\u5b9c\u7684\u77ed\u7389\u7c73:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hjvn2211445<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 hjvn2211445 \u4e8e 2021-7-30 19:05 \u7f16\u8f91 <\/p>\n<p> \u629b\u5f03\u5b9d\u5854\uff0cdocker\u5feb\u901f\u642d\u5efaYOURLS\u77ed\u94fe\u63a5\u7a0b\u5e8f<\/p>\n<p>  https:\/\/hub.docker.com\/_\/yourls<\/p>\n<p>  wget -O- get.docker.com|bash<\/p>\n<p>  docker run &#8211;name some-mysql &#8211;restart:=always <br \/>  &nbsp; &nbsp; -e MYSQL_ROOT_PASSWORD=&quot;example&quot; <br \/>  &nbsp; &nbsp; -d mysql:5.7<\/p>\n<p>  docker run &#8211;name some-yourls &#8211;link some-mysql:mysql &#8211;restart:=always <br \/>  &nbsp; &nbsp; -e YOURLS_SITE=&quot;https:\/\/example.com&quot; <br \/>  &nbsp; &nbsp; -e YOURLS_USER=&quot;example_username&quot; <br \/>  &nbsp; &nbsp; -e YOURLS_PASS=&quot;example_password&quot; <br \/>  &nbsp; &nbsp; -e YOURLS_DB_PASS=&quot;example&quot; <br \/>  &nbsp; &nbsp; -p 80:80<br \/>  &nbsp; &nbsp; -d yourls<\/p>\n<p>  \u6216\u8005docker-compose\u542f\u52a8<\/p>\n<p>  version: &#8216;3.1&#8217;<\/p>\n<p>  services:<\/p>\n<p>  yourls:<br \/>  &nbsp; &nbsp; image: yourls<br \/>  &nbsp; &nbsp; restart: always<br \/>  &nbsp; &nbsp; ports:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; 80:80<br \/>  &nbsp; &nbsp; environment:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;YOURLS_DB_PASS: example<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;YOURLS_SITE: https:\/\/example.com<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;YOURLS_USER: example_username<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;YOURLS_PASS: example_password<\/p>\n<p>  mysql:<br \/>  &nbsp; &nbsp; image: mysql:5.7<br \/>  &nbsp; &nbsp; restart: always<br \/>  &nbsp; &nbsp; environment:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;MYSQL_ROOT_PASSWORD: example\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Fliggy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7b11\u82b1\u843d\u534a\u4e16\u7409\u7483 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 18:49<br \/>  \u95ee\u9898\u6765\u4e86\uff0c\u90a3\u91cc\u6709\u4fbf\u5b9c\u7684\u77ed\u7389\u7c73<\/p>\n<p> \u826f\u5fc3\u4e91.vin\u8fd8\u6709\u5f88\u591a3\u4f4d\u975e\u6ea2\u4ef7\u672a\u6ce8\u518c \u9996\u5e7435\u5143\u7eed\u8d3956\u5143\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mjj\u5929\u4e0b\u7b2c\u4e00<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u77ed\u94fe\u8fd8\u662f\u79c1\u7528\u6bd4\u8f83\u597d\uff0c\u53c2\u8003\u575b\u5b50\u91cc\u9762\u7684\u77ed\u94fe\u63a5\u57fa\u672c\u90fd\u8dd1\u8def\u4e86\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nadoo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5df2\u6536\u85cf\uff0c\u611f\u8c22\u5206\u4eab\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>baobao4399<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5df2\u6536\u85cf\uff0c\u611f\u8c22\u5206\u4eab\u3002:lol  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Fliggy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tnadoo \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 22:47<br \/>  \u5df2\u6536\u85cf\uff0c\u611f\u8c22\u5206\u4eab\u3002<\/p>\n<p> yc007t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e09\u4e0a\u60a0\u4e9a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6b63\u597d\u9700\u8981 \u611f\u8c22lz&nbsp; &nbsp;&nbsp; &nbsp;\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fliggy \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u4f7f\u7528&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/521078"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=521078"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/521078\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=521078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=521078"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=521078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}