Skip to content

Commit 75feadd

Browse files
author
davis.zheng
committed
修改编译指南
1 parent 923fcec commit 75feadd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

collections/_go-sdk/编译指南(ARM).md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sidebar:
1111
* 内核版本:Linux 10-23-173-45 4.18.0-193.el8.aarch64
1212
* go 版本: [go1.15.6.linux-arm64.tar.gz](https://golang.google.cn/dl/go1.15.6.linux-arm64.tar.gz)
1313

14-
**注意:go源码选择 arm 平台的,而非 amd**
14+
**注意:go源码选择 ARM 平台的,而非 AMD**
1515

1616
## 1. 环境准备
1717

@@ -43,7 +43,8 @@ export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
4343
```
4444
</div>
4545

46-
激活配置
46+
* 激活配置
47+
4748
<div class="copyable" markdown="1">
4849
```shell
4950
source /etc/profile
@@ -72,7 +73,7 @@ export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
7273
```
7374
</div>
7475

75-
## 3.在arm平台编译可执行文件
76+
## 3.在ARM平台编译可执行文件
7677
<div class="copyable" markdown="1">
7778

7879
```shell
@@ -84,7 +85,7 @@ go build demo_file.go #编译
8485

8586
![image-20201209171357007](img/image-20201209171357007.png)
8687

87-
## 4. 在Linux平台编译arm平台可执行文件,并在arm平台运行
88+
## 4. 在x86架构编译可执行文件
8889

8990
### 4.1 Linux 环境说明
9091

@@ -96,9 +97,9 @@ go build demo_file.go #编译
9697
<div class="copyable" markdown="1">
9798

9899
```shell
99-
# 在Linux平台编译arm平台可执行文件
100+
# 在Linux平台编译ARM平台可执行文件
100101
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build demo_file.go
101-
# 在arm平台中有config.json的目录下运行
102+
# 在ARM平台中有config.json的目录下运行
102103
./demo_file
103104
```
104105
</div>

0 commit comments

Comments
 (0)