安装主题 (Github)1、安装在你的 Hexo 根目录里
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
升级方法:在主题目录下,运行 git pull
2、应用主题修改 Hexo 根目录下的 _config.yml,把主题改为 butterfly
theme: butterfly
3、安装插件如果你没有 pug 以及 stylus 的渲染器,请下载安装:
npm install hexo-renderer-pug hexo-renderer-stylus --save
4、升级建议在 hexo 的根目录创建一个文件 _config.butterfly.yml,并把主题目录的 _config.yml 内容复制到 _config.butterfly.yml 去。( 注意: 复制的是主题的 _config.yml ,而不是 hexo 的 _config.yml)
不要把主题目录的 _config.yml 删掉, 以后只需要在 _config.b ...
一、下载mysql安装包wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
二、安装mysqlyum localinstall mysql57-community-release-el7-8.noarch.rpm
三、检测是否安装成功yum repolist enabled | grep "mysql.*-community.*"
四、选择安装版本#进入此文件可以看到mysql5的各种版本
#其中enabled=1是选择安装,enabled=0是不安装,文件内默认为5.7
vim /etc/yum.repos.d/mysql-community.repo
mysql-community.repo文件[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
ena ...
前言:为了方便查阅,这里将常用指令汇总.
简写指令:hexo n 等价于 hexo new 还等价于 hexo new post "我的第一篇文章"
hexo p 等价于 hexo publish
hexo g 等价于 hexo generate
hexo s等价于 hexo server
hexo d 等价于 hexo deploy
hexo deploy -g 等价于 hexo deploy --generate
hexo generate -d等价于hexo generate --deploy
创建一篇新文章或者新的页面。您可以在命令中指定文章的布局(layout),默认为 post,可以通过修改 _config.yml 中的 default_layout 参数来指定默认布局。
$ hexo new [layout] <title>
注:hexo clean 没有 简写,
git --version 没有简写
指令说明:hexo server #Hexo 会监视文件变动并自动更新,除修改站点配置文件外,无须重启服务器,直接刷新网页即可生效。
hexo server ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post$ hexo new "My New Post"
More info: Writing
Run server$ hexo server
More info: Server
Generate static files$ hexo generate
More info: Generating
Deploy to remote sites$ hexo deploy
More info: Deployment