Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
vim设置与使用
我的vim自定义配置
~/.vim/vimrc123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596" 自定义快捷键let mapleader=","nnoremap <leader>q :q<CR> nnoremap <leader>wq :wq<CR> nnoremap <leader>nq :q!<CR> " 基于文件扩展名或内容的文件类型检测filetype on" 语法高亮syntax enable" 行号set number" 缩进set autoindentset cindentset tabstop=4s ...
开源网页邮箱客户端rainloop实践
RainLoop是一个开源的基于Web的邮件客户端,可以让你通过浏览器轻松地访问和管理你的电子邮件,项目官网:https://www.rainloop.net/
部署环境
本地kvm虚拟机:debian12.5
虚拟机内存:2G
cpu核心:2核
docker方式部署MySQL8和php8环境
安装docker环境,基于官方软件源12345678910111213141516171819202122232425262728293031323334353637383940## 查看脚本root@env:~# cat docker_debian_install.sh#!/bin/bashecho -e '\e[33m清理旧版本。。。\e[0m'systemctl stop dockerdocker image prune -a -fdocker container prune -fdocker system prunedocker network prunedocker volume pruneapt purge docker docker-e ...
elk实践
实践环境
系统版本:debian12
组件版本:7.17.16
elasticsearch12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152## 下载程序root@master-100:~# wget -c https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.16-linux-x86_64.tar.gz## 解压移动root@master-100:~# tar xf elasticsearch-7.17.16-linux-x86_64.tar.gzroot@master-100:~# mv elasticsearch-7.17.16 /usr/local/elastic## 系统参数root soft nofile 1048576root hard nofile 1048576* soft nofile 1048576* hard nofile 10485 ...
redis sentinel实践
实践环境
系统环境:debian12
redis版本:redis-7.2.3
单台服务器多实例(实用环境可以分布部署到多台服务器)
基本安装123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687## 安装编译依赖root@master-100:~# apt update && apt upgrade -y && apt install build-essential## 下载源码包root@master-100:~# wget -c https://github.com/redis/redis/archive/7.2.3.tar.gz## 解压并进入目录root@master-100:~# tar xf 7.2.3.tar.gz root@master-100:~# ls7.2.3 ...
mongodb副本集实践
实践环境
系统环境:debian12
mongodb版本:6.0.12
单台服务器多实例(实用环境可以分布部署到多台服务器)
基本安装1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071## 二进制包下载root@master-100:~# wget -c https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian11-6.0.12.tgz## 解压移动root@master-100:~# tar xf mongodb-linux-x86_64-debian11-6.0.12.tgzroot@master-100:~# mv mongodb-linux-x86_64-debian11-6.0.12 /usr/local/mongo## 删除其他文件,创建所需目录root@master-100:/usr/local ...
mysql主从实践
基本环境
系统环境:debian12
mysql版本:mysql-5.7.44
mysql基本安装123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109## 下载二进制包root@master-100:~# wget -c https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.44-linux-glibc2.12-x86_64.tar.gz## 解压移动到部署目录root@master-100:~# tar xf mysql-5.7.44-linux-glibc2.12-x86_64.tar.gzroot@master-100:~# mv mysql-5. ...
终端复用器tmux拾记
项目网址: github
基本概念
会话(Session):tmux的最顶层结构,包含一个或多个窗口。
窗口(Window):会话内的分隔,包含一个或多个面板。
面板(Pane):窗口内的分隔,用于运行命令。
安装debian系sudo apt -y install tmux
会话
操作
注释
tmux
创建一个新的会话
tmux new -s tmp1
创建一个名为tmp1的新会话
ctrl+b d/tmux detach
分离会话
tmux attach -t tmp1
重连会话
exit/ctrl+b &/ctrl+d/tmux kill-session -t test
退出会话
tmux ls/list-sessions
列出会话
tmux switch -t test
切换到指定会话
tmux rename-session -t tmux tmx
重命名session
窗口
操作
注释
ctrl+b c
创建新窗口
ctrl+b n/p
切换窗口
...
开源openvpn-2.6.6工具部署
环境操作系统ubuntu-22.04.3,源码获取openvpn-2.6.6.tar.gz
编译安装openssl-1.1.1w.tar.gz1234567891011121314151617## 解压root@192-168-3-11:~# tar xf openssl-1.1.1w.tar.gz## 配置root@192-168-3-11:~/openssl-1.1.1w# ./config --prefix=/usr/local/openssl## 安装make && make install## 动态库配置root@192-168-3-11:/etc/ld.so.conf.d# cat /etc/ld.so.conf.d/ssl.conf /usr/local/openssl/lib## 检验root@192-168-3-11:~/openvpn-2.6.6# ln -s /usr/local/openssl/bin/openssl /usr/bin/opensslroot@192-168-3-11:~/openvpn-2.6.6# openssl versio ...
squid源码构建容器镜像
源码获取squid-5.9官网地址wget -c http://www.squid-cache.org/Versions/v5/squid-5.9.tar.xz
编译1234567891011121314151617181920212223242526272829303132333435363738394041# 系统环境root@192-168-3-11:~# head -5 /etc/os-releasePRETTY_NAME="Ubuntu 22.04.3 LTS"NAME="Ubuntu"VERSION_ID="22.04"VERSION="22.04.3 LTS (Jammy Jellyfish)"VERSION_CODENAME=jammy# 依赖apt -y install build-essential# tar xf squid-5.9.tar.xz && cd squid-5.9 && lsacinclude contrib INSTA ...










