华为云服务器 CentOS8 with arm
ref:etcd软件移植centos7.6-arm
wget https://github.com/etcd-io/etcd/releases/download/v3.4.0/etcd-v3.4.0-linux-arm64.tar.gz
tar -xzvf etcd-v3.4.0-linux-arm64.tar.gz
或者指定解压目录etcd
和etcdctl
的二进制文件,但此时直接运行etcd会出现错误etcd on unsupported platform without ETCD_UNSUPPORTED_ARCH=arm64 set.
export ETCD_UNSUPPORTED_ARCH=arm64
,最好放到~/.bash_profile
里,然后source一下可以选择Docker安装或是源码编译安装
根据Building and Launching with Docker利用docker来安装
docker build -t apisix-dashboard:$tag . --build-arg ENABLE_PROXY=true
(特供版,太贴心了)conf.yaml
准备覆写容器里的默认配置文件docker run -d -p 9000:9000 -v /path/to/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml --name apisix-dashboard apisix-dashboard:$tag
$tag变量是自己设置的docker ps -a
http://127.0.0.1:9000
看看,默认用户名和密码都是admindocker stop apisix-dashboard
tips:多次构建镜像时建议不要使用缓存,
docker build -t apisix-dashboard:$tag . --no-cache=true
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4-linux-arm64.tar.xz
(这里有个tips,官网给出的armv7就是32位,armv8就是64位,一开始还不知道)./lib/node_modules
直接复制到/usr/bin
下就可以使用npm了npm install yarn -g
注意使用全局下载不然执行命令的时候会找不到yarnmake build
附下载源码包后的编译安装步骤:解压->./configure->make->make install
output/conf/conf.yaml
中的配置./output
然后nohup ./manager-api &
后台运行http://127.0.0.1:9000
来使用这玩意儿到make build这一步时一直卡在这个报错上:
Build the Manager API successfully
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[------------------------------------------------------------------------------------------------------------]
0/2361/bin/bash: line 1: 6693 Segmentation fault (core dumped) yarn install
make: *** [Makefile:39: build] Error 139
Segmentation fault (core dumped) yarn install 不知道为什么 没解决。
然后换了阿里云服务器 x86的 这块莫名其妙过了
然后启动按照里面执行第二部docker run 但是完全起不来啊。没动静,ps -a一下就是退出了。
发现是build的时候
The command '/bin/sh -c set -x
&& wget https://github.com/apache/apisix-dashboard/archive/${APISIX_DASHBOARD_VERSION}.tar.gz -O /tmp/apisix-dashboard.tar.gz
&& mkdir /usr/local/apisix-dashboard
&& tar -xvf /tmp/apisix-dashboard.tar.gz -C /usr/local/apisix-dashboard --strip 1'
returned a non-zero code: 1
现在尝试在阿里云上手动编译。。。但是卡在了webpack 92% 查了一下说是多线程的问题,但是我没找到webpack的配置文件在哪。遂放弃。
然后在我自己的mac上安上了。。