hexo入門
- 安裝hexo
$ npm install hexo-cli -g
- 初始化blog
$ hexo init blog
$ cd blog
- 啟動服務
hexo server
- 創(chuàng)建文章
$ hexo new "Hello Hexo"
- 生成文章
$ hexo generate
- 修改為中文主題
將語言切換為中文config.yml配置
language: zh-Hans
- 發(fā)布到github配置_config.yml
deploy:
type: git
repo: https://github.com/mxdldev/mxdldev.github.io.git
branch: master
hexo next主題
- 下載next主題
$ cd hexo-site
$ git clone https://github.com/next-theme/hexo-theme-next themes/next
- 修改主題在站點配置文件_config.yml
theme: next
- 評論支持 NexT 已經(jīng)原生支持 多說 and Disqus 評論系統(tǒng)
duoshuo:
enable: true
shortname: your-duoshuo-shortname
disqus_shortname: your-disqus-shortname
- 創(chuàng)建tags頁面
hexo new page "tags"
hexo new page "categories"
- 編輯標簽頁,設置頁面類型為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
- 添加 tags 到主題配置文件 _config.yml 里:
menu:
home: /
archives: /archives
tags: /tags
hexo ils主題
- 下載主題
git clone https://github.com/XPoet/hexo-theme-ils.git themes/next
- 創(chuàng)建分類
---
title: categories
date: 2020-11-01 20:34:59
---
- 創(chuàng)建文章
---
title: Retrofit視頻教程,實戰(zhàn)開發(fā)
date: 2020-11-01 20:31:40
tags: [http,retrofit,retrofit視頻教程]
categories: [Retrofit]
---
- _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
- 下載地址
https://www.apachehaus.com/cgi-bin/download.plx
- 安裝服務
httpd.exe -k install -n "Apache24"
- httpd.conf配置
修改root:
Define SRVROOT "D:\soft\httpd-2.4.46-lre314-x64-vs16\Apache24"
添加端口:
Listen 8080
開啟host配置
Include conf/extra/httpd-vhosts.conf
- 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
- spring boot 打包
Liftcycle -> package
- 啟動服務
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
- 停止服務
taskkill -f -t -im javaw.exe
- mysql安裝注意事項
安裝vc++環(huán)境:VC_redist.x64-2019.exe