Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Dec 30, 2024
1 parent 907d93b commit 162192d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
21 changes: 7 additions & 14 deletions sapi/quickstart/linux/arm64/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# x86_64 运行 arm64
# `x86_64` 平台模拟 `arm64`

> 使用 qemu-user-static 实现
使用 `qemu-user-static` 实现

## 参考文档

qemu
https://www.qemu.org/
https://github.com/qemu/qemu.git

qemu-user-static
https://github.com/multiarch/qemu-user-static.git

x86 平台利用 qemu-user-static 实现 arm64 平台 docker 镜像的运行和构建
https://www.cnblogs.com/chen2ha/p/17180287.html

Docker在x86架构的物理机上跑Qemu-arm 容器
https://blog.csdn.net/sunSHINEEzy/article/details/80015638
- [qemu 官网](https://www.qemu.org/)
- [qemu GitHub](https://github.com/qemu/qemu.git)
- [qemu-user-static](https://github.com/multiarch/qemu-user-static.git)
- [x86 平台利用 qemu-user-static 实现 arm64 平台 docker 镜像的运行和构建](https://www.cnblogs.com/chen2ha/p/17180287.html)
- [Docker在x86架构的物理机上跑Qemu-arm 容器](https://blog.csdn.net/sunSHINEEzy/article/details/80015638)


27 changes: 14 additions & 13 deletions sapi/quickstart/linux/extra/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# 当环境中没有 PHP 解释器时 可以快速安装 PHP 解释器
# 常见问题

```bash

# alpine

sh sapi/quickstart/linux/extra/alpine-php-init.sh
## 快速安装 `PHP` 解释器

## debian
### Alpine
```bash
sh sapi/quickstart/linux/extra/alpine-php-init.sh
```

### Debian/Ubuntu
```bash
bash sapi/quickstart/linux/extra/debian-php-init.sh

```

```bash
wget -O composer.phar https://mirrors.aliyun.com/composer/composer.phar
## 安装 `Composer`

```bash
wget -O composer.phar https://mirrors.aliyun.com/composer/composer.phar
```

## c c++编译器 组合
## `C/C++` 编译器组合

- 组合一 clang clang++
- 组合二 gcc g++
- `clang` + `clang++`
- `gcc` + `g++`

2 changes: 1 addition & 1 deletion sapi/src/template/make.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
<?php
/**
* @var $this SwooleCli\Preprocessor
Expand All @@ -8,6 +7,7 @@
use SwooleCli\Preprocessor;

?>
#!/usr/bin/env bash
__PROJECT_DIR__=$(cd "$(dirname "$0")"; pwd)
CLI_BUILD_TYPE=<?= $this->getBuildType() . PHP_EOL ?>
SRC=<?= $this->phpSrcDir . PHP_EOL ?>
Expand Down

0 comments on commit 162192d

Please sign in to comment.