#https://github.com/apache/apisix/blob/master/doc/zh-cn/install-dependencies.md
yum install -y epel-*
# 添加 OpenResty 源
yum install yum-utils
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
# 安装 OpenResty, etcd 和 编译工具
yum install -y etcd openresty curl git gcc luarocks lua-devel
# 开启 etcd server
service etcd start
wget http://www.apache.org/dist/apisix/1.5/apache-apisix-1.5-src.tar.gz
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 https://nodejs.org/dist/v14.9.0/node-v14.9.0-linux-x64.tar.gz
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 http://www.npmjs.org
npm config set registry https://registry.npm.taobao.org/
npm config get registry
https://github.com/apache/apisix-dashboard/blob/master/README.zh-CN.md
npm -g install yarn
安装
git clone https://github.com/apache/apisix-dashboard.git
cd apisix-dashboard
git checkout 1.5
yarn && yarn start
打开
http://10.1.102.165:8000/
生成 manager-api
wget https://studygolang.com/dl/golang/go1.15.2.linux-amd64.tar.gz
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=https://goproxy.io
go build
./manager-api #运行 8080
http://10.1.102.165:8080/apisix/admin
grafana配置
allow_embedding = true
[auth.anonymous]
# enable anonymous access
enabled = true
阅读(277) | 评论(0) | 转发(0) |