- 
            ssh密钥类型选择 Thursday, May 25, 2023 As everyone knows,ssh key can improve ssh connection security. RSA(Rivest–Shamir–Adleman)是最早的公钥密码系统之一,被广泛用于安全数据传输。它的… 
- 
            Proxmox高可用集群 Wednesday, May 24, 2023 接上文proxmox安装~ 安装集群顺序 安装proxmox 创建并加入集群 创建pveceph分布式存储 创建高可用 创建虚拟机并测试 创建Bond网络… 
- 
            Proxmox安装 Tuesday, May 23, 2023 本文使用非系统镜像模式安装 安装debian系统 配置debian网卡 服务器需要使用两个网口,一个access,一个trunk,这里使用acce… 
- 
            Rsync+inotify数据实时同步 Monday, May 22, 2023 不啰嗦,不介绍rsync用法,直接实现使用 rsyncd.conf配置 # vim /etc/rsyncd.conf port=873 log file=/var/log/rsync.log pid file=/var/run/rsyncd.pid [test] path=/home/test_server use chroot=true max connections=4 read only=no list=false uid=root gid=root auth users=test secrets file=/etc/rsync.pass hosts allow=192.168.0.31 auth users 与系统用户没有任何… 
- 
            一朝shell函数倾斗转星移任我行 Friday, April 17, 2020 函数 函数(function),可以理解为:函数是实现一定功能的代码块。 函数也是重用代码(reuse code)的很好方式。 可以把函数想象成sh… 
- 
            循环往复shell开路 Friday, March 27, 2020 while 循环 while循环的逻辑: while [ 条件测试 ] do 做某些事 done 也可以这样: while [ 条件测试 ];do 做某些事 done 例子: #!/bin/bash while [ -z $response ] || [ $response != 'yes' ] do read -p 'say yes:' response done… 
- 
            条件一出shell不服 Wednesday, March 25, 2020 if 最常用的条件 if [ 条件测试 ] then 做这个 fi fi意思是if语句结束。then是"那么"的意思。 “做这个"… 
- 
            变量在手shell不愁 Tuesday, March 24, 2020 指定脚本要使用的Shell 第一行 #!/bin/bash ,#!叫做She-bang。 Shell 脚本注释以 # 开头。 以调试模式运行 bash -x test.sh 会把脚本运行时的细节打印出来,在出现错… 
- 
            定时任务 Friday, March 20, 2020 at crontab 47 * * * * command 每个小时的 47 分都执行 command 命令,也就是 00 点 47 分, 01 点 47 分, 02 点 47 分等等 0 0 * * 1 command 每个礼拜一的凌晨都执行 command 命令 30 5 1-15 * * command 每个月… 
- 
            输入重定向和管道 Wednesday, March 18, 2020 <:从文件中读取。用于指定命令的输入。 cat 1.txt 和 cat < 1.txt 运行结果一样,原理不一样。 cat 1.txt :cat 命令接受的输入是 1.txt 这个文件名,要先打开1.tx… 

