就算在阿里云ecs买个服务器,去安装mysql数据库,也不一定能安装成功。我们之前是在CentOS 6下安装成功的,后来不断尝试才知道CentOS 7的yum源中默认好像是没有mysql的。为了解决这个问题,要先下载mysql的repo源。

一个好的程序员应该是那种过单行线都要往两边看的人。
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true