docs: add offline install to 'how-to-build.md'#5829
Conversation
juzhiyuan
left a comment
There was a problem hiding this comment.
Contents LGTM, just to make sure, the ./apisix folder is created from where?
|
@leslie-tsang |
@juzhiyuan I'm not sure what do you mean , |
folder |
| $ sudo mkdir -p apisix | ||
| $ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm | ||
| $ sudo yum clean all && yum makecache | ||
| $ sudo yum install -y --downloadonly --downloaddir=./apisix apisix |
There was a problem hiding this comment.
| $ sudo mkdir -p apisix | |
| $ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm | |
| $ sudo yum clean all && yum makecache | |
| $ sudo yum install -y --downloadonly --downloaddir=./apisix apisix | |
| # Create a folder `apisix` to store the RPM packages | |
| sudo mkdir -p apisix | |
| # Install apisix repo | |
| sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm | |
| # Rebuild YUM cache | |
| sudo yum clean all && yum makecache | |
| # Download apisix and its deps package to the `apisx` folder | |
| sudo yum install -y --downloadonly --downloaddir=./apisix apisix |
Shall we remove $ ? @juzhiyuan
IMO, $ is used to distinguish between command and its output like
$ uptime
17:24:16 up 3 days, 8:06, 1 user, load average: 0.00, 0.01, 0.05There was a problem hiding this comment.
uptime is a command, right? 😄
| Copy `./apisix` folder to the target host, run the following command to install Apache APISIX. | ||
|
|
||
| ```shell | ||
| $ yum install ./apisix/*.rpm |
There was a problem hiding this comment.
Shall we add a sudo here ?
There was a problem hiding this comment.
OK , I've already added this. Done.
| $ sudo mkdir -p apisix | ||
| $ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm | ||
| $ sudo yum clean all && yum makecache | ||
| $ sudo yum install -y --downloadonly --downloaddir=./apisix apisix |
| 拷贝 `./apisix` 文件夹到目标主机,使用以下命令安装 Apache APISIX。 | ||
|
|
||
| ```shell | ||
| $ yum install ./apisix/*.rpm |
There was a problem hiding this comment.
OK , I've already added this. Done.
Signed-off-by: 123liubao <chenly_61@163.com>
Oh yes, I didn't notice this order 😅 |

Signed-off-by: 123liubao chenly_61@163.com
What this PR does / why we need it:
add offline installation for how-to-build.md
resolve #5785
Pre-submission checklist: