diff --git a/_config.yml b/_config.yml
index 8c0ec7c..eec7983 100644
--- a/_config.yml
+++ b/_config.yml
@@ -127,15 +127,16 @@ sitemap:
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
-- type: 'git'
- repo: # git@github.com:LuckyZmj/LuckyZmj.github.io.git
+- type: git
+ repo: root@106.14.31.180:/var/repo/hexoBlog.git
+ # repo: git@github.com:tianzhendong/tianzhendong.github.io
branch: master
-- type: baidu_url_submitter
+# - type: baidu_url_submitter
# baidu submit
baidu_url_submit:
count: 40 # 提交最新的一个链接
- host: www.luckyzmj.cn # 在百度站长平台中注册的域名
+ host: "" # www.luckyzmj.cn # 在百度站长平台中注册的域名
token: xxxxxxxxxxxxxxx # 请注意这是您的秘钥, 所以请不要把博客源代码发布在公众仓库里!
path: baidu_urls.txt # 文本文档的地址, 新链接会保存在此文本文档里
diff --git a/scaffolds/post.md b/scaffolds/post.md
index 1f9b9a4..7eb2816 100644
--- a/scaffolds/post.md
+++ b/scaffolds/post.md
@@ -1,5 +1,21 @@
---
title: {{ title }}
date: {{ date }}
+author: TianZD
+coverImg:
+top: true
+cover: true
+toc: true
+mathjax: false
+summary: >-
+ 简介,前面的空格不能删除
tags:
----
+ - 标签1
+ - 标签2
+categories:
+ - 分类
+abbrlink:
+reprintPolicy: cc_by
+img:
+password:
+---
\ No newline at end of file
diff --git a/source/_data/friends.json b/source/_data/friends.json
index db26292..ed6b805 100644
--- a/source/_data/friends.json
+++ b/source/_data/friends.json
@@ -6,16 +6,16 @@
"url": "http://127.0.0.1:3000",
"title": "访问主页"
},{
- "avatar": "https://gitee.com/tianzhendong/img/raw/master/images/TianZD22.png",
- "name": "docsify",
- "introduction": "保持一颗学习的心",
- "url": "http://127.0.0.1:3000",
+ "avatar": "https://s1.ax1x.com/2020/05/17/YRWsYT.png",
+ "name": "Luckey",
+ "introduction": "越努力,越幸运",
+ "url": "http://www.luckyzmj.cn",
"title": "访问主页"
},{
- "avatar": "https://gitee.com/tianzhendong/img/raw/master/images/TianZD22.png",
- "name": "docsify",
- "introduction": "保持一颗学习的心",
- "url": "http://127.0.0.1:3000",
- "title": "访问主页"
+ "avatar": "https://sunhwee.com/hwsun.jpg",
+ "name": "洪卫の博客",
+ "introduction": "UESTC CVer",
+ "url": "http://sunhwee.com",
+ "title": "访问主页"
}
]
\ No newline at end of file
diff --git a/source/_posts/Blog.md b/source/_posts/Blog.md
index cab2dc0..db66c01 100644
--- a/source/_posts/Blog.md
+++ b/source/_posts/Blog.md
@@ -12,8 +12,9 @@ tags:
- Hexo
- Github
- 博客
+ - 转载
categories:
- - 博客篇
+ - Luckey博客篇
abbrlink: e3e08109
date: 2019-08-27 11:41:03
img:
diff --git a/source/_posts/BlogOpen.md b/source/_posts/BlogOpen.md
index ec7f4b2..b99f97d 100644
--- a/source/_posts/BlogOpen.md
+++ b/source/_posts/BlogOpen.md
@@ -11,8 +11,9 @@ summary: >-
tags:
- hexo-blog-lucky
- 博客搭建教程
+ - 转载
categories:
- - 博客篇
+ - Luckey博客篇
abbrlink: d74d8b76
reprintPolicy: cc_by
date: 2020-09-17 00:00:00
diff --git a/source/_posts/Docsify.md b/source/_posts/Docsify.md
new file mode 100644
index 0000000..e3ed343
--- /dev/null
+++ b/source/_posts/Docsify.md
@@ -0,0 +1,1290 @@
+---
+title: Docsify
+top: true
+cover: true
+toc: true
+mathjax: false
+summary: >-
+ 实用Docisy搭建个人博客
+tags:
+ - Docsify
+ - 博客搭建教程
+categories:
+ - 博客篇
+reprintPolicy: cc_by
+author: TianZD
+abbrlink: 2eeac462
+date: 2022-04-27 12:23:53
+coverImg:
+img:
+password:
+---
+
+# Docsify
+
+[toc]
+
+[codesheep微信文章](https://mp.weixin.qq.com/s?__biz=MzU4ODI1MjA3NQ==&mid=2247510629&idx=1&sn=48e481b9f176ebeb2d68342af3f33317&chksm=fddd7ca1caaaf5b73efe05dcb5b87c570344708e2a7bddffb5c8bd08638b631e595a4d2b646c&mpshare=1&scene=1&srcid=0223V1apWEBHMQrFHzWwPQiN&sharer_sharetime=1645581220908&sharer_shareid=9615bd3fd5ee967a5d2b03b78f23d393#rd)
+
+## 框架对比
+
+其实做这种网站,完全不用自己手写,现成的工具太多了,这地方随便举几个典型例子吧。
+
+### Hexo
+
+这是一个大家用得非常广泛的静态博客,两年前咱们这里就已经演示过它的使用以及部署上线。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232332738.png)
+
+工具地址:https://hexo.io
+
+### VuePress
+
+一款基于Vue框架驱动的静态网站生成器,比较符合用于知识文档网站的建站需求,现在用的小伙伴也很多。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232332139.png)
+
+工具地址:https://vuepress.vuejs.org/
+
+### docsify
+
+docsify同样是一个很好用的知识文档网站生成框架,轻量简便,而且无需构建,写完内容就可以直接发布,界面干净又卫生。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232332353.png)
+
+工具地址:https://docsify.js.org/
+
+- 无需构建,写完文档直接发布
+- 容易使用并且轻量 (压缩后 ~21kB)
+- 智能的全文搜索
+- 提供多套主题
+- 丰富的 API
+- 支持 Emoji
+- 兼容 IE11
+- 支持服务端渲染 SSR ([示例](https://github.com/docsifyjs/docsify-ssr-demo))
+
+### Gitbook
+
+GitBook也是一个可以用来制作知识库文档以及精美电子书网站的工具框架,不少技术电子书文档都是用它来做的。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232332503.png)
+
+工具地址:https://github.com/GitbookIO/gitbook
+
+## 前置环境
+
+docsify唯一需要的一个前置工具就是`npm`工具
+
+查看是否安装及版本
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232334892.png)
+
+如果没有的话,直接在本地电脑上安装一个`node.js`环境就可以了。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232334539.jpeg)
+
+不管是macOS还是Windows系统,直接去`https://nodejs.org/`官网下载个安装包就可以了,直接下一步下一步即可,安装完成之后会包含npm工具。
+
+## 安装Docsify
+
+```bash
+npm install -g docsify-cli
+
+docsify -v //查看版本
+```
+
+## 开始
+
+### 新建项目文件夹
+
+接下来我们从零开始来新建一个本地的项目文件夹。
+
+可以在任何地方新建,名字也可以随便命名,这里取名为`repository`,代表的意思是知识仓库
+
+### 初始化网站
+
+进入到上述新建的项目文件夹`repository`,执行如下命令即可初始化网站,非常简单:
+
+```bash
+docsify init
+```
+
+初始化成功之后,命令行里也会输出对应初始化成功的打印信息。
+
+### 启动本地预览
+
+```bash
+docsify serve
+```
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232337249.png)
+
+我们会发现docsify会帮我们在`localhost:3000`启动一个知识库网站。
+
+然后在浏览器打开`http://localhost:3000`即可看见网站效果。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232337010.png)
+
+当然,这时候的页面看起来非常简陋,几乎什么也没有。
+
+接下来我们来看一看网站的文件结构,这个工具是如何做到这么快就可以启动一个网站的呢。
+
+## 项目结构
+
+上文执行完`docsify init`命令成功初始化网站后,docsify会在项目文件夹里自动帮我们生成以下两个文件:
+
+- `index.html`:网站主入口文件和配置文件
+- `README.md`:网站内容文件。支持Markdown格式,docsify可以帮我们把该Markdown源文件渲染成网页进行展示。
+
+所以我们只需要直接编辑生成的这个README.md文件就能更新网站的内容。
+
+![image-20220223233926608](https://gitee.com/tianzhendong/img/raw/master//images/202202232339692.png)
+
+`coverpage`:封面
+
+`navbar`:导航栏
+
+`sidebar`:侧边栏
+
+`logo.ico`:网页图标
+
+## 配置
+
+https://blog.csdn.net/Lonelyooacz/article/details/103490545
+
+### 页面和URL路径
+
+如果需要创建多个页面,或者需要多级路由的网站,在docsify里能很容易实现。
+
+打比方说,你的目录结构如下:
+
+```
+.
+└── repository
+ ├── README.md
+ ├── test.md
+ └── content
+ ├── README.md
+ └── bigdata.md
+```
+
+那么对应的页面访问URL地址将是:
+
+```
+repository/README.md => http://127.0.0.1:3000/
+repository/test.md => http://127.0.0.1:3000/test
+repository/content/README.md => http://127.0.0.1:3000/content/
+repository/content/bigdata.md => http://127.0.0.1:3000/content/bigdata
+```
+
+所以只需要在项目目录里添加其他`.md`文件,或者目录层级,即可形成多页面网站,非常简单易懂!
+
+### 修改主题
+
+docsify提供了多套主题可供使用。
+
+直接修改`index.html`中引入的CSS文件即可修改网站主题。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232343575.png)
+
+目前提供有好几套主题可供选择:
+
+```html
+
+
+
+
+
+```
+
+### 设置封面
+
+像上文刚刚这样创建出来的网站其实是没有封面的,如果需要添加封面,可以通过在`index.html`中设置`coverpage`参数为`true`来实现:
+
+```html
+coverpage: true
+```
+
+这样既可开启封面功能。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342034.png)
+
+封面功能开启之后,我们可以直接去项目文件夹里创建一个`_coverpage.md`文件来制作封面内容。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342150.png)
+
+比如我们这地方,添加了`_coverpage.md`文件之后,在里面写上如下几段文字:
+
+```markdown
+![logo](https://cdn.jsdelivr.net/gh/justacoder99/r2coding@master/img/r2coding_logo_cover.7hb2s8l3eqk0.png)
+
+- 本站取名为r2coding,即Road To Coding,意为编程自学之路,是自学编程以来所用资源和分享内容的大聚合。旨在为编程自学者提供一系列清晰的学习路线、靠谱的资源、高效的工具、和务实的文章,方便自己也方便他人。**网站内容会持续保持更新,欢迎收藏品鉴!**
+
+## 记住,一定要善用 `Ctrl+F` 哦!
+
+[**联系作者**](https://github.com/rd2coding/Road2Coding)
+[**开启阅读**](README.md)
+```
+
+在网页上渲染之后,即可看到如下效果:
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342169.png)
+
+所以其操作是非常简单的。
+
+### 设置导航栏
+
+像上文刚刚这样创建出来的网站顶部右上角其实是没有导航栏的,如果需要添加导航栏,可以通过在`index.html`中设置`loadNavbar`参数来开启:
+
+```
+loadNavbar: true
+```
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232343460.png)
+
+导航栏功能开启之后,我们可以直接去项目文件夹里创建一个`_navbar.md`文件来制作导航栏菜单内容。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342788.png)
+
+比如我们这地方,添加了`_navbar.md`导航栏之后的效果大致如下:
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342908.png)
+
+
+
+### 设置章鱼猫
+
+可以通过在`index.html`中设置`repo`参数来开启网站右上角的章鱼猫链接的小图标功能
+
+```
+repo: 'https://github.com/rd2coding/Road2Coding'
+```
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342609.png)
+
+设置完成后的效果如下,还是很萌的,鼠标移到上面,小尾巴还能摇一摇。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342876.png)
+
+### 设置logo
+
+可以通过在`index.html`中设置`name`参数或者`logo`参数来开启网站侧边栏左上角的标题或者logo显示功能:
+
+```
+name: 'Road To Coding',
+logo: 'https://cdn.jsdelivr.net/gh/justacoder99/r2coding@master/img/r2coding_logo_sidebar.1na4hwjnopq8.png'
+```
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342324.png)
+
+比如这地方设置了logo图片之后,效果大致如下:
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232342942.png)
+
+### 设置tabs
+
+在`index.html`中添加 docsify-tabs 插件。
+
+```html
+
+
+
+
+
+```
+
+查看[选项](https://jhildenbiddle.github.io/docsify-tabs/#/?id=options)部分并根据需要进行配置。
+
+```html
+window.$docsify = {
+ // ...
+ tabs: {
+ persist : true, // default
+ sync : true, // default
+ theme : 'classic', // default
+ tabComments: true, // default
+ tabHeadings: true // default
+ }
+};
+```
+
+查看[自定义](https://jhildenbiddle.github.io/docsify-tabs/#/?id=customization)部分并根据需要设置主题属性。
+
+```html
+
+```
+
+使用HTML 注释定义选项卡集`tabs:start`。`tabs:end`
+
+HTML 注释用于标记选项卡集的开始和结束。当 Markdown 在您的 docsify 站点(例如 GitHub、GitLab 等)之外呈现为 HTML 时,使用 HTML 注释可防止显示与选项卡相关的标记。
+
+```markdown
+
+
+...
+
+
+```
+
+使用**标题 + 粗体**标记定义选项卡集中的选项卡。
+
+标题文本将用作选项卡标签,所有后续内容将与该选项卡相关联,直到下一个选项卡或`tab:end`评论的开始。使用标题 + 粗体标记允许使用标准标记定义选项卡,并确保选项卡内容在您的 docsify 站点(例如 GitHub、GitLab 等)之外呈现时显示带有标题。
+
+```markdown
+
+
+#### **English**
+
+Hello!
+
+#### **French**
+
+Bonjour!
+
+#### **Italian**
+
+Ciao!
+
+
+```
+
+
+
+#### **English**
+
+Hello!
+
+#### **French**
+
+Bonjour!
+
+#### **Italian**
+
+Ciao!
+
+
+
+效果:
+
+![image-20220224000446534](https://gitee.com/tianzhendong/img/raw/master//images/202202240004587.png)
+
+### alert插件
+
+https://github.com/fzankl/docsify-plugin-flexible-alerts
+
+### 首页html文件
+
+```html
+
+
+
+
+
+ Tian's Blog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 🏃🏃🏃💨 加载中...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+## Nginx部署准备
+
+对于这类网站的部署,我们当然可以部署到`GitHub Pages`服务或者`Gitee Pages`服务上去
+
+也直接将其部署到云服务器上去。
+
+### 安装服务器软件
+
+这里选用Nginx这个Web服务器来驱动网站,因为Nginx服务器除了本身非常轻量,稳定,不耗资源之外,而且性能还好,还特别能扛并发。
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232345781.png)
+
+
+
+- 首先准备一个`nginx-1.17.10.tar.gz`的安装包,我们将其直接上传到云服务器的`root`⽬录下
+- 在`/usr/local/`下创建`nginx`⽂件夹并进⼊
+
+```shell
+cd /usr/local/
+mkdir nginx
+cd nginx
+```
+
+- 将Nginx安装包解压到`/usr/local/nginx`中即可
+
+```shell
+tar zxvf /root/nginx-1.17.10.tar.gz -C ./
+```
+
+解压完之后,在`/usr/local/nginx`⽬录中会出现⼀个`nginx-1.17.10`的目录
+
+- 预先安装额外的几个依赖
+
+```shell
+yum -y install pcre-devel
+yum -y install openssl openssl-devel
+```
+
+- 接下来编译安装Nginx即可
+
+```shell
+cd nginx-1.17.10
+./configure
+make && make install
+```
+
+安装完成后, Nginx的可执行文件位置位于
+
+```shell
+/usr/local/nginx/sbin/nginx
+```
+
+其配置⽂件则位于:
+
+```
+/usr/local/nginx/conf/nginx.conf
+```
+
+- 启动Nginx
+
+直接执⾏如下命令即可
+
+```shell
+/usr/local/nginx/sbin/nginx
+```
+
+- 如果想停⽌Nginx服务,可执⾏:
+
+```shell
+/usr/local/nginx/sbin/nginx -s stop
+```
+
+- 如果修改了配置⽂件后想重新加载Nginx,可执⾏:
+
+```shell
+/usr/local/nginx/sbin/nginx -s reload
+```
+
+### 上传网站到云服务器
+
+比如,我们可以直接在`/usr/local/nginx/`目录中创建一个`www`文件夹,用于存放我们本地的项目文件夹。
+
+然后我们可以直接将本地的项目文件夹`repository`上传到`www`目录里即可
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232345234.png)
+
+### Nginx配置和访问
+
+接下来我们打开路径`/usr/local/nginx/conf/nginx.conf`下的Nginx服务器配置文件,修改其中最关键的一个`location /`下的`root`目录配置为项目文件夹的路径即可
+
+```shell
+location / {
+ root /usr/local/nginx/www/repository;
+ index index.html index.htm;
+}
+```
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232345404.png)
+
+然后我们直接在浏览器中访问云服务器的公网IP,就可以访问该知识库网站了:
+
+![图片](https://gitee.com/tianzhendong/img/raw/master//images/202202232345961.jpeg)
+
+最后再将域名和这个IP一绑定,就OK了
+
+## nginx服务器添加密码访问
+
+### 通过htpasswd命令生成用户名及对应密码数据库文件
+
+```shell
+htpasswd -c /htpasswd/passwd.db test
+```
+
+说明:此命令是使用Crypt算法生产一个加密文件passwd.db。
+
+- test是用户名
+- /htpasswd/passwd.db 是密码文件存放地址
+- htpasswd apache的生产密码的插件
+
+把 passwd.db文件设置为777权限
+
+```shell
+chmod 777 文件名
+```
+
+### nginx域名配置文件修改
+
+```shell
+ location / {
+ root html;
+ index index.html index.htm index index.jpg;
+ auth_basic 'Restricted'; # 认证名称,随意填写
+ auth_basic_user_file /htpasswd/passwd.db; # 认证的密码文件,需要生产。
+ }
+```
+
+如果没有安装apache,可以安装如下软件,就有htpasswd这个命令了
+
+```shell
+yum -y install httpd-tools
+yum -y install httpd #安装httpd
+which htpasswd #查看是否安装
+rpm -qf /usr/bin/htpasswd #查看是否安装
+htpasswd -cb /usr/local/nginx/conf/htpasswd ceshi 123789 #生成密码文件
+chmod 400 /usr/local/nginx/conf/htpasswd #为了安全设置文件权限
+```
+
+然后重启nginx服务器即可实现nginx服务器添加密码
+
+```shell
+#3、检查语法并重启
+/usr/local/nginx/sbin/nginx -t
+/usr/local/nginx/sbin/nginx -s reload
+```
+
+## 定时git pull和重启nginx
+
+前提:www中已经设置了git仓库,这里为www下的NoteBooks文件夹
+
+- 拉取最新代码
+
+```shell
+git pull
+```
+
+
+
+- 在NoteBooks下新建自动化脚本
+
+```shell
+vim 111gitpull.sh
+```
+
+- 输入:
+
+```shell
+#!/bin/bash
+cd /usr/local/nginx/www/NoteBooks
+git pull
+/usr/local/nginx/sbin/nginx -s reload
+```
+
+- 设置自动启动,这里每30分钟拉取一次
+
+进入root用户
+
+编辑cron脚本
+
+```shell
+crontab -e
+```
+
+输入:
+
+```shell
+*/30 * * * * /usr/local/nginx/www/NoteBooks/111gitpull.sh
+```
+
+- 将服务自动启动
+
+```shell
+vim /etc/rc.d/rc.local
+```
+
+这个脚本的末尾加上:
+
+```shell
+/sbin/service crond start
+```
+
+
+
+## 配置Gittalk
+
+### 第一步:创建OAuth Application
+
+这里假设你的[github](https://so.csdn.net/so/search?q=github&spm=1001.2101.3001.7020)仓库已经创建好,docsify也已经安装使用中。申请授权地址[点击这里](https://github.com/settings/applications/new)
+几个参数解释:
+
+- Application name:项目名,随便填
+- Homepage URL:博客地址,也就是要访问的地址,我的是https://waldeincheng.github.io/Python-Notes
+- Application description:应用描述,随便填,我的是waldeincheng’s blog
+- Authorization callback URL:可以指向新的URL,或者跟上面的Homepage URL一样即可
+
+完成后会生成相应的`clientID`和`clientSecret`
+
+### 第二步:配置gittalk
+
+docsify下有一个index.html配置文件,打开,添加上
+
+```
+
+
+
+
+```
+
+配置:
+
+- , css文件放到index.html里的`\`标签里
+- `clientID`:刚刚获取的ID
+- `clientSecret`:刚刚获取的授权密码
+- `repo`:仓库名
+- `owner`:github用户名
+- `admin`:[‘github用户名’]
+
+保存修改,git提交上去就行了,显示格式如图
+
+## Windows自动启动Docsify
+
+使用 `.bat` 的话,会显示一个短暂的黑窗口所以要想后台静默运行,需要用到 `.vbs` 脚本
+
+### 创建vbs脚本
+
+在docsify目录下新建一个vbs文件,内容如下
+
+```vbscript
+set ws=WScript.CreateObject("WScript.Shell")
+
+ws.Run "docsify serve",0
+```
+
+该脚本含义为在当前目录下执行 `docsify serve` 命令
+
+### 开启启动
+
+windows 开机会自动调用下列两个文件夹下的可执行文件
+
+用户目录的自启文件夹:
+
+```text
+C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
+```
+
+> 注意用户名,每个用户都不相同
+
+所有用户都会执行的全局自启文件夹
+
+```text
+C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
+```
+
+在脚本上右键创建快捷方式,然后将这个快捷方式放到上述两个文件夹任意一个即可
\ No newline at end of file
diff --git a/source/_posts/Frp.md b/source/_posts/Frp.md
new file mode 100644
index 0000000..5f1e888
--- /dev/null
+++ b/source/_posts/Frp.md
@@ -0,0 +1,238 @@
+---
+title: Frp
+top: true
+cover: true
+toc: true
+mathjax: false
+summary: >-
+ frp是一种内网穿透软件,可以在没有公网ip的情况下,通过云服务器连接电脑
+tags:
+ - frp
+ - 内网穿透
+categories:
+ - 折腾篇
+ - 效率篇
+author: TianZD
+abbrlink: c65a4228
+date: 2022-04-27 12:31:14
+---
+
+## frp服务端和客户端配置
+
+[blog.csdn.net](https://blog.csdn.net/weixin_44373340/article/details/109803722)
+
+### 服务器端配置
+
+frp的服务器端,一般命名为frps,配置文件是frps.ini,首先需要下载frp,可以在(https://[github](https://so.csdn.net/so/search?q=github&spm=1001.2101.3001.7020).com/fatedier/frp/releases)下载最新版的frp。(此处以 frp\_0.32.0\_linux\_amd64 为例).
+
+```shell
+Wget https://github.com/fatedier/frp/releases/download/v0.32.0/frp_0.32.0_linux_amd64.tar.gz
+tar -zxvf frp_0.32.0_linux_amd64.tar.gz
+cd frp_0.32.0_linux_amd64
+```
+
+
+
+
+进入frp\_0.32.0\_linux\_amd64文件夹,打开frps.ini进行服务器端配置
+
+```shell
+vim frps.ini
+```
+
+
+
+
+如果出现无法写入的错误请使用
+
+```shell
+sudo vim frps.ini
+```
+
+
+
+
+在frps.ini文件中配置如下:
+
+```shell
+[common]
+bind_port = 7000 #绑定的端口,需要与客户端中 server_port 参数保持一致
+vhost_http_port = 80 #虚拟主机运行在本机的端口,如果 vps 有服务占用了端口,应当更换
+dashboard_port = dashboard_port_number #frp 后台服务页面的端口,如果设置 8000,便可通过 http://yourip:8000 来访问 frps 的后台页面
+dashboard_user = dashboard_user_name #:frp 后台服务页面的管理员用户名
+dashboard_pwd = dashboard_pwd_value #frp 后台服务页面的管理员密码
+privilege_token = privilege_token_value #自定义值,必须与客户端中的 privilege_token 保持一致
+```
+
+
+
+
+配置完成之后,便可以通过如下命令启动 frps:
+
+```shell
+./frps -c ./frps.ini #启动服务端frp
+```
+
+
+
+
+### 客户端配置
+
+客户端一般命名为frpc,配置文件是frpc.ini,首先需要下载frp,可以在https://github.com/fatedier/frp/releases下载最新版的frp。(此处以 frp\_0.32.0\_linux\_amd64 为例)
+
+```shell
+wget https://github.com/fatedier/frp/releases/download/v0.32.0/frp_0.32.0_linux_amd64.tar.gz
+tar -zxvf frp_0.32.0_linux_amd64.tar.gz
+cd frp_0.32.0_linux_amd64
+```
+
+
+
+
+进入frp\_0.32.0\_linux\_amd64文件夹,打开frps.ini进行服务器端配置
+
+```shell
+vim frpc.ini #无法写入添加sudo权限
+```
+
+
+
+
+在frpc.ini文件中配置如下:
+
+```shell
+[common]
+server_addr = your_server_ip #服务器端的 ip
+server_port = 7000 #服务器端的端口,即 bind_port
+privilege_token = privilege_token_value #同服务器端的 privilege_token 保持一致
+[ssh]
+type = tcp
+local_ip = 127.0.0.1
+local_port = 22
+remote_port = remote_port_number #远程端口,即 ssh 连接树莓派时的端口
+```
+
+
+
+
+配置完成之后,便可以通过如下命令启动 frps:
+
+```sh
+./frpc -c ./frpc.ini #启动客户端frp
+```
+
+
+
+
+### frp自启动配置
+
+服务端自启动:
+
+```sh
+sudo vim /lib/systemd/system/frps.service #进入frps.service文件编写
+#写入下列命令
+[Unit]
+Description=fraps service
+After=network.target network-online.target syslog.target
+Wants=network.target network-online.target
+
+[Service]
+Type=simple
+ExecStart=/your/path/frps -c /your/path/frps.ini #启动服务的命令(此处写你的frps的实际安装目录)
+ #路径为实际安装路径,比如frp在usr用户的frp下,应该配置为ExecStart=/home/usr/frp/frps -c /home/usr/frp/frps.ini
+[Install]
+WantedBy=multi-user.target
+```
+
+
+
+
+然后启动 frps
+
+```sh
+sudo systemctl start frps
+```
+
+
+
+
+再打开自启动
+
+```sh
+sudo systemctl enable frps
+```
+
+
+
+
+此外
+
+```sh
+sudo systemctl restart frps #重启
+sudo systemctl stop frps #停止
+sudo systemctl status frps #查看应用日志
+```
+
+
+
+
+客户端自启动配置类似。将frps改为frpc
+
+### 参考链接
+
+https://www.jianshu.com/p/a921e85280ed-
+https://blog.csdn.net/sinat\_29963957/article/details/83591264?depth\_1-utm\_source=distribute.pc\_relevant.none-task&utm\_source=distribute.pc\_relevant.none-task
+
+[查看原网页: blog.csdn.net](https://blog.csdn.net/weixin_44373340/article/details/109803722)
+
+
+
+
+
+## FRP+远程桌面
+
+服务端系统:CentOS Linux release 7.6.1810 (Core)
+
+1.服务端配置:
+
+2.在被远程的电脑安装客户端:
+
+ 下载:https://files.cnblogs.com/files/chenjw-note/frp\_0.21.0\_windows\_386.zip
+
+ 解压:
+
+ 修改配置文件
+
+本地端口:```3389```
+
+
+
+ 使用命令行运行程序:
+
+进入对应程序目录:cd C:\\Users\\chenjianwen\\Desktop\\frp\_远程桌面使用流程\-芒果\\frp\_0.21.0\_windows\_386
+
+执行命令:.\\frpc.exe -c frpc.ini
+
+看到如图则成功安装,这个黑色框框不能关掉了哦
+
+![image-20220211102656844](https://gitee.com/tianzhendong/img/raw/master//images/202202111026940.png)
+
+开启远程设置:
+
+![image-20220211102710275](https://gitee.com/tianzhendong/img/raw/master//images/202202111027471.png)
+
+**以上,仅执行一次部署完即可**
+
+\==================================================
+
+ 使用家里电脑的远程桌面工具连接公司办公电脑
+
+![image-20220211102720319](https://gitee.com/tianzhendong/img/raw/master//images/202202111027397.png)
+
+开始连接远程桌面,输入框输入:118.89.23.85:上面根据工号定义的端口
+
+![image-20220211102631951](https://gitee.com/tianzhendong/img/raw/master//images/202202111026039.png)
+
+[查看原网页: www.cnblogs.com](https://www.cnblogs.com/chenjw-note/p/12659786.html)
+
+
diff --git a/source/_posts/Hexo-xr.md b/source/_posts/Hexo-xr.md
index df4fa05..b5fb984 100644
--- a/source/_posts/Hexo-xr.md
+++ b/source/_posts/Hexo-xr.md
@@ -10,8 +10,9 @@ summary: 在Hexo部署时会默认渲染source下的所有html页面,但有时
tags:
- Hexo
- 渲染绕过
+ - 转载
categories:
- - 博客篇
+ - Luckey博客篇
abbrlink: 17fd92ae
reprintPolicy: cc_by
date: 2020-04-28 00:00:00
diff --git a/source/_posts/PicGo-GitHub.md b/source/_posts/PicGo-GitHub.md
index f8deef6..4f9b885 100644
--- a/source/_posts/PicGo-GitHub.md
+++ b/source/_posts/PicGo-GitHub.md
@@ -10,8 +10,9 @@ summary: 使用 PicGo+jsdelivr+GitHub 打造最稳定可靠的免费图床。
tags:
- PicGo
- GitHub图床
+ - 转载
categories:
- - 博客篇
+ - Luckey博客篇
abbrlink: 7a46f93c
reprintPolicy: cc_by
date: 2020-03-15 00:00:00
diff --git a/source/_posts/blog-aliyun.md b/source/_posts/blog-aliyun.md
index eac1c92..ac98e54 100644
--- a/source/_posts/blog-aliyun.md
+++ b/source/_posts/blog-aliyun.md
@@ -11,8 +11,9 @@ tags:
- Hexo
- 阿里云
- 博客
+ - 转载
categories:
- - 博客篇
+ - Luckey博客篇
abbrlink: 19d2a4e6
reprintPolicy: cc_by
date: 2020-02-27 00:00:00
diff --git a/source/_posts/jQuery+CSS3.md b/source/_posts/jQuery+CSS3.md
index 629248f..aaf1668 100644
--- a/source/_posts/jQuery+CSS3.md
+++ b/source/_posts/jQuery+CSS3.md
@@ -10,7 +10,9 @@ summary: '一款jQuery+CSS3的文字背景粒子动画特效,一共6种粒子
tags:
- jQuery+CSS3
- 粒子特效
+ - 转载
categories:
+ - Luckey博客篇
- 前端篇
abbrlink: 4b3510a4
reprintPolicy: cc_by
diff --git a/source/_posts/markdown.md b/source/_posts/markdown.md
index 686236a..ad3941f 100644
--- a/source/_posts/markdown.md
+++ b/source/_posts/markdown.md
@@ -2,8 +2,21 @@
title: markdown
abbrlink: 96be88e3
date: 2022-04-23 20:34:26
-tags:
mathjax: true
+cover: true
+toc: true
+summary: >-
+ Markdown笔记教程
+tags:
+ - markdown
+ - 效率
+categories:
+ - 效率
+reprintPolicy: cc_by
+author: TianZD
+coverImg:
+img:
+password:
---
[toc]
diff --git a/source/contact/index.md b/source/contact/index.md
index 956ad70..29066b7 100644
--- a/source/contact/index.md
+++ b/source/contact/index.md
@@ -9,3 +9,11 @@ layout: "contact"
---
在这里可以留下你的足迹,欢迎在下方留言,欢迎交换友链,一起交流学习!
+## 个人链接
+
+博客名称: TianZDの博客
+
+博客网址: http://106.14.31.180
+
+博客介绍:
+
diff --git a/themes/matery/_config.yml b/themes/matery/_config.yml
index d0e2a90..6d6d936 100644
--- a/themes/matery/_config.yml
+++ b/themes/matery/_config.yml
@@ -34,9 +34,9 @@ menu:
Contact:
url: /contact
icon: fas fa-envelope
- Navi:
- url: /tools
- icon: fas fa-suitcase
+ # Navi:
+ # url: /tools
+ # icon: fas fa-suitcase
Windows:
url: /Windows
icon: fas fa-desktop
@@ -85,9 +85,9 @@ menu:
# 站点运行开始时间.
time:
enable: true
- year: 2021 # 年份
+ year: 2022 # 年份
month: 04 # 月份
- date: 02 # 日期
+ date: 26 # 日期
hour: 00 # 小时
minute: 00 # 分钟
second: 00 # 秒
@@ -106,7 +106,7 @@ cover:
# index page dream text,
# 配置首页显示"梦想"的语句.
dream:
- enable: false
+ enable: true
showTitle: true
title: 我的梦想
text: 不是每个人都应该像我这样去建造一座水晶大教堂,但是每个人都应该拥有自己的梦想,设计自己的梦想,追求自己的梦想,实现自己的梦想。梦想是生命的灵魂,是心灵的灯塔,是引导人走向成功的信仰。有了崇高的梦想,只要矢志不渝地追求,梦想就会成为现实,奋斗就会变成壮举,生命就会创造奇迹。——罗伯·舒乐
@@ -179,7 +179,7 @@ recommend:
# Configure website favicon and LOGO
# 配置网站favicon和网站LOGO
-favicon: https://gitee.com/tianzhendong/img/raw/master/images/TianZD22.png
+favicon: https://gitee.com/tianzhendong/img/raw/master/images/tian.png
logo: https://gitee.com/tianzhendong/img/raw/master/images/TianZD22.png
# The configuration of the second button in the home banner,
@@ -189,13 +189,13 @@ indexbtn:
enable: true
name: Github
icon: fab fa-github-alt
- url: https://github.com/ZDTian/
+ url: https://github.com/tianzhendong/
# The configurations of the second line of home banner
# icon/button will not show up if you leave the corresponding socialLink empty
# 首页 banner 中的第二行个人信息配置,留空即不启用
socialLink:
- github: https://github.com/ZDTian/
+ github: https://github.com/tianzhendong/
email: 1203886034@qq.com
facebook: # https://www.facebook.com/xxx
twitter: # https://twitter.com/xxx
@@ -266,7 +266,8 @@ clicklove:
# profile in about page, including avatars, career, and personal introductions.
# 在”关于”页面中配置个人信息,包括头像、职业和个人介绍.
profile:
- avatar: https://gitee.com/tianzhendong/img/raw/master/images/TianZD22.png
+ # avatar: https://gitee.com/tianzhendong/img/raw/master/images/TianZD22.png
+ avatar: https://gitee.com/tianzhendong/img/raw/master/images/tian.png
career: 业余码农 | 编程爱好者 | 被资本剥削者
introduction: The harder you work, the luckier you will be
@@ -400,7 +401,7 @@ valine:
placeholder: '留下你的足迹..' # Comment Box placeholder
background: /medias/comment_bg.png
count: true
- enableQQ: 16463223 # 改为自己的QQ号
+ enableQQ: 1203886034 # 改为自己的QQ号
recordIP: true
requiredFields:
- nick
@@ -473,7 +474,7 @@ changyan:
# 配置是否在 header 中显示 fork me on github 的图标,默认为true,你可以修改为你的仓库地址.
githubLink:
enable: true
- url: https://github.com/ZDTian/
+ url: https://github.com/tianzhendong/
title: Fork Me
# The password verification feature of read post. To use this feature,
@@ -504,7 +505,7 @@ googleAnalytics:
# 添加 baidu Analytics 配置
baiduAnalytics:
enable: true
- id: aaa6c944b0ed07922901d7fc571a171d
+ id: ""
# 百度搜索资源平台提交链接
baiduPush: true
@@ -703,7 +704,7 @@ banner:
icp:
enable: true
url: http://www.beian.miit.gov.cn/ # 备案链接
- text: 闽ICP备xxxxxxx号-1 # 备案信息
+ text: 沪ICP备xxxxxxx号-1 # 备案信息
# CDN访问加速
# 第一次使用本功能,一定要先配置url,再`hexo cl && hexo g && hexo d`部署到GitHub的仓库,注意!必须是GitHub的仓库!