参考资料

https://www.jianshu.com/p/fd233d967e88
https://segmentfault.com/a/1190000005624504
https://github.com/theme-next/hexo-theme-next
https://zhiho.github.io/2015/09/29/hexo-next/
http://theme-next.iissnan.com/getting-started.html
https://blog.csdn.net/q2158798/article/details/82354154
https://www.jianshu.com/p/f068b8a36d84

基础环境

npm

[root@wordpross ~]# npm -v
3.10.10

node

[root@wordpross ~]# node -v
v6.17.1

hexo

[root@wordpross ~]# hexo version
hexo-cli: 2.0.0
os: Linux 3.10.0-862.14.4.el7.x86_64 linux x64
http_parser: 2.8.0
node: 6.17.1
v8: 5.1.281.111
uv: 1.30.1
zlib: 1.2.7
ares: 1.10.1-DEV
icu: 50.1.2
modules: 48
napi: 3
openssl: 1.0.2k-fips

初始化hexo

[root@wordpross ~]# hexo init blog
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
Cloning into '/root/blog'...
remote: Enumerating objects: 77, done.
remote: Total 77 (delta 0), reused 0 (delta 0), pack-reused 77
Unpacking objects: 100% (77/77), done.
Submodule 'themes/landscape' (https://github.com/hexojs/hexo-theme-landscape.git) registered for path 'themes/landscape'
Cloning into 'themes/landscape'...
remote: Enumerating objects: 43, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 953 (delta 19), reused 20 (delta 8), pack-reused 910
Receiving objects: 100% (953/953), 3.16 MiB | 155.00 KiB/s, done.
Resolving deltas: 100% (507/507), done.
Submodule path 'themes/landscape': checked out '73a23c51f8487cfcd7c6deec96ccc7543960d350'
INFO  Install dependencies
npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
hexo-site@0.0.0 /root/blog
├─┬ hexo@3.9.0
│ ├── abbrev@1.1.1
│ ├── archy@1.0.0
│ ├── bluebird@3.5.5
│ ├─┬ chalk@2.4.2
│ │ ├─┬ ansi-styles@3.2.1
│ │ │ └─┬ color-convert@1.9.3
│ │ │   └── color-name@1.1.3
│ │ ├── escape-string-regexp@1.0.5
│ │ └─┬ supports-color@5.5.0
│ │   └── has-flag@3.0.0
│ ├─┬ cheerio@0.22.0
│ │ ├─┬ css-select@1.2.0
│ │ │ ├── boolbase@1.0.0
│ │ │ ├── css-what@2.1.3
│ │ │ ├── domutils@1.5.1
│ │ │ └── nth-check@1.0.2
│ │ ├─┬ dom-serializer@0.1.1
│ │ │ └── domelementtype@1.3.1
│ │ ├── entities@1.1.2
│ │ ├─┬ htmlparser2@3.10.1
│ │ │ ├── domhandler@2.4.2
│ │ │ ├── inherits@2.0.4
│ │ │ └─┬ readable-stream@3.4.0
│ │ │   ├── string_decoder@1.2.0
│ │ │   └── util-deprecate@1.0.2
│ │ ├── lodash.assignin@4.2.0
│ │ ├── lodash.bind@4.2.1
│ │ ├── lodash.defaults@4.2.0
│ │ ├── lodash.filter@4.6.0
│ │ ├── lodash.flatten@4.4.0
│ │ ├── lodash.foreach@4.5.0
│ │ ├── lodash.map@4.6.0
│ │ ├── lodash.merge@4.6.2
│ │ ├── lodash.pick@4.4.0
│ │ ├── lodash.reduce@4.6.0
│ │ ├── lodash.reject@4.6.0
│ │ └── lodash.some@4.6.0
│ ├─┬ hexo-cli@2.0.0
│ │ ├── acorn@6.2.1
│ │ ├── command-exists@1.2.8
│ │ └── minimist@1.2.0
│ ├── hexo-front-matter@0.2.3
│ ├─┬ hexo-fs@1.0.2
│ │ ├─┬ chokidar@2.1.6
│ │ │ ├─┬ anymatch@2.0.0
│ │ │ │ ├─┬ micromatch@3.1.10
│ │ │ │ │ ├── arr-diff@4.0.0
│ │ │ │ │ ├─┬ define-property@2.0.2
│ │ │ │ │ │ └─┬ is-descriptor@1.0.2
│ │ │ │ │ │   ├── is-accessor-descriptor@1.0.0
│ │ │ │ │ │   └── is-data-descriptor@1.0.0
│ │ │ │ │ ├─┬ extend-shallow@3.0.2
│ │ │ │ │ │ ├── assign-symbols@1.0.0
│ │ │ │ │ │ └── is-extendable@1.0.1
│ │ │ │ │ ├─┬ extglob@2.0.4
│ │ │ │ │ │ ├─┬ define-property@1.0.0
│ │ │ │ │ │ │ └─┬ is-descriptor@1.0.2
│ │ │ │ │ │ │   ├── is-accessor-descriptor@1.0.0
│ │ │ │ │ │ │   └── is-data-descriptor@1.0.0
│ │ │ │ │ │ ├─┬ expand-brackets@2.1.4
│ │ │ │ │ │ │ ├── define-property@0.2.5
│ │ │ │ │ │ │ ├── extend-shallow@2.0.1
│ │ │ │ │ │ │ └── posix-character-classes@0.1.1
│ │ │ │ │ │ └── extend-shallow@2.0.1
│ │ │ │ │ ├── fragment-cache@0.2.1
│ │ │ │ │ ├── kind-of@6.0.2
│ │ │ │ │ ├─┬ nanomatch@1.2.13
│ │ │ │ │ │ └── is-windows@1.0.2
│ │ │ │ │ ├── object.pick@1.3.0
│ │ │ │ │ └── regex-not@1.0.2
│ │ │ │ └─┬ normalize-path@2.1.1
│ │ │ │   └── remove-trailing-separator@1.1.0
│ │ │ ├── async-each@1.0.3
│ │ │ ├─┬ braces@2.3.2
│ │ │ │ ├── arr-flatten@1.1.0
│ │ │ │ ├── array-unique@0.3.2
│ │ │ │ ├─┬ extend-shallow@2.0.1
│ │ │ │ │ └── is-extendable@0.1.1
│ │ │ │ ├─┬ fill-range@4.0.0
│ │ │ │ │ ├── extend-shallow@2.0.1
│ │ │ │ │ ├─┬ is-number@3.0.0
│ │ │ │ │ │ └─┬ kind-of@3.2.2
│ │ │ │ │ │   └── is-buffer@1.1.6
│ │ │ │ │ ├── repeat-string@1.6.1
│ │ │ │ │ └── to-regex-range@2.1.1
│ │ │ │ ├── repeat-element@1.1.3
│ │ │ │ ├─┬ snapdragon@0.8.2
│ │ │ │ │ ├─┬ base@0.11.2
│ │ │ │ │ │ ├─┬ cache-base@1.0.1
│ │ │ │ │ │ │ ├─┬ collection-visit@1.0.0
│ │ │ │ │ │ │ │ ├── map-visit@1.0.0
│ │ │ │ │ │ │ │ └── object-visit@1.0.1
│ │ │ │ │ │ │ ├── get-value@2.0.6
│ │ │ │ │ │ │ ├─┬ has-value@1.0.0
│ │ │ │ │ │ │ │ └─┬ has-values@1.0.0
│ │ │ │ │ │ │ │   └── kind-of@4.0.0
│ │ │ │ │ │ │ ├─┬ set-value@2.0.1
│ │ │ │ │ │ │ │ └── extend-shallow@2.0.1
│ │ │ │ │ │ │ ├─┬ to-object-path@0.3.0
│ │ │ │ │ │ │ │ └── kind-of@3.2.2
│ │ │ │ │ │ │ ├── union-value@1.0.1
│ │ │ │ │ │ │ └─┬ unset-value@1.0.0
│ │ │ │ │ │ │   └─┬ has-value@0.3.1
│ │ │ │ │ │ │     ├── has-values@0.1.4
│ │ │ │ │ │ │     └── isobject@2.1.0
│ │ │ │ │ │ ├─┬ class-utils@0.3.6
│ │ │ │ │ │ │ ├── arr-union@3.1.0
│ │ │ │ │ │ │ ├── define-property@0.2.5
│ │ │ │ │ │ │ └─┬ static-extend@0.1.2
│ │ │ │ │ │ │   ├── define-property@0.2.5
│ │ │ │ │ │ │   └─┬ object-copy@0.1.0
│ │ │ │ │ │ │     ├── copy-descriptor@0.1.1
│ │ │ │ │ │ │     ├── define-property@0.2.5
│ │ │ │ │ │ │     └── kind-of@3.2.2
│ │ │ │ │ │ ├── component-emitter@1.3.0
│ │ │ │ │ │ ├─┬ define-property@1.0.0
│ │ │ │ │ │ │ └─┬ is-descriptor@1.0.2
│ │ │ │ │ │ │   ├── is-accessor-descriptor@1.0.0
│ │ │ │ │ │ │   └── is-data-descriptor@1.0.0
│ │ │ │ │ │ ├─┬ mixin-deep@1.3.2
│ │ │ │ │ │ │ ├── for-in@1.0.2
│ │ │ │ │ │ │ └── is-extendable@1.0.1
│ │ │ │ │ │ └── pascalcase@0.1.1
│ │ │ │ │ ├─┬ define-property@0.2.5
│ │ │ │ │ │ └─┬ is-descriptor@0.1.6
│ │ │ │ │ │   ├─┬ is-accessor-descriptor@0.1.6
│ │ │ │ │ │   │ └── kind-of@3.2.2
│ │ │ │ │ │   ├─┬ is-data-descriptor@0.1.4
│ │ │ │ │ │   │ └── kind-of@3.2.2
│ │ │ │ │ │   └── kind-of@5.1.0
│ │ │ │ │ ├── extend-shallow@2.0.1
│ │ │ │ │ ├── map-cache@0.2.2
│ │ │ │ │ ├─┬ source-map-resolve@0.5.2
│ │ │ │ │ │ ├── atob@2.1.2
│ │ │ │ │ │ ├── decode-uri-component@0.2.0
│ │ │ │ │ │ ├── resolve-url@0.2.1
│ │ │ │ │ │ ├── source-map-url@0.4.0
│ │ │ │ │ │ └── urix@0.1.0
│ │ │ │ │ └── use@3.1.1
│ │ │ │ ├─┬ snapdragon-node@2.1.1
│ │ │ │ │ ├─┬ define-property@1.0.0
│ │ │ │ │ │ └─┬ is-descriptor@1.0.2
│ │ │ │ │ │   ├── is-accessor-descriptor@1.0.0
│ │ │ │ │ │   └── is-data-descriptor@1.0.0
│ │ │ │ │ └─┬ snapdragon-util@3.0.1
│ │ │ │ │   └── kind-of@3.2.2
│ │ │ │ ├── split-string@3.1.0
│ │ │ │ └─┬ to-regex@3.0.2
│ │ │ │   └─┬ safe-regex@1.1.0
│ │ │ │     └── ret@0.1.15
│ │ │ ├─┬ glob-parent@3.1.0
│ │ │ │ ├── is-glob@3.1.0
│ │ │ │ └── path-dirname@1.0.2
│ │ │ ├─┬ is-binary-path@1.0.1
│ │ │ │ └── binary-extensions@1.13.1
│ │ │ ├─┬ is-glob@4.0.1
│ │ │ │ └── is-extglob@2.1.1
│ │ │ ├── normalize-path@3.0.0
│ │ │ ├── path-is-absolute@1.0.1
│ │ │ ├─┬ readdirp@2.2.1
│ │ │ │ └─┬ readable-stream@2.3.6
│ │ │ │   ├── core-util-is@1.0.2
│ │ │ │   ├── isarray@1.0.0
│ │ │ │   ├── process-nextick-args@2.0.1
│ │ │ │   └── string_decoder@1.1.1
│ │ │ └── upath@1.1.2
│ │ └── graceful-fs@4.2.0
│ ├─┬ hexo-i18n@0.2.1
│ │ └── sprintf-js@1.0.3
│ ├─┬ hexo-log@0.2.0
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── strip-ansi@3.0.1
│ │ │ └── supports-color@2.0.0
│ │ └─┬ hexo-bunyan@1.0.0
│ │   ├─┬ mv@2.1.1
│ │   │ ├── ncp@2.0.0
│ │   │ └─┬ rimraf@2.4.5
│ │   │   └── glob@6.0.4
│ │   └── safe-json-stringify@1.2.0
│ ├─┬ hexo-util@0.6.3
│ │ ├─┬ camel-case@3.0.0
│ │ │ ├─┬ no-case@2.3.2
│ │ │ │ └── lower-case@1.1.4
│ │ │ └── upper-case@1.1.3
│ │ ├─┬ cross-spawn@4.0.2
│ │ │ ├─┬ lru-cache@4.1.5
│ │ │ │ ├── pseudomap@1.0.2
│ │ │ │ └── yallist@2.1.2
│ │ │ └─┬ which@1.3.1
│ │ │   └── isexe@2.0.0
│ │ ├── highlight.js@9.15.8
│ │ ├── html-entities@1.2.1
│ │ └── striptags@2.2.1
│ ├─┬ js-yaml@3.13.1
│ │ ├── argparse@1.0.10
│ │ └── esprima@4.0.1
│ ├── lodash@4.17.15
│ ├─┬ minimatch@3.0.4
│ │ └─┬ brace-expansion@1.1.11
│ │   ├── balanced-match@1.0.0
│ │   └── concat-map@0.0.1
│ ├── moment@2.24.0
│ ├── moment-timezone@0.5.26
│ ├─┬ nunjucks@3.2.0
│ │ ├── a-sync-waterfall@1.0.1
│ │ ├── asap@2.0.6
│ │ └─┬ yargs@3.32.0
│ │   ├── camelcase@2.1.1
│ │   ├─┬ cliui@3.2.0
│ │   │ ├── strip-ansi@3.0.1
│ │   │ └─┬ wrap-ansi@2.1.0
│ │   │   └── strip-ansi@3.0.1
│ │   ├── decamelize@1.2.0
│ │   ├─┬ os-locale@1.4.0
│ │   │ └─┬ lcid@1.0.0
│ │   │   └── invert-kv@1.0.0
│ │   ├─┬ string-width@1.0.2
│ │   │ ├── code-point-at@1.1.0
│ │   │ ├─┬ is-fullwidth-code-point@1.0.0
│ │   │ │ └── number-is-nan@1.0.1
│ │   │ └── strip-ansi@3.0.1
│ │   ├── window-size@0.1.4
│ │   └── y18n@3.2.1
│ ├── pretty-hrtime@1.0.3
│ ├─┬ resolve@1.11.1
│ │ └── path-parse@1.0.6
│ ├─┬ strip-ansi@5.2.0
│ │ └── ansi-regex@4.1.0
│ ├── strip-indent@2.0.0
│ ├─┬ swig-extras@0.0.1
│ │ └─┬ markdown@0.5.0
│ │   └── nopt@2.1.2
│ ├─┬ swig-templates@2.0.3
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.3
│ │ └─┬ uglify-js@2.6.0
│ │   ├── async@0.2.10
│ │   ├── source-map@0.5.7
│ │   ├── uglify-to-browserify@1.0.2
│ │   └─┬ yargs@3.10.0
│ │     ├── camelcase@1.2.1
│ │     ├─┬ cliui@2.1.0
│ │     │ ├─┬ center-align@0.1.3
│ │     │ │ ├─┬ align-text@0.1.4
│ │     │ │ │ ├── kind-of@3.2.2
│ │     │ │ │ └── longest@1.0.1
│ │     │ │ └── lazy-cache@1.0.4
│ │     │ ├── right-align@0.1.3
│ │     │ └── wordwrap@0.0.2
│ │     └── window-size@0.1.0
│ ├── text-table@0.2.0
│ ├─┬ tildify@1.2.0
│ │ └── os-homedir@1.0.2
│ ├── titlecase@1.1.3
│ └─┬ warehouse@2.2.0
│   ├─┬ cuid@1.3.8
│   │ ├── browser-fingerprint@0.0.1
│   │ ├── core-js@1.2.7
│   │ └── node-fingerprint@0.0.2
│   ├─┬ is-plain-object@2.0.4
│   │ └── isobject@3.0.1
│   └─┬ JSONStream@1.3.5
│     ├── jsonparse@1.3.1
│     └── through@2.3.8
├─┬ hexo-generator-archive@0.1.5
│ ├─┬ hexo-pagination@0.0.2
│ │ └── utils-merge@1.0.1
│ └── object-assign@2.1.1
├── hexo-generator-category@0.1.3
├─┬ hexo-generator-index@0.2.1
│ └── object-assign@4.1.1
├─┬ hexo-generator-tag@0.2.0
│ └── object-assign@4.1.1
├─┬ hexo-renderer-ejs@0.3.1
│ ├── ejs@2.6.2
│ └── object-assign@4.1.1
├─┬ hexo-renderer-marked@1.0.1
│ └── marked@0.6.3
├─┬ hexo-renderer-stylus@0.3.3
│ ├── nib@1.1.2
│ └─┬ stylus@0.54.5
│   ├── css-parse@1.7.0
│   ├─┬ debug@2.6.9
│   │ └── ms@2.0.0
│   ├─┬ glob@7.0.6
│   │ ├── fs.realpath@1.0.0
│   │ ├─┬ inflight@1.0.6
│   │ │ └── wrappy@1.0.2
│   │ └── once@1.4.0
│   ├─┬ mkdirp@0.5.1
│   │ └── minimist@0.0.8
│   ├── sax@0.5.8
│   └─┬ source-map@0.1.43
│     └── amdefine@1.0.1
└─┬ hexo-server@0.3.3 ├─┬ chalk@1.1.3 │ ├── ansi-styles@2.2.1 │ ├─┬ has-ansi@2.0.0 │ │ └── ansi-regex@2.1.1 │ ├── strip-ansi@3.0.1 │ └── supports-color@2.0.0 ├─┬ compression@1.7.4 │ ├─┬ accepts@1.3.7 │ │ ├── mime-types@2.1.24 │ │ └── negotiator@0.6.2 │ ├── bytes@3.0.0 │ ├─┬ compressible@2.0.17 │ │ └── mime-db@1.40.0 │ ├── on-headers@1.0.2 │ ├── safe-buffer@5.1.2 │ └── vary@1.1.2 ├─┬ connect@3.7.0 │ ├─┬ finalhandler@1.1.2 │ │ ├── statuses@1.5.0 │ │ └── unpipe@1.0.0 │ └── parseurl@1.3.3 ├── mime@1.6.0 ├─┬ morgan@1.9.1 │ ├── basic-auth@2.0.1 │ ├── depd@1.1.2 │ └─┬ on-finished@2.3.0 │   └── ee-first@1.1.1 ├── object-assign@4.1.1 ├─┬ opn@5.5.0 │ └── is-wsl@1.1.0 └─┬ serve-static@1.14.1 ├── encodeurl@1.0.2 ├── escape-html@1.0.3 └─┬ send@0.17.1 ├── destroy@1.0.4 ├── etag@1.8.1 ├── fresh@0.5.2 ├─┬ http-errors@1.7.3 │ ├── setprototypeof@1.1.1 │ └── toidentifier@1.0.0 ├── ms@2.1.1 └── range-parser@1.2.1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
INFO  Start blogging with Hexo!

添加next主题

[root@wordpross ~]# cd blog
[root@wordpross blog]# ls
_config.yml  node_modules  package.json  scaffolds  source  themes
[root@wordpross blog]# git clone https://github.com/theme-next/hexo-theme-next.git themes/next
Cloning into 'themes/next'...
remote: Enumerating objects: 252, done.
remote: Counting objects: 100% (252/252), done.
remote: Compressing objects: 100% (198/198), done.
remote: Total 8469 (delta 59), reused 123 (delta 48), pack-reused 8217
Receiving objects: 100% (8469/8469), 5.90 MiB | 146.00 KiB/s, done.
Resolving deltas: 100% (5428/5428), done.

修改主配置文件及主题配置文件

[root@wordpross blog]# cp ../blog20190730/_config.yml ./
cp: overwrite ‘./_config.yml’? y
[root@wordpross blog]# cp ../blog20190730/themes/next/_config.yml themes/next/
cp: overwrite ‘themes/next/_config.yml’? y

安装wordpress迁移插件

[root@wordpross blog]# npm install hexo-migrator-wordpress --save
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
hexo-site@0.0.0 /root/blog
└─┬ hexo-migrator-wordpress@1.0.0 ├── async@0.9.2 ├─┬ request@2.88.0 │ ├── aws-sign2@0.7.0 │ ├── aws4@1.8.0 │ ├── caseless@0.12.0 │ ├─┬ combined-stream@1.0.8 │ │ └── delayed-stream@1.0.0 │ ├── extend@3.0.2 │ ├── forever-agent@0.6.1 │ ├─┬ form-data@2.3.3 │ │ └── asynckit@0.4.0 │ ├─┬ har-validator@5.1.3 │ │ ├─┬ ajv@6.10.2 │ │ │ ├── fast-deep-equal@2.0.1 │ │ │ ├── fast-json-stable-stringify@2.0.0 │ │ │ ├── json-schema-traverse@0.4.1 │ │ │ └─┬ uri-js@4.2.2 │ │ │   └── punycode@2.1.1 │ │ └── har-schema@2.0.0 │ ├─┬ http-signature@1.2.0 │ │ ├── assert-plus@1.0.0 │ │ ├─┬ jsprim@1.4.1 │ │ │ ├── extsprintf@1.3.0 │ │ │ ├── json-schema@0.2.3 │ │ │ └── verror@1.10.0 │ │ └─┬ sshpk@1.16.1 │ │   ├── asn1@0.2.4 │ │   ├── bcrypt-pbkdf@1.0.2 │ │   ├── dashdash@1.14.1 │ │   ├── ecc-jsbn@0.1.2 │ │   ├── getpass@0.1.7 │ │   ├── jsbn@0.1.1 │ │   ├── safer-buffer@2.1.2 │ │   └── tweetnacl@0.14.5 │ ├── is-typedarray@1.0.0 │ ├── isstream@0.1.2 │ ├── json-stringify-safe@5.0.1 │ ├── oauth-sign@0.9.0 │ ├── performance-now@2.1.0 │ ├── qs@6.5.2 │ ├─┬ tough-cookie@2.4.3 │ │ ├── psl@1.2.0 │ │ └── punycode@1.4.1 │ ├── tunnel-agent@0.6.0 │ └── uuid@3.3.2 ├─┬ turndown@4.0.2 │ └─┬ jsdom@11.12.0 │   ├── abab@2.0.0 │   ├── acorn@5.7.3 │   ├─┬ acorn-globals@4.3.2 │   │ └── acorn-walk@6.2.0 │   ├── array-equal@1.0.0 │   ├── cssom@0.3.8 │   ├── cssstyle@1.4.0 │   ├─┬ data-urls@1.1.0 │   │ └── whatwg-url@7.0.0 │   ├── domexception@1.0.1 │   ├─┬ escodegen@1.11.1 │   │ ├── esprima@3.1.3 │   │ ├── estraverse@4.2.0 │   │ ├── esutils@2.0.2 │   │ ├─┬ optionator@0.8.2 │   │ │ ├── deep-is@0.1.3 │   │ │ ├── fast-levenshtein@2.0.6 │   │ │ ├── levn@0.3.0 │   │ │ ├── prelude-ls@1.1.2 │   │ │ ├── type-check@0.3.2 │   │ │ └── wordwrap@1.0.0 │   │ └── source-map@0.6.1 │   ├── html-encoding-sniffer@1.0.2 │   ├── left-pad@1.3.0 │   ├── nwsapi@2.1.4 │   ├── parse5@4.0.0 │   ├── pn@1.1.0 │   ├─┬ request-promise-native@1.0.7 │   │ ├── request-promise-core@1.1.2 │   │ └── stealthy-require@1.1.1 │   ├── sax@1.2.4 │   ├── symbol-tree@3.2.4 │   ├─┬ w3c-hr-time@1.0.1 │   │ └── browser-process-hrtime@0.1.3 │   ├── webidl-conversions@4.0.2 │   ├─┬ whatwg-encoding@1.0.5 │   │ └── iconv-lite@0.4.24 │   ├── whatwg-mimetype@2.3.0 │   ├─┬ whatwg-url@6.5.0 │   │ ├── lodash.sortby@4.7.0 │   │ └── tr46@1.0.1 │   ├─┬ ws@5.2.2 │   │ └── async-limiter@1.0.0 │   └── xml-name-validator@3.0.0 └─┬ xml2js@0.4.2 └── xmlbuilder@13.0.2 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

导入wordpress数据

[root@wordpross blog]# hexo migrate wordpress ../WordPress.2019-07-29.xml
INFO  Analyzing ../WordPress.2019-07-29.xml...
INFO  Post found: 儒家佛教基督分别以什么来回报怨
INFO  Post found: 运维的独孤九剑
INFO  Post found: 跃迁:成为高手的技术
INFO  Post found: 素书浅注
INFO  Post found: 知行合一的五种含义
INFO  Post found: Python--Elasticsearch-API操作ES集群
INFO  Post found: 使用ELK分析腾讯云CLB日志
INFO  Post found: Elasticsearch集群数据迁移
INFO  Post found: ElasticStack5.2.2升级到6.0.0注意事项
INFO  Post found: 纯开源产品打造初创公司运维体系
INFO  Post found: 关于金刚经在运维开发中的实践
INFO  Post found: 如何提高自己的创造力
INFO  Post found: 运维需要迈过的两道坎
INFO  Post found: 何为正见
INFO  Post found: JavaScript对比两个百分数大小
INFO  Post found: 我的互联网面试经历
INFO  Post found: Nginx反向代理负载均衡配置梳理大全
INFO  Post found: 追寻知识源头
INFO  Post found: 致良知之功
INFO  Post found: 突破自己
INFO  Post found: 系统重启后nginx reload不生效原因分析
INFO  Post found: OpenResty-Redis-安装部署测试SET-GET功能
INFO  Post found: 如何无中生有
INFO  Post found: 改过自新
INFO  Post found: 刻意练习从提问说起
INFO  Post found: 二零一七年读书列表
INFO  Post found: 追寻知识源头
INFO  Post found: 你没有理由不相信自己
INFO  Post found: 服务稳定性及应用防***方案
INFO  Post found: 圆觉经简介
INFO  Post found: 用自己的步伐丈量这个时代
INFO  Post found: 爆裂:未来社会的9大生存原则
INFO  Post found: 如何活在当下
INFO  Post found: Redis集群性能问题深度分析
INFO  Post found: OpenResty Codis集群缓存系统
INFO  Post found: Codis 3.2集群部署配置汇总
INFO  Post found: Redis3.x与4.x集群部署配置优化
INFO  Post found: Yum安装RabbitMQ3.6.11与Erlange20配置及优化
INFO  Post found: 从零开始创建自己的博客
INFO  Post found: HTTPS配置优化及注意点
INFO  Post found: Nginx限连接限速率模块总结
INFO  Post found: Promethous+Alertmanager+Grafana监控体系
INFO  Post found: TCPCOPY 1.0 部署测试使用
INFO  Post found: 禅的行囊路线图
INFO  Post found: CentOS-7-5安装部署Jewel版本Ceph集群
INFO  Post found: Jewel版本Ceph集群功能性能测试
INFO  Post found: Ceph集群由Jewel版本升级到Luminous版本
INFO  Post found: Ambari安装部署Hadoop
INFO  Post found: DNS主从服务器搭建
INFO  Post found: 排查logstash2.4升级到5.0版本后kafka不兼容问题
INFO  Post found: Centos7.4部署配置Elasticsearch6.3.2集群
INFO  Post found: Nginx1.10.2稳定版本tcp四层负载安装配置过程略解
INFO  Post found: Saltstack源码安装zabbix_agent客户端
INFO  Post found: YUM 源安装MongoDB
INFO  Post found: zabbix2.4.5迁移到zabbix3.0
INFO  Post found: 脚本欣赏之禽兽大人的杰作
INFO  Post found: Promethous配合Alertmanager报警系统
INFO  Post found: Nginx 结合Python Ldap认证用于Kibana权限登陆
INFO  Post found: kubernetes13.1+etcd3.3.10+flanneld0.10部署
INFO  Post found: Kubernetes1.13.1部署Kuberneted-dashboard v1.10.1
INFO  Post found: kubenetes1.13.1 部署coredns
INFO  Post found: kubernetes1.13.1部署ingress-nginx并配置https转发dashboard
INFO  Post found: kubernetes1.13.1部署metrics-server0.3.1
INFO  Post found: 使用prometheus采集ingress-nginx数据grafan展示效果
INFO  Post found: 学习阳明心学书籍推荐
INFO  Post found: Centos7.5部署最新稳定版jenkins并配置ldap认证
INFO  Post found: kubernets1.13.1集群使用ceph rbd块存储
INFO  Post found: kubernetes1.13.1集群结合ceph rbd部署最新版本jenkins
INFO  Post found: kubernetes1.13.1集群安装包管理工具helm
INFO  Post found: kubernetes1.13.1集群集成harbor-helm
INFO  Post found: 领导力21法则
INFO  Post found: 认知盈余
INFO  Post found: 读书是一辈子的事
INFO  Post found: 使用elasticdump迁移数据到新es集群
INFO  Post found: 部署shadowsocks并设置客户端
INFO  Post found: 意义
INFO  Post found: JAVA程序分析工具jstat和jstack
INFO  Post found: 人生之癌
INFO  Post found: 一次被***和删除***程序的经历
INFO  Post found: HTTP请求的11个处理阶段
INFO  Post found: 人为什么要读书
INFO  Post found: 关于买房的13个观点
INFO  Post found: elasticsearch pending_tasks 数量多原因分析
INFO  Post found: Python通过ItChat获取朋友图像生成拼接图
INFO  Post found: 论易经和三教的关系
INFO  Post found: Mysql Redis PostgreSQL数据库查看客户端连接
INFO  Post found: 从第十名现象说起
INFO  Post found: 高效工作的五种策略
INFO  Post found: 全链路监控工具Pinpoint1.8.2部署
INFO  Post found: 一个人的清欢
INFO  Post found: 围炉夜话精选
INFO  Post found: Java线程泄露问题分析
INFO  Post found: Redis未授权访问及安全组漏洞招致kerberods来挖矿
INFO  Post found: 关键提问
INFO  Post found: 瓦力2.0.0版本升级到2.0.1版本
INFO  Post found: 瓦力2.0使用介绍
INFO  Post found: 技术的本质
INFO  Post found: docker-compose部署pinpoint开启email报警功能
INFO  Post found: pinpoint 修改hbase表TTL值
INFO  Post found: 操作系统之哲学原理
INFO  Post found: 你就是不懂欣赏
INFO  Post found: 纳兰词·忆江南
INFO  Post found: 众生皆苦
INFO  Post found: 平凡的世界
INFO  Post found: 早晨从中午开始
INFO  Post found: 10人以下小团队管理手册
INFO  Post found: 思维导图:创意高手的超强思考工具
INFO  Post found: 制作java基础docker镜像
INFO  Post found: Java应用程序镜像制作及在kubernetes上发布
INFO  Post found: 麦肯锡教我的思考武器:从逻辑思考到真正解决问题
INFO  Post found: 金字塔原理(麦肯锡40年经典培训教材)
INFO  Post found: 斯坦福大学人生设计课
INFO  Post found: 从一到无穷大
INFO  Post found: kubernetes集群全栈监控报警方案kube-prometheus
INFO  Post found: Kubernetes集群容器运行日志收集
INFO  Post found: 半小时漫画唐诗
INFO  Post found: 稀缺:我们是如何陷入贫穷与忙碌的
INFO  Post found: 纳兰词节选
INFO  Post found: Twee Twee Dee
INFO  Post found: 成事:冯唐品读曾国藩嘉言钞-书札
INFO  Post found: 成事:冯唐品读曾国藩嘉言钞-家书
INFO  Post found: 永不止步
INFO  Post found: 方法论
INFO  Post found: 事实
INFO  Post found: 做事十句话
INFO  Post found: 上古四种养生之道
INFO  Post found: 人生有何意义
INFO  Post found: 将工作当作正念的修行
INFO  128 posts migrated.

启动

[root@wordpross blog]# hexo server
INFO  Deleted database.
[root@wordpross blog]# hexo clean
INFO  Deleted database.
[root@wordpross blog]# hexo generate
INFO  Start processing
INFO  Files loaded in 3.46 s
Killed

上传到github

[root@wordpross blog]# npm install hexo-deployer-git --save
hexo-site@0.0.0 /root/blog
└─┬ hexo-deployer-git@1.0.0 ├─┬ babel-eslint@10.0.2 │ ├─┬ @babel/code-frame@7.5.5 │ │ └─┬ @babel/highlight@7.5.0 │ │   └── js-tokens@4.0.0 │ ├── @babel/parser@7.5.5 │ ├─┬ @babel/traverse@7.5.5 │ │ ├─┬ @babel/generator@7.5.5 │ │ │ ├── jsesc@2.5.2 │ │ │ └── trim-right@1.0.1 │ │ ├─┬ @babel/helper-function-name@7.1.0 │ │ │ ├── @babel/helper-get-function-arity@7.0.0 │ │ │ └── @babel/template@7.4.4 │ │ ├── @babel/helper-split-export-declaration@7.4.4 │ │ ├─┬ debug@4.1.1 │ │ │ └── ms@2.1.2 │ │ └── globals@11.12.0 │ ├─┬ @babel/types@7.5.5 │ │ └── to-fast-properties@2.0.0 │ ├─┬ eslint-scope@3.7.1 │ │ └── esrecurse@4.2.1 │ └── eslint-visitor-keys@1.0.0 └── UNMET PEER DEPENDENCY eslint@>= 4.12.1npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN babel-eslint@10.0.2 requires a peer of eslint@>= 4.12.1 but none was installed.[root@wordpross blog]# hexo deploy
INFO  Deploying: git
INFO  Setting up Git deployment...
Initialized empty Git repository in /root/blog/.deploy_git/.git/
[master (root-commit) 9c896de] First commit1 file changed, 0 insertions(+), 0 deletions(-)create mode 100644 placeholder
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
[master c038401] Site updated: 2019-07-30 09:51:031 file changed, 0 insertions(+), 0 deletions(-)delete mode 100644 placeholder
Counting objects: 5, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (5/5), 375 bytes | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
To git@github.com:minminmsn/minminmsn.github.io.git+ eab79a5...c038401 HEAD -> master (forced update)
Branch master set up to track remote branch master from git@github.com:minminmsn/minminmsn.github.io.git.
INFO  Deploy done: git

博客从wordpress迁移到hexo相关推荐

  1. 博客从wordpress迁移到Github.io、GitCafe

    原文地址 博客从wordpress迁移到Github.io.GitCafe 最近博客(www.coderli.com) 被几个流氓IP爬的厉害,流量超标.促使我萌生了将博客迁移到github.io的想 ...

  2. 博客搬家 -- 将博客从CSDN迁移到hexo上

    博客搬家 -- 将博客从CSDN迁移到hexo上 博客已经迁移到 凌枫's Blog 新博客里面有很详细的如何是hexo+git+github来搭建简单的静态博客 最新也在hexo博客里面更新了Spr ...

  3. 博客从 WordPress 迁移至 Halo

    WordPress 是一个免费的开源项目,使用 PHP 语言开发的博客平台,并逐步演化成一款内容管理系统软件,数据开发基于 MySQL,有许多第三方开发的免费模板,安装方式简单易用.其它详细信息请参考 ...

  4. 博客大事记之迁移博客到香港主机

    个人博客:https://rebootcat.com/2020/11/10/move_blog_hk/ 前言 之前其实已经写过一篇博文: 迁移博客到香港虚拟空间,那为什么又要写这篇博客呢? 上次其实是 ...

  5. github page hexo博客gitee_利用Github和hexo搭建个人免费博客

    利用Github和hexo搭建个人免费博客详细过程: 概述: 详细的介绍了利用github和hexo搭建免费的博客,内容详细,浅显易懂,容易上手,大家一起进来看看吧! 1.配置Github相关操作: ...

  6. hexo博客本地服务器显示正常,Hexo 搭建博客 本地运行 常见报错及解决办法

    作为一名在hexo方面的新手,我在使用hexo编辑文档时遇到了很多问题,hexo generate编译的时候遇到了各种错误. 在此将这些错误及其解决方案记录下来,以便日后查证之用,同时,也可给各位在遇 ...

  7. yum安装论坛discuz,phpwind,博客系统wordpress,后台数据库管理phpmyadmin。

    一)配置yum系统,参考下面链接. http://shunzi.blog.51cto.com/8289655/1337953 二)安装httpd,mysql,php等服务. yum -y instal ...

  8. CSDN搬家--博客园--WordPress

    错开の折腾经历:个人博客 文章目录 前言 讲一下vps: 博客搬家 1.CSDN导出至博客园 2.博客园导出至WordPress 3.用WP All Import Pro插件导入文章 最后 前言 最近 ...

  9. armbian nginx 部署博客_通过Git将Hexo博客部署到服务器

    本文首发于我的个人博客https://orxing.top,欢迎来访 服务器是用的阿里云ECS CentOS,本来是用来部署WordPress的,后来接触了Hexo,就把Hexo直接部署到了GitHu ...

最新文章

  1. 使用Pyecharts制作Bar3D用法详解
  2. 专业的秘密 | 南方医科大学生物信息学专业
  3. Kafka-manager启动命令
  4. STL学习笔记 ---- 由set的声明所引发的自定义比较的实现方式 作者:winterTTr(转载请注明)...
  5. Linux命令(1)—— xargs 命令
  6. java new对象_Java中new一个对象是一个怎样的过程?JVM中发生了什么?
  7. android-async-http框架之与网络进行数据交互
  8. 深入浅出数据分析:寻找最大值Solver
  9. 1号信令、7号信令和PRI信令
  10. IOS Core ML如何把输入从MLMultiArray转换为image
  11. Scratch二次开发7:Scratch3.0作品的生命周期(各类状态)分析讲解
  12. java零钱换整程序_Leetcode 322. 零钱兑换
  13. 【财富空间】其实,硅谷最会玩的是“失败”
  14. 2020年数据科学与大数据技术专业填报指南(附院校及专业介绍)/ 高考填志愿...
  15. 怎么修改服务器文件写入权限,怎么修改服务器本地写入权限设置
  16. ProxmoxVE 6.4-13(PVE) 开启SR-IOV INTEL I350-T4 手把手教程
  17. 请收藏:流固耦合经验总结(一)
  18. 最新苏州大学计算机系宿舍,2020年苏州大学新生宿舍环境条件,大一新生男生女生宿舍内部图片【多图】...
  19. C# 调用WinRar执行rar、zip压缩的代码
  20. 关于 nl80211

热门文章

  1. Map集合、Collections类
  2. 爱普生Epson Stylus Photo R260 打印机驱动
  3. 基于英飞凌TC397芯片Mcal配置之Can模块的配置
  4. Studing Day4 - python基础4
  5. 一文读懂Tiger DAO VC模式,风险投资改朝换代
  6. 苹果开发者账号申请 App IDs(应用身份证)
  7. 如何使用Arduino制作摩尔斯电报翻译器
  8. android头像相册/拍照选取,裁剪及上传综合案例
  9. python樱花开放教程_Python画樱花树 !
  10. 【数据库原理复习题】