惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
罗磊的独立博客
F
Fortinet All Blogs
T
Threatpost
Y
Y Combinator Blog
博客园_首页
美团技术团队
Security Latest
Security Latest
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
V
V2EX - 技术
The Cloudflare Blog
L
LINUX DO - 热门话题
博客园 - 司徒正美
Jina AI
Jina AI
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
The Hacker News
The Hacker News
P
Privacy International News Feed
T
The Exploit Database - CXSecurity.com
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence
Latest news
Latest news
NISL@THU
NISL@THU
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cisco Blogs
雷峰网
雷峰网
Application and Cybersecurity Blog
Application and Cybersecurity Blog
B
Blog RSS Feed
W
WeLiveSecurity
D
DataBreaches.Net
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
Spread Privacy
Spread Privacy
Know Your Adversary
Know Your Adversary
TaoSecurity Blog
TaoSecurity Blog
S
Securelist
Help Net Security
Help Net Security

博客园 - 水木

为什么要监控sql语句,以及如何监控,都有哪几种方式可以监控。 IIS错误代码500.21 ,Nhibernate更新报错,委托的使用。action传参数 mysql 使用的三个小技巧 利用反向代理服务器,加快国内对国外主机的访问 - 水木 2019年七月第三周总结 ManualResetEven使用的最清楚说明 如何画数据流图 如何画好ER图 UML图中时序图的基本用法 系统架构设计上需要注意的 - 水木 weblogic介绍 - 水木 Tuxedo 介绍 - 水木 winform如何不卡界面 - 水木 银行基金代销系统调研 - 水木 如何在wcf中用net tcp协议进行通讯 - 水木 20190710用控制台启动一个wcf服务 - 水木 wcf必知必会以及与Webapi的区别 - 水木 2019年7月第一周总结-RabbitMQ总结 - 水木 RabbitMQ入门学习系列(七) 远程调用RPC - 水木
关于hexo与github使用过程中的问题与笔记 - 水木 - 博客园
水木 · 2019-07-27 · via 博客园 - 水木

快速阅读

如何用github 和hexo 创建一个blog

1.github中要新建一个与用户名同一样的仓库, 如:homehe.github.io

  • - 必须是io后缀。一个帐户 只能建立一个

2. 绑定域名 , A记录指向ip, cname记录指向homehe.github.io

3. 配置sshkey

- 个人设置 -> SSH and GPG keys -> New SSH key
- 测试 是否成功 ssh -T git@github.com  =》You've successfully authenticated 表示成功
3.2 配置用户名和邮件

$ git config --global user.name "liuxianan"// 你的github用户名,非昵称 $ git config --global user.email "xxx@qq.com"// 填写你的github注册邮箱

4.安装hexo

npm install -g hexo

在要目录下进行初始化 hexo init=>会花费时间 长一点。

$ hexo g # 生成
$ hexo s # 启动服务


hexo就会在public文件夹生成相关html文件,这些文件将来都是要提交到github去的:

hexo s是开启本地预览服务,打开浏览器访问 http://localhost:4000 即可看到内容

如果端口被占用:

这里我们以8081端口为例讲解。

按下Win+R调出命令行窗口,输入netstat -aon|findstr "8081",找到指定行最后一列的数字(PID),我们这里是9548. 输入tasklist|findstr "9548",发现是javaw.exe占用了8081端口。 再次输入taskkill /f /t /im javaw.exe结束该进程。

修改主题

//下载主题到themes/yilia 目录
$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
修改_config.yml中的theme: landscape改为theme: yilia,然后重新执行hexo g来重新生成
关于yilia目录的生成
在根目录下运行
$ npm i hexo-generator-json-content --save

在根目录下的_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

部署之前要安装有关部署的

$ npm install hexo-deployer-git -save

关于部署的配置 ,注意:号后面一定要有空格 。

deploy:
  type: git
  repository: git@github.com:homehe/homehe.github.io.git
  branch: master

友情提示

​ 我对我的文章负责,发现好多网上的文章 没有实践,都发出来的,让人走很多弯路,如果你在我的文章中遇到无法实现,或者无法走通的问题。可以直接在公众号《爱码农爱生活 》留言。必定会再次复查原因。让每一篇 文章的流程都能顺利实现。