hexo使用詳解

hexo入門

  1. 安裝hexo
$ npm install hexo-cli -g
  1. 初始化blog
$ hexo init blog
$ cd blog
  1. 啟動服務
hexo server
  1. 創(chuàng)建文章
$ hexo new "Hello Hexo"
  1. 生成文章
$ hexo generate
  1. 修改為中文主題

將語言切換為中文config.yml配置

language: zh-Hans
  1. 發(fā)布到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 已經(jīng)原生支持 多說 and Disqus 評論系統(tǒng)
duoshuo:
  enable: true
  shortname: your-duoshuo-shortname
disqus_shortname: your-disqus-shortname
  1. 創(chuàng)建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視頻教程,實戰(zhàn)開發(fā)
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. 創(chuàng)建分類
---
title: categories
date: 2020-11-01 20:34:59
---
  1. 創(chuàng)建文章
---
title: Retrofit視頻教程,實戰(zhàn)開發(fā)
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
  # 網(wǎng)站圖標肆糕,把 "/source/images/" 目錄下的 "favicon.png",換成自己的圖片即可在孝。
  favicon: images/favicon.png

  # avatar
  # 頭像圖片诚啃,把 "/source/images/" 目錄下的 "avatar.png",換成自己的圖片即可浑玛。
  avatar: images/avatar.png

# ---------------------------------------------------------------------------------------
# Navigation menu
# 導航菜單
# 如需新增導航頁绍申,請按下面格式填寫浴骂,同時需要創(chuàng)建相對應的 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
# 評論插件
# 主題內(nèi)置了 Valine 和 Gitalk奔脐,只能使用其中一款。
# ---------------------------------------------------------------------------------------
comment:
  # Valine
  # See: https://github.com/xCss/Valine
  # 如何使用 Valine吁讨,請參考官方教程:https://github.com/xCss/Valine
  # 獲取必要的參數(shù)髓迎,在下面填寫。
  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
  # 獲取必要的參數(shù)排龄,在下面填寫。
  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
# 網(wǎng)站計數(shù)
# ---------------------------------------------------------------------------------------
website_count:
  # busuanzi
  # See: http://ibruce.info/2015/04/04/busuanzi/
  # 主題內(nèi)置“不蒜子”計數(shù)翎朱,無需額外配置橄维,選擇你要開啟的計數(shù)項即可尺铣。
  # site_uv 訪問人數(shù)計數(shù)
  # site_pv 總訪問量計數(shù)
  # page_pv 文章閱讀量計數(shù)
  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 搜索觸發(fā)方式店溢,輸入關(guān)鍵字后會觸發(fā)搜索,可選 auto(自動)或 manual(手動)流译。
  ### auto 每輸入或刪除一個字符后逞怨,自動觸發(fā)搜索。
  ### manual 每輸入或刪除一個字符后福澡,需要按回車鍵觸發(fā)搜索叠赦。
  trigger: auto # values: auto | manual

  # Unescape html strings to the readable one.
  # # 轉(zhuǎn)義 HTML 字符串為可讀字符串。
  unescape: false

  # Preload the search data when the page loads.
  # 在頁面加載時預加載搜索數(shù)據(jù)革砸。
  preload: false

# ---------------------------------------------------------------------------------------
# Post word count
# Dependencies: hexo-wordcount
# See: https://github.com/willin/hexo-wordcount
# 文章字數(shù)統(tǒng)計 & 閱讀時長統(tǒng)計
# 如需啟用除秀,請先安裝 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 顯示分類或標簽的最大個數(shù)。
# ---------------------------------------------------------------------------------------
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
# 側(cè)邊欄工具(搜索按鈕、晝夜模式切換按鈕缎患、RSS按鈕慕的、TOC顯示切換按鈕)
# ---------------------------------------------------------------------------------------
side_tools:
  enable: false

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

# ---------------------------------------------------------------------------------------
# Table of Contents in the Sidebar
# 文章目錄結(jié)構(gòu)
# ---------------------------------------------------------------------------------------
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">
        #用于顯示設定“可顯示文件列表”(當無可顯示網(wǎng)頁的時候)
        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++環(huán)境:VC_redist.x64-2019.exe
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末绕辖,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子擂红,更是在濱河造成了極大的恐慌仪际,老刑警劉巖,帶你破解...
    沈念sama閱讀 206,839評論 6 482
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異弟头,居然都是意外死亡,警方通過查閱死者的電腦和手機涉茧,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,543評論 2 382
  • 文/潘曉璐 我一進店門赴恨,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人伴栓,你說我怎么就攤上這事伦连。” “怎么了钳垮?”我有些...
    開封第一講書人閱讀 153,116評論 0 344
  • 文/不壞的土叔 我叫張陵惑淳,是天一觀的道長。 經(jīng)常有香客問我饺窿,道長歧焦,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 55,371評論 1 279
  • 正文 為了忘掉前任肚医,我火速辦了婚禮绢馍,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘肠套。我一直安慰自己舰涌,他們只是感情好,可當我...
    茶點故事閱讀 64,384評論 5 374
  • 文/花漫 我一把揭開白布你稚。 她就那樣靜靜地躺著瓷耙,像睡著了一般。 火紅的嫁衣襯著肌膚如雪刁赖。 梳的紋絲不亂的頭發(fā)上搁痛,一...
    開封第一講書人閱讀 49,111評論 1 285
  • 那天,我揣著相機與錄音乾闰,去河邊找鬼落追。 笑死,一個胖子當著我的面吹牛涯肩,可吹牛的內(nèi)容都是我干的轿钠。 我是一名探鬼主播,決...
    沈念sama閱讀 38,416評論 3 400
  • 文/蒼蘭香墨 我猛地睜開眼病苗,長吁一口氣:“原來是場噩夢啊……” “哼疗垛!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起硫朦,我...
    開封第一講書人閱讀 37,053評論 0 259
  • 序言:老撾萬榮一對情侶失蹤贷腕,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體泽裳,經(jīng)...
    沈念sama閱讀 43,558評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡瞒斩,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,007評論 2 325
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了涮总。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片胸囱。...
    茶點故事閱讀 38,117評論 1 334
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖瀑梗,靈堂內(nèi)的尸體忽然破棺而出烹笔,到底是詐尸還是另有隱情,我是刑警寧澤抛丽,帶...
    沈念sama閱讀 33,756評論 4 324
  • 正文 年R本政府宣布谤职,位于F島的核電站,受9級特大地震影響亿鲜,放射性物質(zhì)發(fā)生泄漏允蜈。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 39,324評論 3 307
  • 文/蒙蒙 一蒿柳、第九天 我趴在偏房一處隱蔽的房頂上張望陷寝。 院中可真熱鬧,春花似錦其馏、人聲如沸凤跑。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,315評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽仔引。三九已至,卻和暖如春褐奥,著一層夾襖步出監(jiān)牢的瞬間咖耘,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,539評論 1 262
  • 我被黑心中介騙來泰國打工撬码, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留儿倒,地道東北人。 一個月前我還...
    沈念sama閱讀 45,578評論 2 355
  • 正文 我出身青樓呜笑,卻偏偏與公主長得像夫否,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子叫胁,可洞房花燭夜當晚...
    茶點故事閱讀 42,877評論 2 345

推薦閱讀更多精彩內(nèi)容