Files
nexus/wiki/sources/linux-x64-arm64-detection-guide.md
2026-04-17 08:38:12 +08:00

40 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "如何判别你的Linux 服务器是 x64也就是 x86_64还是 ARM64"
type: source
tags: [linux, 运维, 架构检测]
date: 2026-04-16
---
## Source File
- [[raw/Home Office/如何判别你的Linux 服务器是 x64也就是 x86_64还是 ARM64.md]]
## Summary
- 核心主题Linux 系统架构类型x64/x86_64 与 ARM64的判别方法
- 问题域:服务器硬件架构识别、跨平台软件部署
- 方法/机制4 种命令行检测工具uname、lscpu、/proc/cpuinfo、file
- 结论/价值:快速确定服务器 CPU 架构,确保安装正确的软件包
## Key Claims
- `uname -m` 输出 x86_64 表示 64位 Intel/AMD 架构,输出 aarch64 表示 64位 ARM 架构
- `lscpu` 的 Architecture 字段直接显示 CPU 类型
- `/proc/cpuinfo` 中 x86_64 CPU 显示 model nameARM64 CPU 显示 AArch64 或 ARMv8
- `file /bin/bash` 可检测可执行文件的架构类型
## Key Quotes
> "x86_64" → 表示 64位 x86Intel/AMD架构
> "aarch64" → 表示 64位 ARM 架构
## Key Concepts
- [[x86_64]]64位 x86 架构Intel 和 AMD 处理器使用的指令集
- [[ARM64]]64位 ARM 架构AArch64移动设备和部分服务器使用的指令集
- [[ELF]]可执行和链接格式Linux 可执行文件的格式标准
## Key Entities
- [[Linux]]:开源操作系统内核,广泛用于服务器和嵌入式设备
- [[Bash]]Linux 默认命令行解释器
## Connections
- [[Linux]] ← uses ← [[x86_64]]
- [[Linux]] ← uses ← [[ARM64]]
- [[Bash]] ← runs_on ← [[x86_64]]
- [[Bash]] ← runs_on ← [[ARM64]]