环境准备
- 准备实例项目https://github.com/apache/apisix-docker/tree/master/example
- 将example目录下文件传入服务器
- 修改apisix_conf目录下config.yaml,修改连接ETCD地址,修改为ETCD所在服务器IP地址。
etcd:
host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
- "http://服务器IP:2379" # multiple etcd address
prefix: "/apisix" # apisix configurations prefix
timeout: 30 # 30 seconds
- 授权chmod -R 777 example/
- docker-compose up -d
- 开放9000、9080、2379端口
- 进入控制台ip:9000。admin/admin