apisix docker 安装

bash 复制代码
git clone https://github.com/apache/apisix-docker.git
cd apisix-docker/example
nano docker-compose
========================主要修改这里===============================
 ETCD_ADVERTISE_CLIENT_URLS: "http://192.168.31.160:2379"
===================================================================

docker compose -p docker-apisix up -d

#安装apisix-dashboard
docker pull apache/apisix-dashboard
nano /root/conf.yaml
===================================================================
conf:
  listen:
    host: 0.0.0.0   # the address on which the `Manager API` should listen.
                    # The default value is 0.0.0.0, if want to specify, please enable it.
                    # This value accepts IPv4, IPv6, and hostname.
    port: 9000      # The port on which the `Manager API` should listen.
 
  allow_list:       # If we don't set any IP list, then any IP access is allowed by default.
  etcd:
    endpoints:      # supports defining multiple etcd host addresses for an etcd cluster
      - 192.168.31.160:2379 # etcd install ip
authentication:
  secret:
    zQ5w5jkLDh3jZpywJ3sskrw6Yv633ruq
  expire_time: 3600     # jwt token expire time, in second
  users:                # yamllint enable rule:comments-indentation
    - username: admin       # dashboard login infomation
      password: admin
===================================================================
cd /
docker run -d --name dashboard -p 9001:9000 -v /root/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml apache/apisix-dashboard

浏览器输入:http://192.168.31.160:9001/

相关推荐
小白银子2 小时前
零基础从头教学Linux(Day 45)
linux·运维·junit·openresty
半梦半醒*4 小时前
nginx反向代理和负载均衡
linux·运维·nginx·centos·tomcat·负载均衡
喜欢你,还有大家4 小时前
集群的概述和分类和负载均衡集群
运维·负载均衡
liu****4 小时前
负载均衡式的在线OJ项目编写(六)
运维·c++·负载均衡·个人开发
Elastic 中国社区官方博客6 小时前
CI/CD 流水线与 agentic AI:如何创建自我纠正的 monorepos
大数据·运维·数据库·人工智能·搜索引擎·ci/cd·全文检索
Insist7536 小时前
基于OpenEuler--docker容器化部署ceph集群
ceph·docker·容器
A-刘晨阳6 小时前
Linux安装centos8及基础配置
linux·运维·服务器·操作系统·centos8
恒雨田6 小时前
解决 jenkins 用户 SSH 连接目标服务器时的 Permission denied 问题
运维·ssh·jenkins
迎風吹頭髮6 小时前
UNIX下C语言编程与实践14-UNIX 文件系统格式化:磁盘分区与文件系统创建原理
运维·c语言·unix
Saniffer_SH6 小时前
【高清视频】CXL 2.0 over Fibre演示和答疑 - 将内存拉到服务器10米之外
运维·服务器·网络·人工智能·驱动开发·计算机外设·硬件工程