#
yum install -y epel-*
# 添加 OpenResty 源
yum install yum-utils
yum-config-manager --add-repo
# 安装 OpenResty, etcd 和 编译工具
yum install -y etcd openresty curl git gcc luarocks lua-devel
# 开启 etcd server
service etcd start
wget
tar zxvf apache-apisix-1.5-src.tar.gz
cd apache-apisix-1.5
make deps
make install
cp -r deps/ /usr/local/apisix/
cd ..
/usr/bin/apisix version
/usr/bin/apisix start
wget
tar -zxvf node-v14.9.0-linux-x64.tar.gz
mkdir -p /usr/local/node/
mv node-v14.9.0-linux-x64 /usr/local/node/
vi /etc/profile
...
NODE_HOME=/usr/local/node/node-v14.9.0-linux-x64/
export PATH=$NODE_HOME/bin:$PATH
source /etc/profile
npm config ls
#npm config set registry
npm config set registry
npm config get registry
npm -g install yarn
安装
git clone
cd apisix-dashboard
git checkout 1.5
yarn && yarn start
打开
生成 manager-api
wget
tar -zxvf go1.15.2.linux-amd64.tar.gz
mv go go1.15.2.linux-amd64
mkdir -p /usr/local/go
mv go1.15.2.linux-amd64 /usr/local/go/
GOHOME=/usr/local/go/go1.15.2.linux-amd64
export PATH=$NODE_HOME/bin:$PATH:$GOHOME/bin
export GOPATH=/root/go
cd apisix-dashboard/api
export GOPROXY=
go build
./manager-api #运行 8080
grafana配置
allow_embedding = true
[auth.anonymous]
# enable anonymous access
enabled = true
阅读(2103) | 评论(0) | 转发(0) |