hexo使用详解

hexo入门

  1. 安装hexo
$ npm install hexo-cli -g
  1. 初始化blog
$ hexo init blog
$ cd blog
  1. 启动服务
hexo server
  1. 创建文章
$ hexo new "Hello Hexo"
  1. 生成文章
$ hexo generate
  1. 修改为中文主题

将语言切换为中文config.yml配置

language: zh-Hans
  1. 发布到github配置_config.yml
deploy:
  type: git
  repo: https://github.com/mxdldev/mxdldev.github.io.git
  branch: master

hexo next主题

  1. 下载next主题
$ cd hexo-site
$ git clone https://github.com/next-theme/hexo-theme-next themes/next
  1. 修改主题在站点配置文件_config.yml
theme: next
  1. 评论支持 NexT 已经原生支持 多说 and Disqus 评论系统
duoshuo:
  enable: true
  shortname: your-duoshuo-shortname
disqus_shortname: your-disqus-shortname
  1. 创建tags页面
 hexo new page "tags"
hexo new page "categories"
  1. 编辑标签页,设置页面类型为tags
title: All tags
date: 2014-12-22 12:39:04
type: "tags"
title: All categories
date: 2014-12-22 12:39:04
type: "categories"
title: Retrofit视频教程,实战开发
date: 2020-11-01 20:31:40
tags: http okhttp retrofit retrofit视频教程
categories: Retrofit
  1. 添加 tags 到主题配置文件 _config.yml 里:
 menu:
    home: /
    archives: /archives
    tags: /tags

hexo ils主题

  1. 下载主题
git clone https://github.com/XPoet/hexo-theme-ils.git  themes/next
  1. 创建分类
---
title: categories
date: 2020-11-01 20:34:59
---
  1. 创建文章
---
title: Retrofit视频教程,实战开发
date: 2020-11-01 20:31:40
tags: [http,retrofit,retrofit视频教程]
categories: [Retrofit]
---
  1. _config.yml配置
# ---------------------------------------------------------------------------------------
#  Your basic info
#  你的基本信息,请正确填写,将显示在主题中。
# ---------------------------------------------------------------------------------------
base_info:
  title: ILS
  author: XPoet
  email: i@xpoet.cn
  url: https://ils.xpoet.cn/

# ---------------------------------------------------------------------------------------
# Theme style settings
# 主题样式设置
# ---------------------------------------------------------------------------------------
style:
  # Theme primary color
  # 主颜色,修改为自己喜欢的颜色即可,支持 rgb、十六进制格式。
  # 建议使用 Web 安全色,https://www.bootcss.com/p/websafecolors/
  primary_color: "#0066CC"

  # favicon
  # 网站图标,把 "/source/images/" 目录下的 "favicon.png",换成自己的图片即可。
  favicon: images/favicon.png

  # avatar
  # 头像图片,把 "/source/images/" 目录下的 "avatar.png",换成自己的图片即可。
  avatar: images/avatar.png

# ---------------------------------------------------------------------------------------
# Navigation menu
# 导航菜单
# 如需新增导航页,请按下面格式填写,同时需要创建相对应的 Hexo 页面。
# 如何新增页面,请参考下面的教程:“Add page 添加页面”。
# ---------------------------------------------------------------------------------------
menu:
  Home: /
  Archives: /archives
  # Categories: /categories
  # Tags: /tags
  # Links: /links
  # About: /about
  # ...

# ---------------------------------------------------------------------------------------
# RSS
# Dependencies: hexo-generator-feed
# See: https://github.com/hexojs/hexo-generator-feed
# RSS 订阅,如需启用,请先安装 Hexo 插件:hexo-generator-feed。
# 具体步骤,参考下面的教程:“RSS 订阅”。
# ---------------------------------------------------------------------------------------
rss:
  enable: false

# ---------------------------------------------------------------------------------------
# Comment plugin
# 评论插件
# 主题内置了 Valine 和 Gitalk,只能使用其中一款。
# ---------------------------------------------------------------------------------------
comment:
  # Valine
  # See: https://github.com/xCss/Valine
  # 如何使用 Valine,请参考官方教程:https://github.com/xCss/Valine
  # 获取必要的参数,在下面填写。
  valine:
    enable: false
    appid: # your leancloud application appid
    appkey: # your leancloud application appkey
    meta: # comment input meta, type: Array, values: ['nick','mail','link']
    placeholder: # your placeholder

  # Gitalk
  # See: https://github.com/gitalk/gitalk
  # 如何使用 Gitalk,请参考官方教程:https://github.com/gitalk/gitalk
  # 获取必要的参数,在下面填写。
  gitalk:
    enable: false
    github_id: # GitHub repo owner
    repository: # Repository name to store issues
    client_id: # GitHub Application Client ID
    client_secret: # GitHub Application Client Secret

# ---------------------------------------------------------------------------------------
# Website count
# 网站计数
# ---------------------------------------------------------------------------------------
website_count:
  # busuanzi
  # See: http://ibruce.info/2015/04/04/busuanzi/
  # 主题内置“不蒜子”计数,无需额外配置,选择你要开启的计数项即可。
  # site_uv 访问人数计数
  # site_pv 总访问量计数
  # page_pv 文章阅读量计数
  busuanzi_count:
    enable: false
    site_uv: false
    site_pv: false
    page_pv: false

# ---------------------------------------------------------------------------------------
# Local Search
# Dependencies: hexo-generator-searchdb
# See: https://github.com/theme-next/hexo-generator-searchdb
# 本地搜索,如需启用,请先安装 Hexo 插件:hexo-generator-searchdb。
# 具体步骤,参考下面的教程:“Local search 本地搜索”。
# ---------------------------------------------------------------------------------------
local_search:
  enable: true

  # If auto, trigger search by changing input.
  # If manual, trigger search by pressing enter key or search button.
  # trigger 搜索触发方式,输入关键字后会触发搜索,可选 auto(自动)或 manual(手动)。
  ### auto 每输入或删除一个字符后,自动触发搜索。
  ### manual 每输入或删除一个字符后,需要按回车键触发搜索。
  trigger: auto # values: auto | manual

  # Unescape html strings to the readable one.
  # # 转义 HTML 字符串为可读字符串。
  unescape: false

  # Preload the search data when the page loads.
  # 在页面加载时预加载搜索数据。
  preload: false

# ---------------------------------------------------------------------------------------
# Post word count
# Dependencies: hexo-wordcount
# See: https://github.com/willin/hexo-wordcount
# 文章字数统计 & 阅读时长统计
# 如需启用,请先安装 Hexo 插件:hexo-wordcount。
# 在博客根目录下使用 npm 命令安装: npm i hexo-wordcount --save
# ---------------------------------------------------------------------------------------
post_wordcount:
  enable: false
  wordcount: false # word count, one article
  min2read: false # time to read, one article

# ---------------------------------------------------------------------------------------
# Home page article block display settings
# 首页文章块底部的显示设置,可配置显示分类和标签。
# limit 显示分类或标签的最大个数。
# ---------------------------------------------------------------------------------------
home_article:
  category:
    enable: false # show category in home page article block
    limit: 3 # max number of categories shown in home page article block
  tag:
    enable: false # show tags in home page article block
    limit: 5 # max number of tags shown in home page article block

# ---------------------------------------------------------------------------------------
# Code copy
# 代码复制,代码块的复制风格可选 default | flat | mac。
# ---------------------------------------------------------------------------------------
code_copy:
  enable: true
  style: flat # values: default | flat | mac

# ---------------------------------------------------------------------------------------
# Sidebar tools
# 侧边栏工具(搜索按钮、昼夜模式切换按钮、RSS按钮、TOC显示切换按钮)
# ---------------------------------------------------------------------------------------
side_tools:
  enable: false

# ---------------------------------------------------------------------------------------
# Back to top
# 回到顶部
# ---------------------------------------------------------------------------------------
back2top:
  enable: false

# ---------------------------------------------------------------------------------------
# Table of Contents in the Sidebar
# 文章目录结构
# ---------------------------------------------------------------------------------------
toc:
  enable: false

  # Automatically add list number to toc.
  # 给文章目录自动加上序号。
  number: true

  # If true, all level of TOC in a post will be displayed, rather than the activated part of it.
  # 是否展开所有目录。
  expand_all: true

# ---------------------------------------------------------------------------------------
# Magic
# magic 启用后,主题将以简约的卡片形式显示。
# 可分别配置缩放效果、阴影效果。
# ---------------------------------------------------------------------------------------
magic:
  enable: true
  scale: false # scale effect when the mouse hover
  shadow: false # shadow effect when the mouse hover

Apache http server

https://blog.csdn.net/u014454538/article/details/79261824

https://blog.csdn.net/wulala_hei/article/details/80458128

  1. 下载地址
https://www.apachehaus.com/cgi-bin/download.plx
  1. 安装服务
httpd.exe -k install -n "Apache24" 
  1. httpd.conf配置
修改root:
Define SRVROOT "D:\soft\httpd-2.4.46-lre314-x64-vs16\Apache24"

添加端口:
Listen 8080

开启host配置
Include conf/extra/httpd-vhosts.conf
  1. httpd-vhosts.conf配置
<VirtualHost *:8080>
    #设置主机名
    ServerName www.study.com
    #设置主机别名,即用该别名也可以访问(前提是域名解析正确)
    ServerAlias study.com
    #设置该站点根目录
    DocumentRoot "D:/work_java/blog/public"
    #设置文件夹访问控制,其路径要和上一行的DocumentRoot一样,
    <Directory "D:/work_java/blog/public">
        #用于显示设定“可显示文件列表”(当无可显示网页的时候)
        Options Indexes
        #启用文件夹访问控制的文件.htaccess设置
        AllowOverride All
        #请求控制
        Require all granted
        #默认打开的页面设置
        DirectoryIndex index.php index.html
    </Directory>
</VirtualHost>

fly-cloud

  1. spring boot 打包
Liftcycle -> package
  1. 启动服务
java -XX:+UseSerialGC -XX:NativeMemoryTracking=summary -Xms128M -Xmx256M -Xss256k -XX:MaxMetaspaceSize=128M -XX:MetaspaceSize=64M -jar spring-boot-security-oauth2-example-1.0-SNAPSHOT.jar
java -jar spring-boot-security-oauth2-example-1.0-SNAPSHOT.jar
  1. 停止服务
taskkill -f -t -im javaw.exe
  1. mysql安装注意事项
安装vc++环境:VC_redist.x64-2019.exe
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,560评论 4 361
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,104评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,297评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,869评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,275评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,563评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,833评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,543评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,245评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,512评论 2 244
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,011评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,359评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,006评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,062评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,825评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,590评论 2 273
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,501评论 2 268

推荐阅读更多精彩内容