{"id":523629,"date":"2021-08-11T04:58:25","date_gmt":"2021-08-10T20:58:25","guid":{"rendered":"http:\/\/4563.org\/?p=523629"},"modified":"2021-08-11T04:58:25","modified_gmt":"2021-08-10T20:58:25","slug":"mjj%e7%9a%84%e5%8d%9a%e5%ae%a2%e5%bf%85%e5%a4%87-%e7%bd%91%e7%ab%99%e7%bb%9f%e8%ae%a1%e7%a8%8b%e5%ba%8f-umami","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=523629","title":{"rendered":"mjj\u7684\u535a\u5ba2\u5fc5\u5907&#8212;\u7f51\u7ad9\u7edf\u8ba1\u7a0b\u5e8f-umami"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u7eaf\u4e4b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>mjj\u7684\u535a\u5ba2\u5fc5\u5907&#8212;\u7f51\u7ad9\u7edf\u8ba1\u7a0b\u5e8f-umami<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u7eaf\u4e4b \u4e8e 2021-8-10 21:04 \u7f16\u8f91 <\/p>\n<p> \u4e00\u6b3e\u989c\u503c\u9ad8\u7684\u7f51\u7ad9\u81ea\u6258\u7ba1\u7edf\u8ba1\u7a0b\u5e8f-umami<\/p>\n<p>  \u6700\u8fd1\u6211\u4e00\u76f4\u5728\u5bfb\u627e\u7f51\u7ad9\u7edf\u8ba1\u7a0b\u5e8f\uff08\u867d\u7136\u65e5ip\u4e3a\u4e2a\u4f4d\u6570\u54b1\u4e5f\u8981\u6709\u68a6\u60f3\u561b\uff0c\u6211\u7684\u8981\u6c42\u5f88\u7b80\u5355\uff1a\u53ea\u8981\u80fd\u628apv,uv,\u6765\u6e90,\u548c\u7edf\u8ba1\u8bbe\u5907\u60c5\u51b5\u5c31\u591f\u4e86\u3002\u76f8\u6bd4\u4e8e\u767e\u5ea6\uff0c\u8c37\u6b4c\uff0c\u5de8\u786c\u7684\u7edf\u8ba1\u670d\u52a1\u7684\u590d\u6742\u6027\uff0c\u6211\u8fd8\u662f\u89c9\u5f97\u8fd9\u6b3e\u9ad8\u989c\u503c\u7684\u8f7b\u91cf\u7edf\u8ba1\u7a0b\u5e8f-umami\u9002\u5408\u6211\u3002<\/p>\n<p>  \u5b98\u7f51\u7684demo http:\/\/umami.is\/<\/p>\n<p>  \u5b98\u7f51\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\u65e0\u6cd5\u8bbf\u95ee\uff0c\u8bf7\u81ea\u884c\u5bfb\u627e\u529e\u6cd5<\/p>\n<p>  \u5b98\u65b9github http:\/\/github.com\/mikecao\/umami<\/p>\n<p>  \u8fd9\u91cc\u6211\u4f7f\u7528\u4e86\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u4f5c\u4e3a\u6258\u8f7d\u7aef\uff0c\u73b0\u5728\u826f\u5fc3\u4e91\u7684\u8f7b\u91cf\u65e0\u5fe7\u8ba1\u5212\u53ef\u4ee5\u4e70\u591a\u4e2a\u4e0d\u540c\u914d\u7f6e\u7684\u670d\u52a1\u5668\u54e6\uff0c\u4ef7\u683c\u4fbf\u5b9c\uff0c\u7eed\u8d39\u4e00\u53e3\u4ef7\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff01<\/p>\n<p>  \u4e0b\u9762\u5f00\u59cb\u6559\u5927\u5bb6\u5b89\u88c5\u5427\uff01<\/p>\n<p>  \u8fd9\u91cc\u5b98\u7f51\u63d0\u4f9b\u4e86\u4e24\u79cd\u65b9\u5f0f\u5b89\u88c5\uff0c\u4e0b\u9762\u4e00\u4e00\u4ecb\u7ecd<\/p>\n<p>  1.\u76f4\u63a5\u5b89\u88c5<\/p>\n<p>  \u7531\u4e8e\u9700\u8981\u4f7f\u7528mysql\u6570\u636e\u5e93\uff0c\u8fd9\u91cc\u6211\u4eec\u5148\u5b89\u88c5mysql\uff08\u4f7f\u7528\u519b\u54e5\u7684\u4e00\u952ejio\u672c<\/p>\n<p>  sudo -i#\u5207\u6362\u5230root<br \/>  wget http:\/\/soft.vpser.net\/lnmp\/lnmp1.8.tar.gz -cO lnmp1.8.tar.gz &amp;&amp; tar zxf lnmp1.8.tar.gz &amp;&amp; cd lnmp1.8 &amp;&amp; .\/install.sh db#\u8fd9\u91cc\u4f1a\u8ba9\u4f60\u9009\u62e9mysql\u7248\u672c\u5982\u4e0b\u56fe<\/p>\n<p>  \u81ea\u884c\u9009\u62e9\uff0c\u4e00\u822c\u6765\u8bf45.5\u5c31\u591f\u4e86<\/p>\n<p>  \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u5148\u6dfb\u52a0\u4e00\u4e2a\u6570\u636e\u5e93<\/p>\n<p>   mysqladmin -u root -p create umami #\u521b\u5efa\u6570\u636e\u5e93umami<br \/>  \u4e0b\u9762\u5b89\u88c5npm<\/p>\n<p>  yum install gcc gcc-c++<br \/>  wget https:\/\/npm.taobao.org\/mirrors\/node\/v10.14.1\/node-v10.14.1-linux-x64.tar.gz #\u5982\u679c\u6ca1\u6709wget yum install wget<br \/>  tar -xvfnode-v10.14.1-linux-x64.tar.gz<br \/>  mv node-v10.14.1-linux-x64 node<br \/>  nano \/etc\/profile<br \/>  export NODE_HOME=\/usr\/local\/node&nbsp; &nbsp;#\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0<br \/>  export PATH=$NODE_HOME\/bin:$PATH#\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0<br \/>  source \/etc\/profile<br \/>  \u6700\u540e\u4f7f\u7528 node-v,npm -v\u67e5\u770b\u5b89\u88c5\u60c5\u51b5<\/p>\n<p>  \u63a5\u4e0b\u6765\u4ecegithub\u514b\u9686umami<\/p>\n<p>  git clone https:\/\/github.com\/mikecao\/umami.git<br \/>  cd umami\/<br \/>  mysql -uroot -p umami &lt; sql\/schema.mysql.sql #\u5bfc\u5165\u6570\u636e\u5e93<br \/>  nmp install<br \/>  touch .env#\u521b\u5efa.env\u6587\u4ef6<br \/>  nano .env<br \/>  \u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<br \/>  DATABASE_URL=mysql:\/\/root:123456789@localhost:3306\/mydb<br \/>  HASH_SALT=my-very-secret-secret<\/p>\n<p>  \u63a5\u4e0b\u6765\u542f\u52a8\u7a0b\u5e8f<\/p>\n<p>  npm run build<br \/>  npm start<br \/>  \u63a5\u4e0b\u6765\u5b8c\u5de5\uff01\u8bb0\u5f97\u5b88\u62a4\u7a0b\u5e8f!<\/p>\n<p>  2.docker \u5b89\u88c5(\u63a8\u8350\uff0c\u4e00\u952e\u8dd1\u8def\u5fc5\u5907<\/p>\n<p>  \u5b89\u88c5docker\u548cdocker compose<\/p>\n<p>  curl -fsSL https:\/\/get.docker.com | bash -s docker<br \/>  curl -L &quot;https:\/\/github.com\/docker\/compose\/releases\/download\/1.29.2\/docker-compose-$(uname -s)-$(uname -m)&quot; -o \/usr\/local\/bin\/docker-compose<br \/>  sudo chmod +x \/usr\/local\/bin\/docker-compose<br \/>  \u63a5\u4e0b\u6765\u5b89\u88c5\u5e76\u4e14\u62c9\u53d6umami\u955c\u50cf<\/p>\n<p>  git clone https:\/\/github.com\/mikecao\/umami.git<br \/>  cd umami\/<br \/>  docker-compose up<br \/>  \u9ed8\u8ba4\u76d1\u542cip:3000<\/p>\n<p>  \u9700\u8981https\u8bf7\u53cd\u4ee3\u3001<\/p>\n<p>  \u8d34\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  location \/ {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $http_host;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header X-Real-IP $remote_addr;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_redirect off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:3000\/;<br \/>  &nbsp; &nbsp; }<br \/>  \u9644\u56fe\u4e00\u5f20\u5b8c\u6210\u540e\u7684\u622a\u56fe<br \/>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/10\/b52db3da8eec7.png<\/p>\n<p>  \u53f3\u4e0a\u89d2\u53ef\u4ee5\u5207\u6362\u4e2d\u6587<\/p>\n<p>  \u63a5\u4e0b\u6765\u6dfb\u52a0\u7f51\u7ad9\u5566\uff01\u83b7\u53d6\u7edf\u8ba1\u4ee3\u7801<br \/>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/10\/852a130fa2fe3.png<\/p>\n<p>  \u83b7\u53d6\u4ee3\u7801\u540e<\/p>\n<p>  \u6211\u4ee5wordpress\u4e3e\u4f8b\u5b50<\/p>\n<p>  \u5c06\u4ee3\u7801\u52a0\u5728\u4e3b\u9898\u7684footer.php\u4e0b<\/p>\n<p>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/10\/cd3a2252ff900.png<\/p>\n<p>  \u63a5\u4e0b\u6765\u5237\u65b0\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u7edf\u8ba1\u9a6c\u4e0a\u5c31\u5230\uff01<br \/>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/10\/593160558d14d.png<br \/>  :lol \u5982\u679cmjj\u4eec\u4e0d\u60f3\u81ea\u5efa\u53ef\u4ee5\u8054\u7cfb\u6211\uff0cmjj\u4eec\u76f4\u63a5\u52a0\u4ee3\u7801\u5373\u53ef:lol <br \/>  \u987a\u4fbfip+1\u5457:lol <br \/>  https:\/\/moe.tips\/archives\/252  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34\u5fc5\u9876\u611f\u8c22\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>NoctuG<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e00\u4e0b\uff0c\u867d\u7136\u6211\u7528\u9759\u6001\u7684Hexo:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6211\u662f\u574f\u866b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:$\u592a\u9ebb\u70e6\u4e86<br \/>  \u6211\u7528matomohttps:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>erno<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8def\u8fc7\uff0c\u770b\u770b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7eaf\u4e4b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\toptimism \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-10 21:07<br \/>  \u6280\u672f\u8d34\u5fc5\u9876 \u611f\u8c22\u5206\u4eab<\/p>\n<p> :lol\u611f\u8c22\u652f\u6301\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Xiaoxi679<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34upup\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7eaf\u4e4b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u7eaf\u4e4b \u4e8e 2021-8-10 21:12 \u7f16\u8f91 <\/p>\n<p> \u6211\u662f\u574f\u866b \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-10 21:09<br \/>  \u592a\u9ebb\u70e6\u4e86<br \/>  \u6211\u7528matomo<\/p>\n<p>  docker \u5b89\u88c5\u5176\u5b9e\u4e5f\u4e0d\u9ebb\u70e6\uff0c\u4e3b\u8981\u662f\u76f8\u6bd4\u4e8ematomo\u8fd9\u4e2a\u7b80\u6d01  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Reverie<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:lolmatomo\u771f\u9999\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>MnAnime<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u770b\u770b\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7eaf\u4e4b \u5927\u4f6c\u6709\u8bdd\u8bf4 : mjj\u7684\u535a\u5ba2&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\/523629"}],"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=523629"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/523629\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=523629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=523629"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=523629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}