修改文档

This commit is contained in:
2024-12-09 16:12:32 +08:00
parent a5446848a1
commit 0c02220245
2 changed files with 21 additions and 10 deletions

Binary file not shown.

View File

@@ -20,12 +20,14 @@
```bash
sudo apt update
sudo apt install build-essential golang libpcap-dev libcap-dev libipset-dev libsystemd-dev
sudo apt install build-essential golang
sudo apt install libpcap-dev libcap-dev libipset-dev libsystemd-dev
```
在 Centos 7 系统上安装所需的开发工具和库:
```bash
yum groupinstall "Development Tools" -y
yum install ipset-devel libattr-devel libpcap-devel libcap-devel
```
@@ -43,6 +45,8 @@ cd DenyIP
编译项目:
```bash
cd IP_region_query && go build
cd ..
make clean
make
```
@@ -52,13 +56,21 @@ make
### 命令行选项
```bash
Usage: denyip [-d] [-i <interface>] [-s <start|stop>] [-h|-?]
-d Daemon mode
-i interface (default eth0)
-s regular signal (default start|stop)
start Enable Iptables rule
stop Disable Iptables rule
-h|-? Help Information
root@NIUYULING:/mnt/c/Users/root/Desktop/git.aixiao.me/DenyIP# ./denyip -h
DenyIP version 0.2
拒绝Linux服务器非大陆IP工具
MAIL: aixiao@aixiao.me
Date: 20241024
Usage: denyip [-d] [-i <interface>] [-s <start|stop>] [-h|-?]
-d --daemon Daemon mode
-i --interface interface (default eth0)
-l print iptables rule
-s --signal regular signal (default start|stop)
start Enable Iptables rule
stop Disable Iptables rule
-h|-? Help Information
root@NIUYULING:/mnt/c/Users/root/Desktop/git.aixiao.me/DenyIP#
```
### 示例命令
@@ -93,7 +105,6 @@ Usage: denyip [-d] [-i <interface>] [-s <start|stop>] [-h|-?]
killall -15 denyip
```
## 贡献
欢迎贡献代码和提出改进建议!请通过 Pull Request 或 Issue 的方式提交。