修改文档

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 ```bash
sudo apt update 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 系统上安装所需的开发工具和库: 在 Centos 7 系统上安装所需的开发工具和库:
```bash ```bash
yum groupinstall "Development Tools" -y
yum install ipset-devel libattr-devel libpcap-devel libcap-devel yum install ipset-devel libattr-devel libpcap-devel libcap-devel
``` ```
@@ -43,6 +45,8 @@ cd DenyIP
编译项目: 编译项目:
```bash ```bash
cd IP_region_query && go build
cd ..
make clean make clean
make make
``` ```
@@ -52,13 +56,21 @@ make
### 命令行选项 ### 命令行选项
```bash ```bash
Usage: denyip [-d] [-i <interface>] [-s <start|stop>] [-h|-?] root@NIUYULING:/mnt/c/Users/root/Desktop/git.aixiao.me/DenyIP# ./denyip -h
-d Daemon mode DenyIP version 0.2
-i interface (default eth0) 拒绝Linux服务器非大陆IP工具
-s regular signal (default start|stop) MAIL: aixiao@aixiao.me
start Enable Iptables rule Date: 20241024
stop Disable Iptables rule Usage: denyip [-d] [-i <interface>] [-s <start|stop>] [-h|-?]
-h|-? Help Information -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 killall -15 denyip
``` ```
## 贡献 ## 贡献
欢迎贡献代码和提出改进建议!请通过 Pull Request 或 Issue 的方式提交。 欢迎贡献代码和提出改进建议!请通过 Pull Request 或 Issue 的方式提交。
@@ -109,4 +120,4 @@ Usage: denyip [-d] [-i <interface>] [-s <start|stop>] [-h|-?]
--- ---
希望这个 `README.md` 文件能够帮助您更好地介绍和使用 `DenyIP` 项目。如果有任何其他需求或修改,请随时告知。 希望这个 `README.md` 文件能够帮助您更好地介绍和使用 `DenyIP` 项目。如果有任何其他需求或修改,请随时告知。