{"id":6773,"date":"2020-04-19T17:13:23","date_gmt":"2020-04-19T09:13:23","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=6773"},"modified":"2020-04-19T17:13:38","modified_gmt":"2020-04-19T09:13:38","slug":"github","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/github.html","title":{"rendered":"\u56fd\u5185\u670d\u52a1\u5668GitHub\u4e0b\u8f7d\u901f\u5ea6\u6162\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p>\u81ea\u5df1\u7528VPS\u642d\u5efa\u7f51\u7ad9\u7684\u8bdd\uff0c\u76f8\u4fe1\u4f60\u6709\u65f6\u5019\u4e5f\u4f1a\u53bb\u5b89\u88c5\u4e00\u4e9bGitHub\u4e0a\u9762\u7684\u5f00\u6e90\u7a0b\u5e8f\u3002\u7136\u540e\u56fd\u5185\u7684\u4f8b\u5982\u963f\u91cc\u4e91\u548c\u817e\u8baf\u4e91\u670d\u52a1\u5668\uff0c\u4eceGithub\u4e0a\u4e0b\u8f7d\u8d44\u6e90\u7684\u901f\u5ea6\u975e\u5e38\u6162\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u65b9\u6cd5\u95f4\u63a5\u89e3\u51b3\u4e00\u90e8\u5206\u95ee\u9898\u3002<\/p>\n<p><strong>\u8bbf\u95ee\u6162\u7684\u539f\u56e0\uff1a<\/strong><\/p>\n<p>\u56fd\u5185\u90e8\u5206\u5730\u533a\u672c\u8eab\u8bbf\u95eeGithub\u7684\u901f\u5ea6\u5c31\u6162\uff0c\u539f\u56e0\u5c31\u662f\u6c34\uff08bei\uff09\u571f(gan)\u4e0d\uff08rao\uff09\u670d\u5457\u3002<\/p>\n<p><strong>\u89e3\u51b3\u7684\u601d\u8def\uff1a<\/strong><\/p>\n<p>Github\u5728\u5168\u7403\u662f\u6709\u5f88\u591a\u4e2a\u670d\u52a1\u5668\u7684\uff0c\u6211\u4eec\u53ea\u9700\u8981\u627e\u5230\u4f60\u670d\u52a1\u5668\u8bbf\u95eeGithub\u670d\u52a1\u5668\u6bd4\u8f83\u5feb\u7684IP\uff0c\u7136\u540e\u81ea\u5df1\u6307\u5b9ahosts\u7684\u89e3\u6790\u8bb0\u5f55\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><strong>\u5177\u4f53\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u901a\u8fc7\u4e00\u4e9bip\u67e5\u8be2\u5de5\u5177\uff0c\u67e5\u8be2\u5176\u4ed6\u5730\u533a\u6216\u8005\u56fd\u5bb6\u5bf9Github\u7684\u89e3\u6790IP\uff0c\u7136\u540e\u7f16\u8f91\u670d\u52a1\u5668\u7684hosts\u6587\u4ef6\u3002<\/p>\n<p>\u8981\u67e5\u8be2\u7684\u89e3\u6790\u8bb0\u5f55\u4e3a\uff1a<\/p>\n<ol>\n<li>github.com<\/li>\n<li>github.global.ssl.fastly.net<\/li>\n<\/ol>\n<p>\u7136\u540e\u4fee\u6539Linux\u670d\u52a1\u5668\u7684hosts\u6587\u4ef6\u3002<\/p>\n<pre>vim \/etc\/hosts<\/pre>\n<p>\u8f93\u5165i\u540e\u63d2\u5165\u4e0b\u9762\u7684\u5185\u5bb9\u3002<\/p>\n<pre>140.82.118.4\t\tgithub.com\r\n151.101.1.194\t\tgithub.global.ssl.fastly.net<\/pre>\n<p>\u7136\u540e\u6309ESC\u952e\uff0c\u8f93\u5165:wq\u4fdd\u5b58<\/p>\n<p>\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u901f\u5ea6\u4f1a\u548c\u4e4b\u524d\u6709\u660e\u663e\u53d8\u5316\u3002<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;6773&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u56fd\u5185\u670d\u52a1\u5668GitHub\u4e0b\u8f7d\u901f\u5ea6\u6162\u7684\u89e3\u51b3\u529e\u6cd5&quot;,&quot;width&quot;:&quot;138&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 138px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5df1\u7528VPS\u642d\u5efa\u7f51\u7ad9\u7684\u8bdd\uff0c\u76f8\u4fe1\u4f60\u6709\u65f6\u5019\u4e5f\u4f1a\u53bb\u5b89\u88c5\u4e00\u4e9bGitHub\u4e0a\u9762\u7684\u5f00\u6e90\u7a0b\u5e8f\u3002\u7136\u540e\u56fd\u5185\u7684\u4f8b\u5982\u963f\u91cc\u4e91\u548c\u817e\u8baf\u4e91\u670d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6774,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u56fd\u5185\u670d\u52a1\u5668GitHub\u4e0b\u8f7d\u901f\u5ea6\u6162\u7684\u89e3\u51b3\u529e\u6cd5 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u81ea\u5df1\u7528VPS\u642d\u5efa\u7f51\u7ad9\u7684\u8bdd\uff0c\u76f8\u4fe1\u4f60\u6709\u65f6\u5019\u4e5f\u4f1a\u53bb\u5b89\u88c5\u4e00\u4e9bGitHub\u4e0a\u9762\u7684\u5f00\u6e90\u7a0b\u5e8f\u3002\u7136\u540e\u56fd\u5185\u7684\u4f8b\u5982\u963f\u91cc\u4e91\u548c\u817e\u8baf\u4e91\u670d\u52a1\u5668\uff0c\u4eceGithub\u4e0a\u4e0b\u8f7d\u8d44\u6e90\u7684\u901f\u5ea6\u975e\u5e38\u6162\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u65b9\u6cd5\u95f4\u63a5\u89e3\u51b3\u4e00\u90e8\u5206\u95ee\u9898\u3002 \u8bbf\u95ee\u6162\u7684\u539f\u56e0\uff1a \u56fd\u5185\u90e8\u5206\u5730\u533a\u672c\u8eab\u8bbf\u95eeGithub\u7684\u901f\u5ea6\u5c31\u6162\uff0c\u539f\u56e0\u5c31\u662f\u6c34\uff08bei\uff09\u571f(gan)\u4e0d\uff08rao\uff09\u670d\u5457\u3002 \u89e3\u51b3\u7684\u601d\u8def"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-6773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/6773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=6773"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/6773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/6774"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=6773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=6773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=6773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}