{"id":1807,"date":"2017-08-18T17:16:11","date_gmt":"2017-08-18T09:16:11","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1807"},"modified":"2017-08-18T17:16:11","modified_gmt":"2017-08-18T09:16:11","slug":"%e8%a7%a3%e5%86%b3%e6%89%a7%e8%a1%8chexo-server%e5%87%ba%e7%8e%b0usage-hexo-%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1807","title":{"rendered":"\u89e3\u51b3\u6267\u884chexo server\u51fa\u73b0Usage: hexo \u7684\u95ee\u9898"},"content":{"rendered":"<p>\n\t\u4eca\u5929\u5b89\u88c5\u4e86hexo\u540e\uff0c\u6211\u5c31\u6267\u884chexo server\u547d\u4ee4\uff0c\u60f3\u8ba9hexo\u8dd1\u8d77\u6765\u770b\u770b\u6548\u679c\u3002\n<\/p>\n<p>\n\t\u4f46\u662f\u5728\u6267\u884chexo server\u540e\u51fa\u73b0\u4e86&ldquo;Usage: hexo &lt;command&gt;&rdquo;\u7684\u63d0\u793a\u3002\u8be6\u60c5\u89c1\u4e0b\u9762\u5185\u5bb9\uff1a\n<\/p>\n<pre class=\"brush:plain;\">\r\n$ hexo server\r\nUsage: hexo &lt;command&gt;\r\n\r\nCommands:\r\n  help     Get help on a command.\r\n  init     Create a new Hexo folder.\r\n  version  Display version information.\r\n\r\nGlobal Options:\r\n  --config  Specify config file instead of using _config.yml\r\n  --cwd     Specify the CWD\r\n  --debug   Display all verbose messages in the terminal\r\n  --draft   Display draft posts\r\n  --safe    Disable all plugins and scripts\r\n  --silent  Hide output on console\r\n\r\nFor more help, you can use &#039;hexo help [command]&#039; for the detailed information\r\nor you can check the docs: http:\/\/hexo.io\/docs\/<\/pre>\n<p>\n\t\u51fa\u73b0\u8fd9\u4e2a\u7684\u539f\u56e0\uff0c\u6709\u7684\u8bf4\u662f\u56e0\u4e3a\u6ca1\u6709\u5b89\u88c5hexo-server\u3002\u4f46\u662f\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5hexo-server\u540e\u8fd8\u662f\u4e0d\u884c\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nnpm install hexo-server --save<\/pre>\n<p>\n\t\u6700\u540e\u6211\u76f8\u4fe1\u7684\u770b\u4e86\u5b98\u65b9\u6587\u6863\u540e\uff0c\u53d1\u73b0\u6267\u884c&ldquo;hexo init C:\/hexo&rdquo;\u540e\uff0c\u6ca1\u6709\u5230C:\/hexo\u76ee\u5f55\u4e2d\u6267\u884c&ldquo;npm install&rdquo;\u547d\u4ee4\uff0c\u56e0\u6b64\u4ea7\u751f\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002\u6b63\u786e\u7684\u6267\u884c\u987a\u5e8f\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:bash;\">\r\nhexo init C:\/hexo\r\ncd C:\/hexo\r\nnpm install<\/pre>\n<p>\n\t\u7136\u540e\u5728\u6267\u884chexo server\u547d\u4ee4\uff0c\u5373\u53ef\u6210\u529f\u542f\u52a8\u670d\u52a1\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nhexo server\r\nINFO  Start processing\r\nINFO  Hexo is running at http:\/\/localhost:4000\/. Press Ctrl+C to stop.\r\n<\/pre>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1807\">\u89e3\u51b3\u6267\u884chexo server\u51fa\u73b0Usage: hexo \u7684\u95ee\u9898<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5b89\u88c5\u4e86hexo\u540e\uff0c\u6211\u5c31\u6267\u884chexo server\u547d\u4ee4\uff0c\u60f3\u8ba9hexo\u8dd1\u8d77\u6765\u770b\u770b\u6548\u679c\u3002 \u4f46\u662f\u5728\u6267\u884chexo s [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[1437,1439,1415,1433],"class_list":["post-1807","post","type-post","status-publish","format-standard","hentry","category-html5","category-yyzt","tag-github","tag-hexo","tag-node-js","tag-npm"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1807"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1807\/revisions"}],"predecessor-version":[{"id":1808,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1807\/revisions\/1808"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}