由于生产环境中有使用 certbot 工具为 apache 的虚拟主机自动申请证书,记录下 certbot 配置操作过程 certbot 官方站点: https://certbot.eff.org/ 安装 certbot certbot 为 python 项目可以直接使用 pip 工具进行安装,在 centos 的 epel
环境准备 1 2 yum install -y curl-devel openssl-devel expat-devel gettext-devel readline-devel zlib-devel asciidoc xmlto docbook2X autoconf yum install -y gcc gcc-c++ make 为了解决二进制命令名称不同 1 ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi 编译 1 2 3 4 5 6 wget --no-check-certificate https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.23.4.tar.gz tar xzf git-2.23.4.tar.gz cd git-2.23.4/ ./configure --prefix=/usr make -j 4 make install fpm 打包 编
Tab 转为 空格 在 $HOME/.vimrc 文件中加入以下配置 1 2 set expandtabset tabstop=4 将现有文件的 Tab 转换为 空格 1 2 3 :set ts=4:set expandtab:%retab! 为 Shell 脚本定制开头片断 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 autocmd BufNewFile *.sh
官方文档: https://filebrowser.org/ 安装 1 curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash 配置 创建配置目录 /etc/filebrowser 1 sudo mkdir -p /etc/filebrowser 初始化数据库文件 1 sudo filebrowser config init -d /etc/filebrowser/filebrowser.db 默认 filebrowser.db 是不存在的, filebrowser 配置信息都保存在数据库文件中 配置文
Caddy 是一个简单易用的 Web 服务端应用,它可以自动为域名申请证书,自动续期等… 官方文档: https://caddyserver.com/docs/ 安装 以 Ubuntu 为例,其它安装方式请参考: https://caddyserver.com/docs/install#static-binaries 1 2 3 4
在 Windows 操作系统环境下的 Xshell 等程序中执行 “sz/rz” 命令,会自动弹出一个图形界面窗口(是对ZMODEM协议信号捕获事件的响应),用于选取“从服务
当我们在安装 Mac 应用时,遇到提示 “ XXX.app 已损坏,打不开。您应该将它移到废纸篓 ” 或 “ 打不开 XXX.app,因为它来自身份不明的开发者 ” 可以使用以下方
配置网络 配置接口 ip 地址 1 2 3 4 nmcli connection modify eth0 ipv4.method manual \ ipv4.address "172.16.1.100/24" \ ipv4.geateway "172.168.1.2" \ ipv4.dns "172.168.1.2" 以上命令会修改网卡配置文件 /etc/sysocnfig/network-scri
环境准备 这里使用3台虚拟机来部署 mongodb 分片集群; 各角色使用的 ip, 端口如下表 角色 端口 ip 地址 mongos 28017 172.16.1.100 config 27017 172.16.1.100 config 27018 172.16.1.100 config 27019 172.16.1.100 shard1 27017 172.16.1.101 shard1 27018 172.16.1.101 shard1 27019 172.16.1.101 shard2 27017 172.16.1.102 shard2 27018 172.16.1.102 shard2 27019
由于 zabbix 自身并不支持告警分组及收敛功能,经常会出现告警信息轰炸的情况,为了解决这个情况可以使用 Alertmanager 来管理 zabbix 的告警消息 Alertmanager 特性 Alertmanager 除了提供基本的告警通