### Install and Run ECS (Parameter Mode - GitHub) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Download the ECS script from GitHub and run it in parameter mode, specifying '-m 1' for a specific function. ```bash curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh -m 1 ``` -------------------------------- ### Install and Run ECS (Interactive - GitHub) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Alternative command to download and run the ECS script interactively, fetching from GitHub. ```bash curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh ``` -------------------------------- ### Run IP Quality Detection (Manual Download and Execute) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Download the IP quality detection script, convert its line endings, and then execute it. Requires 'dos2unix' to be installed. ```bash wget -qO ipcheck.sh --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ipcheck.sh dos2unix ipcheck.sh bash ipcheck.sh ``` -------------------------------- ### Install and Run ECS (Interactive) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Use this command to download and execute the ECS script in interactive mode. It fetches the script from GitLab. ```bash curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh ``` -------------------------------- ### Install and Run ECS (Parameter Mode - GitLab) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Download the ECS script from GitLab and run it in parameter mode, specifying '-m 1' for a specific function. ```bash curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh -m 1 ``` -------------------------------- ### Execute Downloaded ECS Script with Parameter Source: https://github.com/spiritlhls/ecs/blob/main/README.md Run the previously downloaded ECS script using a parameter, for example, '-m 1'. ```bash bash ecs.sh -m 1 ``` -------------------------------- ### 运行Geekbench CPU基准测试 Source: https://context7.com/spiritlhls/ecs/llms.txt 执行独立的Geekbench CPU性能测试。 ```bash # Geekbench4 测试(最常见的CPU基准测试) bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/geekbench4.sh) # Geekbench5 测试(测不动gb6可以用这个) bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/geekbench5.sh) # Geekbench6 测试(测试极其缓慢) bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/geekbench6.sh) ``` -------------------------------- ### Check system compatibility and architecture Source: https://context7.com/spiritlhls/ecs/llms.txt Commands to verify the current system architecture and OS version for script compatibility. ```bash # 完全支持的系统 - Ubuntu 18+ - Debian 8+ - CentOS 7+ - Fedora 33+ - AlmaLinux 8.5+ - OracleLinux 8+ - RockyLinux 8+ - AstraLinux CE - Arch Linux # 半支持系统(需要预先安装依赖) - FreeBSD(需先执行:pkg install -y curl bash) - Armbian # 支持的架构 - amd64 (x86_64) - arm64 (aarch64) - i386 - arm # 检查系统架构 uname -m # 检查系统版本 cat /etc/os-release ``` -------------------------------- ### Run IP Quality Detection (wget - spiritlhl.net) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Execute the IP quality detection script using wget from spiritlhl.net. ```bash bash <(wget -qO- bash.spiritlhl.net/ecs-ipcheck) ``` -------------------------------- ### 运行交互式测评脚本 Source: https://context7.com/spiritlhls/ecs/llms.txt 通过多种方式启动交互式菜单,用户可根据提示选择测试项目。 ```bash # 方式一:通过 GitHub 直接运行 curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh # 方式二:通过 GitLab 镜像运行 curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh # 方式三:通过短链接运行 bash <(wget -qO- bash.spiritlhl.net/ecs) # 方式四:备用短链接 bash <(wget -qO- ecs.0s.hk) # 方式五:备用短链接 bash <(wget -qO- ecs.12345.ing) ``` -------------------------------- ### Run IP Quality Detection (wget - GitHub) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Execute the IP quality detection script using wget from GitHub, with certificate checking disabled. ```bash bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/ecs/main/ipcheck.sh) ``` -------------------------------- ### 运行IP质量检测脚本 Source: https://context7.com/spiritlhls/ecs/llms.txt 执行独立的IP质量检测,包含数据库查询、DNS黑名单及端口检测。 ```bash # 方式一:通过短链接运行 bash <(wget -qO- bash.spiritlhl.net/ecs-ipcheck) # 方式二:通过GitHub直接运行 bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/spiritLHLS/ecs/main/ipcheck.sh) # 方式三:先下载后运行(需要先安装dos2unix) wget -qO ipcheck.sh --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ipcheck.sh dos2unix ipcheck.sh bash ipcheck.sh ``` -------------------------------- ### 运行硬盘信息检测 Source: https://context7.com/spiritlhls/ecs/llms.txt 检测服务器硬盘信息及IO性能。 ```bash # 检测本机硬盘信息(含通电时长) bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/disk_info.sh) # 测试多个挂载盘的IO性能 bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/multi_disk_io_test.sh) ``` -------------------------------- ### 使用命令行参数运行自动化测试 Source: https://context7.com/spiritlhls/ecs/llms.txt 通过参数直接指定测试选项,适用于自动化脚本和批量测试场景。 ```bash # 下载脚本 curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh # 运行融合怪完全体(选项1) bash ecs.sh -m 1 # 运行精简版(选项3下的子选项1) bash ecs.sh -m 3 1 # 三层菜单选择示例(主菜单5 -> 子菜单1 -> 子选项1) bash ecs.sh -m 5 1 1 # 使用英文输出 bash ecs.sh -m 1 -en # 仅测试基础系统信息(不测试CPU、硬盘、流媒体等) bash ecs.sh -base # 指定CPU测试方式为Geekbench5 bash ecs.sh -m 1 -ctype gb5 # 指定CPU测试方式为Geekbench6 bash ecs.sh -m 1 -ctype gb6 # 指定仅使用dd测试磁盘IO(测试更快) bash ecs.sh -m 1 -dtype dd # 指定仅使用fio测试磁盘IO(测试更准确) bash ecs.sh -m 1 -dtype fio # 测试多个挂载盘的IO(含系统盘) bash ecs.sh -m 1 -mdisk # 禁用网速测试 bash ecs.sh -m 1 -bansp # 禁用生成分享链接 bash ecs.sh -m 1 -banup # 使用 speedtest.cn 数据源进行测速 bash ecs.sh -m 1 -stype .cn # 指定回程路由测试目标城市(北京三网) bash ecs.sh -m 1 -r b # 指定回程路由测试目标城市(广州三网) bash ecs.sh -m 1 -r g # 指定回程路由测试目标城市(上海三网) bash ecs.sh -m 1 -r s # 指定回程路由测试目标城市(成都三网) bash ecs.sh -m 1 -r c # 指定IPV6回程测试(北京三网IPV6) bash ecs.sh -m 1 -r b6 # 自定义回程路由测试的目标IPv4地址 bash ecs.sh -m 1 -i 1.2.3.4 # 组合使用多个参数 bash ecs.sh -m 1 -en -ctype gb5 -dtype fio -r g -banup ``` -------------------------------- ### 运行回程路由测试 Source: https://context7.com/spiritlhls/ecs/llms.txt 测试服务器到国内运营商的回程线路,基于nexttrace或besttrace。 ```bash # 基于nexttrace的回程路由测试(推荐,使用第三方IP库) bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/nexttrace.sh) # 基于besttrace的回程路由测试(准确率高,但可能有bug) bash <(curl -sSL https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/return.sh) ``` -------------------------------- ### 运行NAT类型检测 Source: https://context7.com/spiritlhls/ecs/llms.txt 检测服务器的NAT类型以判断网络穿透能力。 ```bash # 检测本机NAT类型 bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/gostun/main/gostun_install.sh) ``` -------------------------------- ### Download ECS Script for Parameter Mode Source: https://github.com/spiritlhls/ecs/blob/main/README.md Download the ECS script from GitLab, making it available for execution with parameters. ```bash curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh ``` -------------------------------- ### Run ECS via Bash (wget - 0s.hk) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Execute the ECS script directly using wget from 0s.hk without downloading a file first. ```bash bash <(wget -qO- ecs.0s.hk) ``` -------------------------------- ### 查看脚本参数说明 Source: https://context7.com/spiritlhls/ecs/llms.txt 列出所有支持的命令行参数及主菜单选项。 ```bash # 参数说明 -m 必填项,指定菜单选项,支持最多三层选择 例如:-m 5 1 1 选择主菜单5下的子选项1下的子选项1 可缺省:-m 1 等同于 -m 1 0 0 -en 可选项,强制使用英文输出,默认使用中文 -i 可选项,指定回程路由测试的目标IPv4地址 例如:-i 114.114.114.114 -r 可选项,指定回程路由测试的目标城市 可选值:b(北京) g(广州) s(上海) c(成都) IPv6可选:b6(北京IPv6) g6(广州IPv6) s6(上海IPv6) -base 可选项,仅测试基础系统信息,跳过其他测试 -ctype 可选项,指定CPU测试方式 可选值:gb4(Geekbench4) gb5(Geekbench5) gb6(Geekbench6) 默认使用sysbench测试 -dtype 可选项,指定磁盘IO测试程序 可选值:dd(测试快) fio(测试慢但准确) 默认两种都使用 -mdisk 可选项,测试多个挂载盘的IO(包含系统盘) -stype 可选项,指定测速数据源 可选值:.cn(speedtest.cn) .net(speedtest.net) 默认使用.net -bansp 可选项,禁用网速测试 -banup 可选项,禁用生成分享链接 # 查看帮助信息 bash ecs.sh -h ``` ```bash # 主菜单选项 1. 顺序测试 - 融合怪完全体(所有项目都测试,平均运行7分钟,推荐普通机器使用) 2. 并行测试 - 融合怪完全体(所有项目都测试,平均运行5分钟,仅强劲机器可用) 3. 融合怪精简区(精简版或单项测试精简版) 4. 融合怪单项区(单项测试完整版) 5. 第三方脚本区(同类作者的各种测试脚本) 6. 原创区(本脚本独有的测试脚本) 7. 更新本脚本 0. 退出 ``` -------------------------------- ### 运行三网测速脚本 Source: https://context7.com/spiritlhls/ecs/llms.txt 执行网络测速或延迟测试,支持多种数据源。 ```bash # 三网测速(基于 speedtest.net 数据) bash <(wget -qO- bash.spiritlhl.net/ecs-net) # 三网测速(基于 speedtest.cn 数据) bash <(wget -qO- bash.spiritlhl.net/ecs-cn) # 三网延迟测试(Ping测试) bash <(wget -qO- bash.spiritlhl.net/ecs-ping) ``` -------------------------------- ### Run ECS via Bash (wget - spiritlhl.net) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Execute the ECS script directly using wget from spiritlhl.net without downloading a file first. ```bash bash <(wget -qO- bash.spiritlhl.net/ecs) ``` -------------------------------- ### Check test results Source: https://github.com/spiritlhls/ecs/blob/main/lowpage/README.md Use this command to view the real-time status of the performance test output file. ```bash cat test_result.txt ``` -------------------------------- ### Run ECS via Bash (wget - 12345.ing) Source: https://github.com/spiritlhls/ecs/blob/main/README.md Execute the ECS script directly using wget from 12345.ing without downloading a file first. ```bash bash <(wget -qO- ecs.12345.ing) ``` -------------------------------- ### 运行自定义IP质量检测 Source: https://context7.com/spiritlhls/ecs/llms.txt 检测指定IP地址的质量信息。 ```bash # 运行自定义IP质量检测脚本(交互式输入IP) bash <(curl -sSL https://github.com/spiritLHLS/ecs/raw/main/customizeqzcheck.sh) ``` -------------------------------- ### Run ECS script in persistent sessions Source: https://context7.com/spiritlhls/ecs/llms.txt Use screen or tmux to prevent test interruption due to SSH disconnection on unstable networks. ```bash # 使用screen运行 screen -S ecs bash <(wget -qO- bash.spiritlhl.net/ecs) # 按 Ctrl+A+D 分离会话 # 重新连接:screen -r ecs # 使用tmux运行 tmux new -s ecs bash <(wget -qO- bash.spiritlhl.net/ecs) # 按 Ctrl+B+D 分离会话 # 重新连接:tmux attach -t ecs # 测试结果保存位置 cat test_result.txt ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.