Auto-sync: 2026-04-17 08:37
This commit is contained in:
40
wiki/sources/linux-x64-arm64-detection-guide.md
Normal file
40
wiki/sources/linux-x64-arm64-detection-guide.md
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
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 name,ARM64 CPU 显示 AArch64 或 ARMv8
|
||||
- `file /bin/bash` 可检测可执行文件的架构类型
|
||||
|
||||
## Key Quotes
|
||||
> "x86_64" → 表示 64位 x86(Intel/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]]
|
||||
Reference in New Issue
Block a user