{"id":28780,"date":"2025-04-20T02:46:18","date_gmt":"2025-04-19T18:46:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/28780.html"},"modified":"2025-04-20T02:46:18","modified_gmt":"2025-04-19T18:46:18","slug":"hexo-%e5%90%8c%e6%ad%a5%e9%83%a8%e7%bd%b2%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%92%8cgithub-%e8%b6%85%e8%af%a6%e7%bb%86%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/28780.html","title":{"rendered":"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b"},"content":{"rendered":"<h3>\u80cc\u666f\u4ecb\u7ecd<\/h3>\n<p>\u4e4b\u524d\u7528Hexo\u3001GitHub Pages\u3001netlify \u642d\u5efa\u5e76\u6258\u7ba1\u6211\u7684\u4e2a\u4eba\u535a\u5ba2\u3002\u5c3d\u7ba1\u8fd9\u79cd\u65b9\u5f0f\u6781\u4e3a\u4fbf\u6377&#xff0c;\u4f46\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6\u65f6\u5e38\u53d7\u9650\u3002\u6700\u8fd1\u4e70\u4e86\u4e2a\u670d\u52a1\u5668&#xff0c;\u521a\u597d\u5b66\u4e60 Linux \u548c Web \u90e8\u7f72\u7684\u76f8\u5173\u77e5\u8bc6&#xff0c;\u672c\u6587\u8bb0\u5f55\u4e0bhexo \u5982\u4f55\u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub\u3002<\/p>\n<h3>\u76ee\u7684<\/h3>\n<li>\n<p>\u5b9e\u73b0\u535a\u5ba2\u5185\u5bb9\u540c\u65f6\u63a8\u9001\u5230GitHub\u548c\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>\u638c\u63e1\u5b9d\u5854\u9762\u677f\u7684\u57fa\u7840\u7f51\u7ad9\u914d\u7f6e\u65b9\u6cd5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b66\u4e60Nginx \u57fa\u7840\u914d\u7f6e\u6280\u5de7\u3002<\/p>\n<\/li>\n<h3>\u57fa\u7840\u6761\u4ef6<\/h3>\n<li>\n<p>\u5df2\u5728\u672c\u5730\u53caGitHub\u4e0a\u5df2\u6210\u529f\u642d\u5efaHexo\u535a\u5ba2\u73af\u5883\u3002<\/p>\n<\/li>\n<li>\n<p>\u5df2\u6709\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>\u5df2\u6709\u57df\u540d\u548c SSL \u8bc1\u4e66\u3002<\/p>\n<\/li>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<h4>\u5b89\u88c5 git<\/h4>\n<p>\u670d\u52a1\u5668\u7aef\u5b89\u88c5 git\u3002<\/p>\n<p>sudo yum install git <\/p>\n<h4>\u521b\u5efa\u535a\u5ba2\u6587\u4ef6\u5939<\/h4>\n<p>\u670d\u52a1\u5668\u7aef\u521b\u5efa\u6587\u4ef6\u5939\u3002<\/p>\n<p>sudo mkdir -p \/blog\/html <\/p>\n<p>\u8bbe\u7f6e\u6b63\u786e\u7684\u6743\u9650\u3002<\/p>\n<p>sudo chown root:root \/blog\/htmlsudo chmod 755 \/blog\/html <\/p>\n<h4>\u521b\u5efa git \u4ed3\u5e93<\/h4>\n<p>\u5728\u670d\u52a1\u5668\u7aef\u914d\u7f6e git \u4ed3\u5e93\u63a5\u6536\u672c\u5730\u63a8\u9001&#xff0c;\u6ce8\u610f\u8bbe\u7f6e\u4e00\u4e2a\u5168\u5c40\u5206\u652f\u540d\u79f0&#xff0c;\u6211\u7684\u662f main\u3002<\/p>\n<p>cd\u00a0\/root<br \/>\nsudo git init &#8211;bare blogit.git\u00a0#\u521b\u5efa\u4e00\u4e2a\u53ebblogit\u7684\u4ed3\u5e93<br \/>\ngit config &#8211;global init.defaultBranch main\u00a0#\u914d\u7f6e\u5168\u5c40\u9ed8\u8ba4\u5206\u652f\u540d <\/p>\n<h4>\u4f7f\u7528 hooks \u5b9e\u73b0\u81ea\u52a8\u90e8\u7f72<\/h4>\n<p>sudo vim \/root\/blogit.git\/hooks\/post-receive <\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u94a9\u5b50\u6587\u4ef6&#xff0c;\u5c06\u4e0b\u9762\u7684\u5185\u5bb9&#xff0c;\u653e\u5728 post-receive \u91cc\u3002\u521d\u5b66\u8005\u5efa\u8bae\u5b66\u4e60\u4e0b vim \u8bed\u6cd5\u3002<\/p>\n<p>#!\/bin\/shgit<br \/>\n&#8211;work-tree&#061;\/blog\/html<br \/>\n&#8211;git-dir&#061;\/root\/blogit.git checkout -f main <\/p>\n<p>\u4fdd\u5b58\u6587\u4ef6&#xff0c;\u7ed9\u6743\u9650\u3002<\/p>\n<p>chmod &#043;x \/root\/blogit.git\/hooks\/post-receive <\/p>\n<h5>vim \u57fa\u672c\u8bed\u6cd5<\/h5>\n<p>\u70b9\u51fb insert \u5207\u6362\u6a21\u5f0f&#xff0c;\u70b9\u51fb esc \u9000\u51fa\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u6ce8\u610f\u5728\u82f1\u6587\u8f93\u5165\u6cd5\u72b6\u6001\u4e0b\u624d\u53ef\u4ee5\u8f93\u5165\u547d\u4ee4\u3002<\/p>\n<p>:wq\u00a0#\u4fdd\u5b58<br \/>\n:%d\u00a0#\u5168\u90e8\u5220\u9664 <\/p>\n<h4>\u4fee\u6539 hexo \u914d\u7f6e<\/h4>\n<p>\u5728 hexo \u7684\u00a0_config.yml\u00a0\u6587\u4ef6deploy \u8bbe\u7f6e\u4e2d\u589e\u52a0\u670d\u52a1\u5668git \u4fe1\u606f\u3002<\/p>\n<p>deploy:\u00a0<br \/>\n&#8211;\u00a0type: git\u00a0 \u00a0<br \/>\n  repository: git&#064;github.com:[\u5bf9\u5e94\u7684\u9879\u76ee\u540d].github.io.git\u00a0#\u6ce8\u610f\u66ff\u6362[]\u5185\u5bb9\u00a0 \u00a0<br \/>\n  branch: main\u00a0<br \/>\n&#8211;\u00a0type: git\u00a0 \u00a0<br \/>\n  repository: root&#064;[\u57df\u540d]:\/root\/blogit.git\u00a0#\u6ce8\u610f\u66ff\u6362[]\u5185\u5bb9\u00a0 \u00a0<br \/>\n  branch: main <\/p>\n<p>\u6ce8\u610f\u505a\u8fd9\u4e00\u6b65\u4e4b\u524d\u9700\u8981\u5c06\u672c\u5730\u7535\u8111\u7684\u516c\u94a5&#xff0c;\u653e\u5728\u670d\u52a1\u5668 authorized_keys \u6587\u4ef6\u91cc\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u901a\u8fc7\u672c\u5730 ssh \u8fde\u63a5\u670d\u52a1\u5668\u4e86&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u4ee3\u7801\u6d4b\u8bd5\u662f\u5426\u8fde\u63a5\u6210\u529f\u3002<\/p>\n<p>ssh root&#064;[\u57df\u540d] <\/p>\n<p>\u7ecf\u8fc7\u4e0a\u8ff0\u8fc7\u7a0b\u540e&#xff0c;\u5728\u672c\u5730\u6587\u4ef6\u5939 \u5229\u7528 hexo \u4e09\u8fde&#xff0c;\u6d4b\u8bd5\u662f\u5426\u5c06\u535a\u5ba2\u540c\u65f6\u53d1\u5e03\u5230\u670d\u52a1\u5668\u548c GitHub\u3002<\/p>\n<p>hexo clean<br \/>\nhexo g<br \/>\nhexo d <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"332\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419184616-6803ef781c570.png\" width=\"915\" \/><\/p>\n<p>\u6210\u529f\u540c\u6b65<\/p>\n<h4>\u5b89\u88c5\u5b9d\u5854<\/h4>\n<p>\u5728\u963f\u91cc\u4e91\u91cc\u9762\u53ef\u4ee5\u91cd\u88c5\u5e26\u6709\u5b9d\u5854\u7684\u7cfb\u7edf&#xff0c;\u4e5f\u53ef\u4ee5\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4<\/p>\n<p>if\u00a0[ -f \/usr\/bin\/curl ];then\u00a0curl -sSO https:\/\/download.bt.cn\/install\/install_panel.sh;else\u00a0wget -O install_panel.sh https:\/\/download.bt.cn\/install\/install_panel.sh;fi;bash install_panel.sh ed8484bec <\/p>\n<h4>\u5b89\u88c5 nginx<\/h4>\n<p>\u8fdb\u5165\u5b9d\u5854\u9875\u9762&#xff0c;\u4f1a\u63a8\u8350\u5b89\u88c5 nginx&#xff0c;\u5176\u4ed6\u5de5\u5177\u7684\u6839\u636e\u81ea\u5df1\u60c5\u51b5\u5b89\u88c5\u3002<\/p>\n<h4>\u914d\u7f6e html \u9879\u76ee<\/h4>\n<p>\u7531\u4e8e\u6211\u662f\u7528\u7684 hexo \u4e3b\u9898\u4e3a fulid \u5f88\u591a css \u7528\u7684\u662f https &#xff0c;\u9700\u8981\u7533\u8bf7\u8bc1\u4e66&#xff0c;\u5982\u679c\u6ca1\u6709\u6dfb\u52a0\u8bc1\u4e66&#xff0c;\u5f88\u591a\u6548\u679c\u65e0\u6cd5\u5c55\u793a&#xff0c;\u56e0\u6b64\u9700\u8981\u5728\u963f\u91cc\u4e91\u670d\u52a1\u5668\u91cc\u7533\u8bf7\u514d\u8d39\u7684 SSL \u8bc1\u4e66&#xff0c;\u4e2a\u4eba\u8bc1\u4e66\u53ea\u6709 90 \u5929\u7684\u6743\u9650&#xff0c;\u5177\u4f53\u6b65\u9aa4\u76f4\u63a5\u5728\u670d\u52a1\u5668\u641c\u7d22&#xff0c;\u8fd9\u91cc\u7565\u8fc7\u4e0d\u63d0\u3002<\/p>\n<p>\u5728\u5b9d\u5854\u5185\u70b9\u51fb\u7f51\u5740-html \u9879\u76ee-\u6dfb\u52a0\u9879\u76ee&#xff0c;\u6dfb\u52a0\u57df\u540d\u3001\u6839\u76ee\u5f55\u4fe1\u606f&#xff0c;\u70b9\u51fb\u786e\u5b9a\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"594\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419184616-6803ef784f5fc.png\" width=\"1080\" \/><\/p>\n<\/p>\n<p>\u5728\u65b0\u589e\u7684html\u7f51\u7ad9\u9879\u76ee\u91cc&#xff0c;\u70b9\u51fb\u90e8\u7f72 SSL \u8bc1\u4e66&#xff0c;\u5c06\u963f\u91cc\u4e91\u4e0a\u7684\u8bc1\u4e66\u4e0b\u8f7d\u4e0b\u6765&#xff0c;\u628a key \u548c pem \u590d\u5236\u5230\u5bf9\u5e94\u7684\u4f4d\u7f6e&#xff0c;\u70b9\u51fb\u786e\u5b9a\u5373\u53ef\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"577\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419184616-6803ef78abafb.png\" width=\"1080\" \/><\/p>\n<p>\u7528\u4e0b\u9762\u4ee3\u7801\u68c0\u67e5\u4e00\u4e0b\u914d\u7f6e\u662f\u5426\u6b63\u5e38&#xff0c;\u82e5\u4e00\u5207\u6b63\u5e38&#xff0c;\u91cd\u8f7d\u914d\u7f6e&#xff0c;\u6d4f\u89c8\u57df\u540d\u5c31\u53ef\u4ee5\u770b\u5230\u5185\u5bb9\u5566\u3002<\/p>\n<p>nginx -t <\/p>\n<h4>nginx \u914d\u7f6e<\/h4>\n<p>\u7528\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u7528\u53bb\u6298\u817e nginx \u914d\u7f6e&#xff0c;\u4f1a\u81ea\u52a8\u751f\u6210&#xff0c;\u5728\u5b9d\u5854\u7f51\u7ad9\u7ba1\u7406\u754c\u9762\u53ef\u4ee5\u770b\u5230&#xff0c;\u4ee5\u4e0b\u662f\u793a\u4f8b&#xff0c;\u5b9e\u9645\u6709 SSL \u8bc1\u4e66\u7684\u4f1a\u590d\u6742\u4e00\u4e9b\u3002<\/p>\n<p>server {<br \/>\n    listen       80;<br \/>\n    server_name  wenmao.xyz;  # \u66ff\u6362\u4e3a\u4f60\u7684\u57df\u540d\u6216IP\u5730\u5740<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        proxy_set_header Host $http_host;<br \/>\n        proxy_connect_timeout 300;<br \/>\n        proxy_http_version 1.1;<br \/>\n        proxy_set_header Connection &#034;&#034;;<br \/>\n        chunked_transfer_encoding off;<\/p>\n<p>    root   \/blog\/html;  # \u66ff\u6362\u5b9e\u9645\u8def\u5f84<br \/>\n    index  index.html index.htm;<\/p>\n<p>    location \/ {<br \/>\n        try_files $uri $uri\/ \/index.html;<br \/>\n    }<\/p>\n<p>    # \u8bbf\u95ee\u65e5\u5fd7\u548c\u9519\u8bef\u65e5\u5fd7<br \/>\n    access_log  \/www\/wwwlogs\/hexo_blog_access.log;<br \/>\n    error_log   \/www\/wwwlogs\/hexo_blog_error.log;<br \/>\n}<\/p>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u6298\u817e\u4e86\u4e00\u5708&#xff0c;\u603b\u7b97\u662f\u6210\u529f\u4e86&#xff0c;\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d&#xff0c;\u57fa\u672c\u719f\u6089\u4e86\u7f51\u7ad9\u90e8\u7f72\u7684\u6d41\u7a0b&#xff0c;\u8d2d\u4e70\u57df\u540d\u3001\u5907\u6848\u3001\u8bbe\u7f6e\u8bc1\u4e66&#xff0c;\u5b9d\u5854\u3001nginx \u914d\u7f6e\u3002\u7b2c\u4e00\u6b21\u505a\u611f\u89c9\u975e\u5e38\u9ebb\u70e6&#xff0c;\u5b8c\u6210\u4e4b\u540e\u68b3\u7406\u4e00\u904d\u89c9\u5f97\u6536\u83b7\u4e86\u4e0d\u5c11&#xff0c;\u5bf9 liunx\u3001\u5b9d\u5854\u30011panel \u66f4\u611f\u5174\u8da3\u4e86&#xff0c;\u53e6\u5916\u8fc7\u7a0b\u4e2d\u8fd8\u8fdb\u4e00\u6b65\u4e86\u89e3 hugo\u3001astro\u3001Docusaurus \u7b49\u7f51\u7ad9\u6846\u67b6\u7684\u90e8\u7f72&#xff0c;\u5bf9\u6bd4\u4e4b\u540e\u8fd8\u662f\u575a\u6301 obsidian&#043;hexo \u7684\u7b14\u8bb0\u6d41\u7a0b&#xff0c;\u7406\u7531\u662f obsidian \u662f\u6211\u4e3b\u529b\u7684\u7b14\u8bb0\u8f6f\u4ef6&#xff0c;\u4e0d\u7528\u66f4\u6362\u6587\u6863\u7684\u5c5e\u6027&#xff0c;\u4e0d\u7528\u66f4\u6362\u6587\u4ef6\u5939&#xff0c;\u52a0\u4e0ahexo \u914d\u7f6e\u597d\u540e&#xff0c;\u4e09\u8fde\u914d\u5408GitHub page \u6216\u8005netlify \u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u7684\u90e8\u7f72\u3002<\/p>\n<p>\u603b\u4e4b&#xff0c;\u6574\u4e2a\u8fc7\u7a0b\u4e3b\u8981\u7684\u6536\u83b7\u521d\u6b65\u662f\u4e86\u89e3\u4e86Linux \u9879\u76ee\u90e8\u7f72\u76f8\u5173\u77e5\u8bc6\u3002<\/p>\n<h3>\u53c2\u8003\u8d44\u6599<\/h3>\n<p>https:\/\/blog.csdn.net\/weixin_44975887\/article\/details\/117267259<\/p>\n<h3>\u5df2\u90e8\u7f72\u535a\u5ba2<\/h3>\n<p>\u6b22\u8fce\u6536\u85cf&#xff0c;\u6709\u4ec0\u4e48\u95ee\u9898\u53ef\u4ee5\u5728\u516c\u4f17\u53f7\u540e\u7559\u8a00~<\/p>\n<p>https:\/\/wenmao.xyz\/<br \/>\nhttps:\/\/wenmaochen.netlify.app\/<br \/>\nhttps:\/\/maoyu92.github.io\/ <\/p>\n<h3>BY<\/h3>\n<p>\u7eaf\u4e2a\u4eba\u7ecf\u9a8c&#xff0c;\u5982\u6709\u5e2e\u52a9&#xff0c;\u8bf7\u6536\u85cf\u70b9\u8d5e&#xff0c;\u5982\u9700\u8f6c\u8f7d&#xff0c;\u8bf7\u6ce8\u660e\u51fa\u5904\u3002\u5fae\u4fe1\u516c\u4f17\u53f7&#xff1a;\u73af\u5883\u732b erCSDN : \u7ec6\u8282\u5904\u6709\u795e\u660e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb930\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u4e4b\u524d\u7528Hexo\u3001GitHub Pages\u3001netlify \u642d\u5efa\u5e76\u6258\u7ba1\u6211\u7684\u4e2a\u4eba\u535a\u5ba2\u3002\u5c3d\u7ba1\u8fd9\u79cd\u65b9\u5f0f\u6781\u4e3a\u4fbf\u6377\uff0c\u4f46\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6\u65f6\u5e38\u53d7\u9650\u3002\u6700\u8fd1\u4e70\u4e86\u4e2a\u670d\u52a1\u5668\uff0c\u521a\u597d\u5b66\u4e60 Linux \u548c Web \u90e8\u7f72\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u672c\u6587\u8bb0\u5f55\u4e0bhexo \u5982\u4f55\u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub\u3002\u6298\u817e\u4e86\u4e00\u5708\uff0c\u603b\u7b97\u662f\u6210\u529f\u4e86\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u57fa\u672c\u719f\u6089\u4e86\u7f51\u7ad9\u90e8\u7f72\u7684\u6d41\u7a0b\uff0c\u8d2d\u4e70\u57df\u540d\u3001\u5907\u6848\u3001\u8bbe\u7f6e\u8bc1\u4e66\uff0c\u5b9d\u5854\u3001nginx \u914d\u7f6e\u3002_github\u90e8\u7f72hexo<\/p>\n","protected":false},"author":2,"featured_media":28777,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92,371,1897,1599,43,124],"topic":[],"class_list":["post-28780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github","tag-371","tag-1897","tag-1599","tag-43","tag-124"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/28780.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb930\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u4e4b\u524d\u7528Hexo\u3001GitHub Pages\u3001netlify \u642d\u5efa\u5e76\u6258\u7ba1\u6211\u7684\u4e2a\u4eba\u535a\u5ba2\u3002\u5c3d\u7ba1\u8fd9\u79cd\u65b9\u5f0f\u6781\u4e3a\u4fbf\u6377\uff0c\u4f46\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6\u65f6\u5e38\u53d7\u9650\u3002\u6700\u8fd1\u4e70\u4e86\u4e2a\u670d\u52a1\u5668\uff0c\u521a\u597d\u5b66\u4e60 Linux \u548c Web \u90e8\u7f72\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u672c\u6587\u8bb0\u5f55\u4e0bhexo \u5982\u4f55\u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub\u3002\u6298\u817e\u4e86\u4e00\u5708\uff0c\u603b\u7b97\u662f\u6210\u529f\u4e86\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u57fa\u672c\u719f\u6089\u4e86\u7f51\u7ad9\u90e8\u7f72\u7684\u6d41\u7a0b\uff0c\u8d2d\u4e70\u57df\u540d\u3001\u5907\u6848\u3001\u8bbe\u7f6e\u8bc1\u4e66\uff0c\u5b9d\u5854\u3001nginx \u914d\u7f6e\u3002_github\u90e8\u7f72hexo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/28780.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T18:46:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419184616-6803ef781c570.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28780.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/28780.html\",\"name\":\"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T18:46:18+00:00\",\"dateModified\":\"2025-04-19T18:46:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/28780.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/28780.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28780.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/28780.html","og_locale":"zh_CN","og_type":"article","og_title":"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb930\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u4e4b\u524d\u7528Hexo\u3001GitHub Pages\u3001netlify \u642d\u5efa\u5e76\u6258\u7ba1\u6211\u7684\u4e2a\u4eba\u535a\u5ba2\u3002\u5c3d\u7ba1\u8fd9\u79cd\u65b9\u5f0f\u6781\u4e3a\u4fbf\u6377\uff0c\u4f46\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6\u65f6\u5e38\u53d7\u9650\u3002\u6700\u8fd1\u4e70\u4e86\u4e2a\u670d\u52a1\u5668\uff0c\u521a\u597d\u5b66\u4e60 Linux \u548c Web \u90e8\u7f72\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u672c\u6587\u8bb0\u5f55\u4e0bhexo \u5982\u4f55\u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub\u3002\u6298\u817e\u4e86\u4e00\u5708\uff0c\u603b\u7b97\u662f\u6210\u529f\u4e86\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u57fa\u672c\u719f\u6089\u4e86\u7f51\u7ad9\u90e8\u7f72\u7684\u6d41\u7a0b\uff0c\u8d2d\u4e70\u57df\u540d\u3001\u5907\u6848\u3001\u8bbe\u7f6e\u8bc1\u4e66\uff0c\u5b9d\u5854\u3001nginx \u914d\u7f6e\u3002_github\u90e8\u7f72hexo","og_url":"https:\/\/www.wsisp.com\/helps\/28780.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T18:46:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419184616-6803ef781c570.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/28780.html","url":"https:\/\/www.wsisp.com\/helps\/28780.html","name":"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T18:46:18+00:00","dateModified":"2025-04-19T18:46:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/28780.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/28780.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/28780.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"hexo \u540c\u6b65\u90e8\u7f72\u670d\u52a1\u5668\u548cGitHub \u8d85\u8be6\u7ec6\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/28780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=28780"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/28780\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/28777"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=28780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=28780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=28780"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=28780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}