####安装Fail2Ban ```csharp sudo apt update sudo apt install fail2ban rsyslog -y ``` 安装 rsyslog,以确保日志文件能够正常生成并供 Fail2Ban 使用 ####启动服务 ```csharp sudo systemctl enable --now fail2ban sudo syst...
#### Debian下安装&配置方法: ```csharp apt install ipset ipset create blockip hash:net --exist ipset add blockip ip/24 ipset save > /etc/ipset.conf iptables -I INPUT 1 -m set --match-set blocki...
1. 确认目前内核版本: ``` uname -a ``` 2. 更新源信息,开始看装指定版本内核: ``` apt update apt install linux-image-5.10.0-0.deb10.30-cloud-amd64 apt install linux-headers-5.10.0-0.deb10.30-cloud-amd64 update-grub ...
最近在部署一些服务的时候发现有些程序默认是不支持windows下作为服务来部署的,网上找到一个工具WinSW,看说明是可以通过程序+配置文件,就可以将多个程序作为服务加入到系统中的。 ###具体方法如下: 1. 下载WinSW安装包 github下载地址: ```csharp https://github.com/winsw/winsw/releases ``` 可以将下载...
### 检查Ngnix是否有realip模块 首先确保nginx是否启用了http_realip模块。我这里是在Ubuntu 22.04中使用apt安装的nginx,已经包含了该模块。可以使用如下指令检查nginx -V输出的信息是否包含--with-http_realip_module。 ```csharp nginx -V 2>&1 | grep "realip" ``` ...
启用 TCP Timestamps: ####1.1、Windows 在 PowerShell(管理员身份运行) 中执行: ```csharp netsh interface tcp set global timestamps=enabled ``` 检测是否开启: ```csharp netsh interface tcp show global ``` 如第一行的...
一个基于 Vue 3 + Express 的网盘资源搜索与转存工具,支持响应式布局,移动端与PC完美适配,可通过 Docker 一键部署。 ```csharp https://github.com/jiangrui1994/cloudsaver ```
为方便UDP2RAW作为Linux的一个服务启动,并长期运行在后台,创建一个Srvice就可以,具体脚本如下: ```csharp cat > /etc/systemd/system/udp2raw.service
在日常使用中Debian默认版本需要更新软件时,默认都是稳定版,如果需要使用测试版、不稳定版需要手工配置一下源。具体方法如下: 1、修改source.list文件: ```csharp nano /etc/ap/sources.list ``` #####稳定版 ```csharp deb http://deb.debian.org/debian/ stable main ...
暂无动态