Browse Source

20220427初版已形成

master
tianzhendong 3 years ago
parent
commit
38439e5afb
  1. 9
      _config.yml
  2. 16
      scaffolds/post.md
  3. 16
      source/_data/friends.json
  4. 3
      source/_posts/Blog.md
  5. 3
      source/_posts/BlogOpen.md
  6. 1290
      source/_posts/Docsify.md
  7. 238
      source/_posts/Frp.md
  8. 3
      source/_posts/Hexo-xr.md
  9. 3
      source/_posts/PicGo-GitHub.md
  10. 3
      source/_posts/blog-aliyun.md
  11. 2
      source/_posts/jQuery+CSS3.md
  12. 15
      source/_posts/markdown.md
  13. 8
      source/contact/index.md
  14. 29
      themes/matery/_config.yml

9
_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 # 文本文档的地址, 新链接会保存在此文本文档里

16
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:
---

16
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",
"avatar": "https://sunhwee.com/hwsun.jpg",
"name": "洪卫の博客",
"introduction": "UESTC CVer",
"url": "http://sunhwee.com",
"title": "访问主页"
}
]

3
source/_posts/Blog.md

@ -12,8 +12,9 @@ tags:
- Hexo
- Github
- 博客
- 转载
categories:
- 博客篇
- Luckey博客篇
abbrlink: e3e08109
date: 2019-08-27 11:41:03
img:

3
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

1290
source/_posts/Docsify.md

File diff suppressed because it is too large

238
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)

3
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

3
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

3
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

2
source/_posts/jQuery+CSS3.md

@ -10,7 +10,9 @@ summary: '一款jQuery+CSS3的文字背景粒子动画特效,一共6种粒子
tags:
- jQuery+CSS3
- 粒子特效
- 转载
categories:
- Luckey博客篇
- 前端篇
abbrlink: 4b3510a4
reprintPolicy: cc_by

15
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]

8
source/contact/index.md

@ -9,3 +9,11 @@ layout: "contact"
---
在这里可以留下你的足迹,欢迎在下方留言,欢迎交换友链,一起交流学习!
## 个人链接
博客名称: TianZDの博客
博客网址: http://106.14.31.180
博客介绍:

29
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的仓库!

Loading…
Cancel
Save