Github部署简单流程
1git clone url #克隆
1git remote add origin url #远程连接
1git remote -v #查看连接
1git remote remove origin #断开连接
1git add .
1git commit -m "随便写"
1git push -u origin main #上传
EFB 和 Go-CQHTTP 的 Docker Compose 部署方式
安装docker12curl -sSL https://get.docker.com/ | shsystemctl enable --now docker
安装docker-compose12curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-composechmod +x /usr/local/bin/docker-compose
拉取项目1234# 克隆git clone -b go-cqhttp https://github.com/xzsk2/TG-EFB-QQ-Docker.git# 进入文件夹cd TG-EFB-QQ-Docker
编辑 gocq/config.yml 配置文件1nano gocq/config.yml
123account: # 账号相关 uin: 000000000 # QQ 账号 password: '' ...
无宝塔反代设置
Nginx Proxy Manager
门槛低,操作简单,不需要你掌握很复杂的Nginx配置知识,只需要几步就能很轻松完成反向代理的设置和SSL证书的部署。
安装docker12curl -sSL https://get.docker.com/ | shsystemctl enable --now docker
安装docker-compose12curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-composechmod +x /usr/local/bin/docker-compose
下载Docker-compose文件1234567891011services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - ...
Docker搭建Miniflux阅读器
安装BBR1wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
虚拟内存1wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
安装宝塔1yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装Docker12curl -sSL https://get.docker.com/ | shsystemctl enable --now docker
安装Docker-compose12curl -L https://github.com/docker/co ...
Docker安装FreshRSS
安装BBR1wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
虚拟内存1wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
安装宝塔1yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装Docker12curl -sSL https://get.docker.com/ | shsystemctl enable --now docker
安装Docker-compose12curl -L https://github.com/docker/co ...
搭建RSS阅读器Tiny Tiny RSS
安装BBR1wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
虚拟内存1wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
安装宝塔1yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装Docker12curl -sSL https://get.docker.com/ | shsystemctl enable --now docker
安装Docker-compose12curl -L https://github.com/docker/co ...
vps命令
宝塔5.9版本1yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
国内aria2安装1wget -N https://gitee.com/jiangcxy/aria2/raw/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh
一键更换国内软件源脚本1bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
移动命令12mv /www/backup/database/* /gd/buckup/sql/mv /www/backup/site/* /gd/buckup/web/
7z安装命令1yum install p7zip
批量删除1find old -type f -name &quo ...
Hexo搭建遇到的问题
1.自己的博客图片链接使用B站的图床,如果直接使用这些链接的话,是会返回403的,因为B站开启了防盗链,利用的是HTTP的Referer属性做判断。如果Referer是他白名单之外的网站,就会返回403。
已解决:在html的head标签中设置如下标志,那么全站资源引用都不会携带referrer
进入\themes\butterfly\layout\includes找到head.pug,添加
1meta(name="referrer" content="no-referrer")
解决hexo引入图床,手机和web不显示图片的问题 - 简书 (jianshu.com)
利用Telegram搭建RSS中文订阅机器人(RSS-to-Telegram-Bot)
Telegram 有强大的机器人系统,可以借助 Telegram 机器人来做很多事,做一个 RSS 订阅机器人当然也不在话下。
申请 Bot打开 Telegram,搜索 @BotFather,发送 /newbot ,按要求完成 Bot 机器人申请。完成后妥善保管专属的 HTTP API TOKEN(保存好,之后会用到)。
搭建rssbot这里直接使用开源的Telegram RSS 机器人就行,项目地址:https://github.com/Rongronggg9/RSS-to-Telegram-Bot
下面将介绍docker-compose版本的使用方法,执行如下命令:
12#下载docker-compose.yml文件wget https://github.com/Rongronggg9/RSS-to-Telegram-Bot/blob/dev/docker-compose.yml.sample
或者直接使用下列
123456789101112131415161718192021services: main: image: rongronggg9/rss-to- ...
Hello World
自定义文章封面12top_img: 链接cover: 链接
常用命令12345678hexo new "name" # 新建文章hexo new page "name" # 新建页面hexo g # 生成页面hexo d # 部署hexo g -d # 生成页面并部署hexo s # 本地预览hexo clean # 清除缓存和已生成的静态文件hexo help # 帮助
1hexo clean && hexo g && hexo s #清理并生成新的页面在本地预览
1hexo clean && hexo g && hexo d #清理并生成新的页面上传到github
1环境搭建Hexo 基于 Node.js,搭建过程中还需要使用 npm(Node.js 已带) 和 git,因此先搭建本地操作环境,安 ...














