Skip to content

Commit e6665ee

Browse files
committed
更新README文件,添加GitHub仓库信息并优化格式
1 parent f5e5a2f commit e6665ee

File tree

2 files changed

+131
-60
lines changed

2 files changed

+131
-60
lines changed

README.md

Lines changed: 65 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
<strong>快速收集服务器信息并生成详细报告</strong>
77
</div>
88

9-
GIT 仓库地址:[email protected]:jayscoder/server-analyzer.git
10-
最新版本:v1.2.0
9+
<div align="center">
10+
11+
![版本](https://img.shields.io/badge/版本-v1.2.0-blue)
12+
![许可证](https://img.shields.io/badge/许可证-MIT-green)
13+
![平台](https://img.shields.io/badge/平台-Linux%20%7C%20macOS-lightgrey)
14+
15+
**GitHub 仓库地址:** [jayscoder/server-analyzer](https://github.com/jayscoder/server-analyzer)
16+
**最新版本:** [v1.2.0](https://github.com/jayscoder/server-analyzer/releases/tag/v1.2.0)
17+
18+
</div>
1119

1220
<p align="center">
1321
<a href="README.md">中文</a> |
@@ -16,41 +24,49 @@ GIT 仓库地址:[email protected]:jayscoder/server-analyzer.git
1624
<a href="README_ES.md">Español</a>
1725
</p>
1826

19-
## 概述
27+
## 📋 概述
2028

2129
服务器分析工具是一个功能强大的 Bash 脚本,可以快速收集 Linux/Unix 服务器上的各种系统信息,并生成格式化的报告。该工具专为系统管理员、DevOps 工程师和 AI 工程师设计,帮助快速了解服务器配置和状态。
2230

23-
### 特色功能
31+
### 特色功能
2432

25-
- **全面信息收集**:收集 CPU、内存、存储、网络、GPU 等硬件信息
26-
- **软件环境检测**:检测操作系统、已安装服务、Docker 容器和编程语言环境
27-
- **安全状态分析**:检查防火墙状态、SSH 配置和基本安全设置
28-
- **AI 框架支持**:检测常见 AI 框架如 Ollama、PyTorch、TensorFlow 等
29-
- **多格式报告**:支持生成 Markdown 或 HTML 格式的详细报告
30-
- **本地/远程模式**:支持分析本地服务器或通过 SSH 分析远程服务器
33+
- 🖥️ **全面信息收集**:收集 CPU、内存、存储、网络、GPU 等硬件信息
34+
- 🔍 **软件环境检测**:检测操作系统、已安装服务、Docker 容器和编程语言环境
35+
- 🔒 **安全状态分析**:检查防火墙状态、SSH 配置和基本安全设置
36+
- 🤖 **AI 框架支持**:检测常见 AI 框架如 Ollama、PyTorch、TensorFlow 等
37+
- 📊 **多格式报告**:支持生成 Markdown 或 HTML 格式的详细报告
38+
- 🌐 **本地/远程模式**:支持分析本地服务器或通过 SSH 分析远程服务器
3139

32-
## 将报告作为 AI 模型上下文
40+
## 🧠 将报告作为 AI 模型上下文
3341

3442
生成的报告格式规范、信息丰富,非常适合作为大型语言模型的上下文信息。您可以:
3543

3644
1. 将生成的报告直接上传给 AI 模型(如 ChatGPT、Claude 等)
3745
2. 让 AI 模型根据服务器实际情况提供定制化的优化建议
3846
3. 通过报告辅助 AI 进行更精准的服务器配置、优化和故障排查
3947

40-
## 安装方法
48+
## 📥 安装方法
4149

42-
### 直接下载
50+
### 方法一:直接下载
4351

4452
```bash
45-
curl -o server_analyzer.sh https://raw.githubusercontent.com/用户名/server-analyzer/main/server_analyzer.sh
53+
curl -o server_analyzer.sh https://raw.githubusercontent.com/jayscoder/server-analyzer/main/server_analyzer.sh
4654
chmod +x server_analyzer.sh
4755
```
4856

49-
### 从发布版下载
57+
### 方法二:从发布版下载
58+
59+
访问[发布页面](https://github.com/jayscoder/server-analyzer/releases)下载最新版本。
60+
61+
### 方法三:克隆仓库
5062

51-
访问[发布页面](https://github.com/用户名/server-analyzer/releases)下载最新版本。
63+
```bash
64+
git clone [email protected]:jayscoder/server-analyzer.git
65+
cd server-analyzer
66+
chmod +x server_analyzer.sh
67+
```
5268

53-
## 使用方法
69+
## 🚀 使用方法
5470

5571
### 基本用法
5672

@@ -86,24 +102,42 @@ chmod +x server_analyzer.sh
86102
./server_analyzer.sh -f html -o server_report.html
87103
```
88104

89-
## 报告内容
105+
## 📊 报告内容
90106

91107
生成的报告包含以下主要部分:
92108

93-
- **基本信息**:主机名、IP 地址、操作系统、内核版本等
94-
- **硬件配置**:CPU、内存、存储设备和 GPU 信息
95-
- **网络配置**:网络接口、公网 IP、开放端口等
96-
- **软件和服务**:系统服务、Docker 容器、编程语言环境等
97-
- **AI 框架**:检测 Ollama、PyTorch、TensorFlow 等 AI 框架
98-
- **性能和资源使用**:系统负载、资源使用最高的进程等
99-
- **安全信息**:防火墙状态、SSH 配置、SELinux 状态等
100-
- **用户信息**:当前登录用户、管理权限用户等
101-
- **结论和建议**:基于收集到的信息提供的建议
109+
| 部分 | 内容 |
110+
| ------------------ | ------------------------------------------- |
111+
| **基本信息** | 主机名、IP 地址、操作系统、内核版本等 |
112+
| **硬件配置** | CPU、内存、存储设备和 GPU 信息 |
113+
| **网络配置** | 网络接口、公网 IP、开放端口等 |
114+
| **软件和服务** | 系统服务、Docker 容器、编程语言环境等 |
115+
| **AI 框架** | 检测 Ollama、PyTorch、TensorFlow 等 AI 框架 |
116+
| **性能和资源使用** | 系统负载、资源使用最高的进程等 |
117+
| **安全信息** | 防火墙状态、SSH 配置、SELinux 状态等 |
118+
| **用户信息** | 当前登录用户、管理权限用户等 |
119+
| **结论和建议** | 基于收集到的信息提供的建议 |
120+
121+
## 🔧 依赖
122+
123+
工具会尝试使用以下命令(如可用)来收集更多信息:
124+
125+
- 基本命令: `ps`, `grep`, `awk`, `free`, `df`, `top`
126+
- 网络分析: `netstat``ss`, `curl`, `speedtest-cli`
127+
- GPU 分析: `nvidia-smi` (NVIDIA GPU), `rocm-smi` (AMD GPU), `npu-smi` (华为昇腾)
128+
- 编程环境: `python`/`python3`, `conda`, `node`, `npm`, `java`
129+
- AI 框架: `ollama`, PyTorch, TensorFlow, ONNX Runtime
130+
131+
## 📝 许可证
102132

103-
## 许可证
133+
[MIT License](LICENSE)
104134

105-
MIT License
135+
## 👥 贡献
106136

107-
## 贡献
137+
欢迎提交 Issues 和 Pull Requests!可以通过以下方式参与项目:
108138

109-
欢迎提交 Issues 和 Pull Requests!
139+
1. Fork 仓库
140+
2. 创建您的特性分支 (`git checkout -b feature/amazing-feature`)
141+
3. 提交您的更改 (`git commit -m 'Add some amazing feature'`)
142+
4. 推送到分支 (`git push origin feature/amazing-feature`)
143+
5. 打开一个 Pull Request

README_EN.md

Lines changed: 66 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,67 @@
66
<strong>Quickly collect server information and generate detailed reports</strong>
77
</div>
88

9+
<div align="center">
10+
11+
![Version](https://img.shields.io/badge/version-v1.2.0-blue)
12+
![License](https://img.shields.io/badge/license-MIT-green)
13+
![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS-lightgrey)
14+
15+
**GitHub Repository:** [jayscoder/server-analyzer](https://github.com/jayscoder/server-analyzer)
16+
**Latest Version:** [v1.2.0](https://github.com/jayscoder/server-analyzer/releases/tag/v1.2.0)
17+
18+
</div>
19+
920
<p align="center">
1021
<a href="README.md">中文</a> |
1122
<a href="README_EN.md">English</a> |
1223
<a href="README_JA.md">日本語</a> |
1324
<a href="README_ES.md">Español</a>
1425
</p>
1526

16-
## Overview
27+
## 📋 Overview
1728

1829
Server Analyzer is a powerful Bash script that quickly collects various system information from Linux/Unix servers and generates formatted reports. The tool is designed for system administrators, DevOps engineers, and AI engineers to help them quickly understand server configurations and status.
1930

20-
### Key Features
31+
### Key Features
2132

22-
- **Comprehensive Information Collection**: Collects hardware information about CPU, memory, storage, network, GPU, etc.
23-
- **Software Environment Detection**: Detects operating systems, installed services, Docker containers, and programming language environments
24-
- **Security Status Analysis**: Checks firewall status, SSH configuration, and basic security settings
25-
- **AI Framework Support**: Detects common AI frameworks such as Ollama, PyTorch, TensorFlow, etc.
26-
- **Multi-format Reports**: Supports generating detailed reports in Markdown or HTML format
27-
- **Local/Remote Mode**: Supports analyzing local servers or remote servers via SSH
33+
- 🖥️ **Comprehensive Information Collection**: Collects hardware information about CPU, memory, storage, network, GPU, etc.
34+
- 🔍 **Software Environment Detection**: Detects operating systems, installed services, Docker containers, and programming language environments
35+
- 🔒 **Security Status Analysis**: Checks firewall status, SSH configuration, and basic security settings
36+
- 🤖 **AI Framework Support**: Detects common AI frameworks such as Ollama, PyTorch, TensorFlow, etc.
37+
- 📊 **Multi-format Reports**: Supports generating detailed reports in Markdown or HTML format
38+
- 🌐 **Local/Remote Mode**: Supports analyzing local servers or remote servers via SSH
2839

29-
## Using Reports as AI Model Context
40+
## 🧠 Using Reports as AI Model Context
3041

3142
The generated reports are well-formatted and information-rich, making them ideal as context information for large language models. You can:
3243

3344
1. Upload the generated reports directly to AI models (such as ChatGPT, Claude, etc.)
3445
2. Have AI models provide customized optimization suggestions based on actual server conditions
3546
3. Use the reports to assist AI in more accurate server configuration, optimization, and troubleshooting
3647

37-
## Installation Methods
48+
## 📥 Installation Methods
3849

39-
### Direct Download
50+
### Method 1: Direct Download
4051

4152
```bash
42-
curl -o server_analyzer.sh https://raw.githubusercontent.com/username/server-analyzer/main/server_analyzer.sh
53+
curl -o server_analyzer.sh https://raw.githubusercontent.com/jayscoder/server-analyzer/main/server_analyzer.sh
4354
chmod +x server_analyzer.sh
4455
```
4556

46-
### Download from Releases
57+
### Method 2: Download from Releases
4758

48-
Visit the [Releases page](https://github.com/username/server-analyzer/releases) to download the latest version.
59+
Visit the [Releases page](https://github.com/jayscoder/server-analyzer/releases) to download the latest version.
4960

50-
## Usage
61+
### Method 3: Clone Repository
62+
63+
```bash
64+
git clone [email protected]:jayscoder/server-analyzer.git
65+
cd server-analyzer
66+
chmod +x server_analyzer.sh
67+
```
68+
69+
## 🚀 Usage
5170

5271
### Basic Usage
5372

@@ -83,24 +102,42 @@ Generate an HTML format report:
83102
./server_analyzer.sh -f html -o server_report.html
84103
```
85104

86-
## Report Content
105+
## 📊 Report Content
87106

88107
The generated reports include the following main sections:
89108

90-
- **Basic Information**: Hostname, IP address, operating system, kernel version, etc.
91-
- **Hardware Configuration**: CPU, memory, storage devices, and GPU information
92-
- **Network Configuration**: Network interfaces, public IP, open ports, etc.
93-
- **Software and Services**: System services, Docker containers, programming language environments, etc.
94-
- **AI Frameworks**: Detection of Ollama, PyTorch, TensorFlow, and other AI frameworks
95-
- **Performance and Resource Usage**: System load, processes with highest resource usage, etc.
96-
- **Security Information**: Firewall status, SSH configuration, SELinux status, etc.
97-
- **User Information**: Currently logged-in users, users with administrative privileges, etc.
98-
- **Conclusions and Recommendations**: Suggestions based on collected information
109+
| Section | Content |
110+
| ----------------------------------- | --------------------------------------------------------------------------- |
111+
| **Basic Information** | Hostname, IP address, operating system, kernel version, etc. |
112+
| **Hardware Configuration** | CPU, memory, storage devices, and GPU information |
113+
| **Network Configuration** | Network interfaces, public IP, open ports, etc. |
114+
| **Software and Services** | System services, Docker containers, programming language environments, etc. |
115+
| **AI Frameworks** | Detection of Ollama, PyTorch, TensorFlow, and other AI frameworks |
116+
| **Performance and Resource Usage** | System load, processes with highest resource usage, etc. |
117+
| **Security Information** | Firewall status, SSH configuration, SELinux status, etc. |
118+
| **User Information** | Currently logged-in users, users with administrative privileges, etc. |
119+
| **Conclusions and Recommendations** | Suggestions based on collected information |
120+
121+
## 🔧 Dependencies
122+
123+
The tool will attempt to use the following commands (if available) to collect more information:
124+
125+
- Basic commands: `ps`, `grep`, `awk`, `free`, `df`, `top`, etc.
126+
- Network analysis: `netstat` or `ss`, `curl`, `speedtest-cli`
127+
- GPU analysis: `nvidia-smi` (NVIDIA GPU), `rocm-smi` (AMD GPU), `npu-smi` (Huawei Ascend)
128+
- Programming environments: `python`/`python3`, `conda`, `node`, `npm`, `java`
129+
- AI frameworks: `ollama`, PyTorch, TensorFlow, ONNX Runtime
130+
131+
## 📝 License
99132

100-
## License
133+
[MIT License](LICENSE)
101134

102-
MIT License
135+
## 👥 Contribution
103136

104-
## Contribution
137+
Issues and Pull Requests are welcome! You can participate in the project by:
105138

106-
Issues and Pull Requests are welcome!
139+
1. Forking the repository
140+
2. Creating your feature branch (`git checkout -b feature/amazing-feature`)
141+
3. Committing your changes (`git commit -m 'Add some amazing feature'`)
142+
4. Pushing to the branch (`git push origin feature/amazing-feature`)
143+
5. Opening a Pull Request

0 commit comments

Comments
 (0)