APISIX命令速查
部署启停、配置与模式、Admin API、路由与上游、插件与认证、SSL 证书、流量治理、可观测性与报错排查等 156 条命令
共 156 条命令 · 12 类场景 · 点击右侧图标可复制
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
apisix start | 启动 APISIX(含 OpenResty 与 etcd 连接检查) | |
apisix start -c /usr/local/apisix/conf/config.yaml | 指定配置文件启动,多环境必备 | |
apisix stop | 停止服务 | |
apisix quit | 优雅退出,处理完存量请求再关闭 | |
apisix restart | 重启服务,会短暂中断连接 | |
apisix reload | 平滑重载配置与插件,不中断流量 | |
apisix init | 初始化运行目录与 nginx.conf,首次安装后执行 | |
apisix init_etcd | 初始化 etcd 中的数据目录结构 | |
apisix version | 查看 APISIX 与 OpenResty 版本 | |
apisix help | 查看所有 CLI 子命令 | |
ss -lntp | grep -E "9080|9180|9091|9090" | 确认数据面、Admin API、指标、Control API 端口 | |
tail -f logs/error.log | 错误日志,插件与路由异常先看这里 | |
tail -f logs/access.log | 访问日志,排查请求是否到达网关 | |
systemctl restart apisix | systemd 部署方式下的重启命令 | |
apisix start 之后验证网关是否通 | 配合 curl 访问 9080 与 9180 各一次 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
conf/config.yaml | 主配置文件,覆盖 config-default.yaml 中的默认值 | |
conf/config-default.yaml | 默认配置参考,不要直接修改(升级会被覆盖) | |
deployment.role: traditional | 传统模式:控制面与数据面同进程,最常用 | |
deployment.role: data_plane / control_plane | 分离部署:数据面不连 etcd,由控制面下发配置(3.x) | |
deployment.admin.admin_key: [{name: admin, key: edd1c9f034335f136f87ad84b625c8f1, role: admin}] | Admin API 鉴权密钥,生产必须修改默认值 | |
deployment.etcd.host: ["http://127.0.0.1:2379"] | etcd 地址列表,多个用逗号分隔 | |
config_provider: yaml | 独立模式:不依赖 etcd,用 conf/apisix.yaml 管理配置 | |
plugins: [limit-count, proxy-rewrite, prometheus] | 显式启用插件列表,未启用的插件无法在路由上使用 | |
nginx_config.worker_processes: auto | Worker 数建议与 CPU 核数匹配 | |
apisix reload | 修改 config.yaml 后必须 reload 才生效 | |
APISIX_PROFILE=prod apisix start | 用 profile 区分多环境配置目录 | |
config.yaml 改动不生效时先确认是否 reload | 网关不会自动监听配置文件变化 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
export ADMIN_KEY=edd1c9f034335f136f87ad84b625c8f1 | 把 Admin Key 放进环境变量,避免命令里明文 | |
curl http://127.0.0.1:9180/apisix/admin/routes -H "X-API-KEY: $ADMIN_KEY" | 列出全部路由(默认分页) | |
curl "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=20" -H "X-API-KEY: $ADMIN_KEY" | 分页查询,路由多时必用 | |
curl http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" | 按 id 查询单条路由 | |
curl -X PUT http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" -d @route.json | 用 PUT 创建或全量覆盖路由(幂等) | |
curl -X PATCH http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"priority": 10}' | 局部更新字段,不改动其他配置 | |
curl -X DELETE http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" | 删除路由 | |
curl http://127.0.0.1:9180/apisix/admin/services -H "X-API-KEY: $ADMIN_KEY" | 服务抽象列表 | |
curl http://127.0.0.1:9180/apisix/admin/upstreams -H "X-API-KEY: $ADMIN_KEY" | 上游列表 | |
curl http://127.0.0.1:9180/apisix/admin/consumers -H "X-API-KEY: $ADMIN_KEY" | 消费者列表 | |
curl http://127.0.0.1:9180/apisix/admin/ssls -H "X-API-KEY: $ADMIN_KEY" | SSL 证书列表 | |
curl http://127.0.0.1:9180/apisix/admin/plugins/list -H "X-API-KEY: $ADMIN_KEY" | 查看已启用插件清单 | |
curl http://127.0.0.1:9180/apisix/admin/schema/routes -H "X-API-KEY: $ADMIN_KEY" | 查看资源 JSON Schema,写配置前对照字段 | |
curl http://127.0.0.1:9090/v1/healthcheck | Control API 健康检查(3.x,默认 9090) | |
Admin API 默认端口 9180,数据面 9080,别把两者搞混 | 数据面不带 X-API-KEY,Admin API 必须带 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
curl -X PUT http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"uri":"/get","upstream":{"type":"roundrobin","nodes":{"127.0.0.1:1980":1}}}' | 最小可用路由:匹配 /get 并转发到本地上游 | |
{"uri":"/api/*","methods":["GET","POST"],"host":"api.example.com"} | 按路径、方法与域名同时匹配 | |
{"uris":["/a/*","/b/*"]} | 一条路由匹配多个路径 | |
{"vars":[["arg_version","==","v2"]]} | 基于请求参数的匹配条件,做灰度分流很方便 | |
{"priority":10} | 优先级越高越先匹配,解决规则冲突 | |
{"plugins":{"proxy-rewrite":{"uri":"/new-path"}}} | 转发前改写路径,后端无需感知旧路径 | |
{"service_id":"1"} | 路由引用服务,复用上游与插件配置 | |
{"upstream_id":"1"} | 路由直接引用已定义的上游 | |
{"timeout":{"connect":6,"send":6,"read":6}} | 路由级超时(秒),覆盖上游默认值 | |
{"enable_websocket":true} | 开启 WebSocket 代理 | |
{"status":0} | 下线路由但保留配置,随时可改回 1 恢复 | |
{"filter_func":"function(vars) return vars['arg_debug'] == '1' end"} | 自定义匹配函数(需开启对应能力,慎用) | |
PUT 是全量覆盖,PATCH 是局部更新 | 用 PUT 漏字段会丢配置,改单个字段优先 PATCH |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
curl -X PUT http://127.0.0.1:9180/apisix/admin/upstreams/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"type":"roundrobin","nodes":{"10.0.0.21:8080":1,"10.0.0.22:8080":1}}' | 创建上游:轮询两台后端 | |
{"type":"chash","hash_on":"header","key":"x-user-id","nodes":{...}} | 一致性哈希,同一用户固定落到同一后端 | |
{"type":"ewma"} | 按延迟动态加权,慢节点自动少分流量 | |
{"type":"least_conn"} | 最少连接数调度,长连接场景更均衡 | |
{"scheme":"https","pass_host":"node","nodes":{...}} | 以 HTTPS 访问后端,host 透传策略按需设置 | |
{"checks":{"active":{"type":"http","http_path":"/health","healthy":{"interval":2,"successes":2},"unhealthy":{"interval":2,"http_failures":3}}}} | 主动健康检查,自动摘除故障节点 | |
{"checks":{"active":{"type":"https","https_verify_certificate":false}}} | 自签证书场景关闭校验 | |
{"retries":2,"retry_timeout":5} | 失败重试次数与重试超时 | |
{"keepalive_pool":{"size":320,"idle_timeout":60,"requests":1000}} | 连接池参数,影响长连接复用与吞吐 | |
curl -X PUT http://127.0.0.1:9180/apisix/admin/services/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"upstream_id":"1","plugins":{"limit-count":{"count":100,"time_window":60}}}' | 服务抽象:上游 + 公共插件,供多条路由复用 | |
{"hosts":["api.example.com"]} | 服务级域名绑定,路由可继承 | |
curl -X DELETE http://127.0.0.1:9180/apisix/admin/upstreams/1 -H "X-API-KEY: $ADMIN_KEY" | 删除上游(先确认无路由引用) | |
上游节点全挂会直接返回 503 | 先看健康检查状态与后端端口连通性 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
curl http://127.0.0.1:9180/apisix/admin/plugins/list -H "X-API-KEY: $ADMIN_KEY" | 确认插件是否已启用,未启用时配置会报错 | |
curl http://127.0.0.1:9180/apisix/admin/plugins/limit-count -H "X-API-KEY: $ADMIN_KEY" | 查看插件字段定义与默认值 | |
{"limit-count":{"count":100,"time_window":60,"rejected_code":429,"key_type":"var","key":"remote_addr"}} | 按 IP 限流:每分钟 100 次,超限返回 429 | |
{"limit-req":{"rate":10,"burst":20,"rejected_code":503,"key":"remote_addr"}} | 漏桶限速,平滑突发流量 | |
{"limit-conn":{"conn":50,"burst":20,"default_conn_delay":0.1}} | 限制并发连接数 | |
{"proxy-rewrite":{"regex_uri":["^/old/(.*)","/new/$1"]}} | 正则改写路径,迁移接口时常用 | |
{"cors":{"allow_origins":"*","allow_methods":"GET,POST,PUT,DELETE","allow_headers":"*"}} | 跨域配置,前端直连网关时必配 | |
{"ip-restriction":{"whitelist":["10.0.0.0/8","192.168.0.0/16"]}} | IP 白名单,管理接口保护常用 | |
{"redirect":{"uri":"/new","ret_code":301}} | 重定向,做旧地址兼容 | |
{"response-rewrite":{"headers":{"set":{"X-Gateway":"apisix"}}}} | 改写响应头,打标或补安全头 | |
{"proxy-mirror":{"host":"http://mirror.internal:8080"}} | 流量镜像,灰度验证与压测复制 | |
{"api-breaker":{"break_response_code":502,"max_breaker_sec":300,"unhealthy":{"http_statuses":[500],"failures":3},"healthy":{"http_statuses":[200],"successes":3}}} | 熔断:连续失败后快速失败,恢复后自动放量 | |
curl -X PUT http://127.0.0.1:9180/apisix/admin/global_rules/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"plugins":{"prometheus":{}}}' | 全局规则:对所有路由生效 | |
curl -X PUT http://127.0.0.1:9180/apisix/admin/plugin_configs/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"plugins":{"limit-count":{"count":50,"time_window":60}}}' | 插件配置集:多条路由共享一组插件 | |
{"_meta":{"disable":true}} | 按需禁用某个插件,调试时很实用 | |
curl http://127.0.0.1:9180/apisix/admin/global_rules -H "X-API-KEY: $ADMIN_KEY" | 查看所有全局规则 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
curl -X PUT http://127.0.0.1:9180/apisix/admin/consumers -H "X-API-KEY: $ADMIN_KEY" -d '{"username":"jack","plugins":{"key-auth":{"key":"auth-one"}}}' | 创建消费者并绑定 key-auth 凭据 | |
curl http://127.0.0.1:9180/apisix/admin/consumers/jack -H "X-API-KEY: $ADMIN_KEY" | 查询指定消费者 | |
curl -X DELETE http://127.0.0.1:9180/apisix/admin/consumers/jack -H "X-API-KEY: $ADMIN_KEY" | 删除消费者 | |
{"key-auth":{}} | 在路由或服务上开启 key-auth,请求头带 apikey | |
curl -H "apikey: auth-one" http://127.0.0.1:9080/get | 带 key 访问验证鉴权是否生效 | |
{"jwt-auth":{"key":"user-key","secret":"my-secret"}} | 消费者配置 JWT 密钥 | |
{"jwt-auth":{}} | 路由开启 JWT 校验,请求头带 Authorization: Bearer <token> | |
{"basic-auth":{"username":"jack","password":"secret"}} | 消费者配置 Basic Auth 账号 | |
{"hmac-auth":{"access_key":"ak","secret_key":"sk"}} | HMAC 签名认证,开放平台常用 | |
{"consumer-restriction":{"whitelist":["jack"]}} | 限制只有指定消费者可访问 | |
curl -X PUT http://127.0.0.1:9180/apisix/admin/consumer_groups/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"plugins":{"limit-count":{"count":1000,"time_window":60}}}' | 消费者组:统一限流与配额 | |
消费者凭据与路由插件必须匹配 | 路由开了 key-auth 但没有对应消费者会直接 401 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
curl -X PUT http://127.0.0.1:9180/apisix/admin/ssls/1 -H "X-API-KEY: $ADMIN_KEY" -d @ssl.json | 上传证书与私钥(JSON 内含 cert/key/snis) | |
{"snis":["api.example.com","*.example.com"]} | 按 SNI 匹配证书,泛域名写法 | |
{"cert":"-----BEGIN CERTIFICATE-----...","key":"-----BEGIN PRIVATE KEY-----..."} | 证书与私钥内容,注意换行转义 | |
curl -X GET http://127.0.0.1:9180/apisix/admin/ssls -H "X-API-KEY: $ADMIN_KEY" | 查看已配置证书与到期时间 | |
{"ssl_protocols":["TLSv1.2","TLSv1.3"]} | 限制协议版本,禁用 TLS 1.0/1.1 | |
{"type":"client","snis":["..."],"cert":"..."} | 客户端证书(双向 TLS)配置 | |
{"client":{"ca":"-----BEGIN CERTIFICATE-----...","depth":2}} | 开启 mTLS:校验客户端证书链 | |
curl -vk --resolve api.example.com:443:127.0.0.1 https://api.example.com/get | 指定解析验证证书与 SNI 是否匹配 | |
curl -X DELETE http://127.0.0.1:9180/apisix/admin/ssls/1 -H "X-API-KEY: $ADMIN_KEY" | 删除证书 | |
证书到期要有监控 | APISIX 不会主动提醒,建议接入证书过期探测 | |
TLS 端口默认 9443(ssl.listen) | 数据面 HTTPS 与 HTTP 端口分离 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
{"traffic-split":{"rules":[{"weighted_upstreams":[{"upstream_id":"1","weight":90},{"upstream_id":"2","weight":10}]}]}} | 按权重把 10% 流量切到新版本 | |
{"traffic-split":{"rules":[{"match":[{"vars":[["http_x_gray","==","1"]]}],"weighted_upstreams":[{"upstream_id":"2","weight":1}]}]}} | 按请求头灰度,指定用户先体验新版本 | |
{"vars":[["arg_version","==","v2"]]} | 路由级条件匹配,实现参数灰度 | |
{"limit-count":{"count":10,"time_window":60,"key_type":"var","key":"consumer_name","rejected_code":429}} | 按消费者限流,防止单租户打爆 | |
{"limit-req":{"rate":100,"burst":50,"key":"remote_addr"}} | 按来源 IP 限制请求速率 | |
{"request-validation":{"header_schema":{"type":"object","required":["x-token"],"properties":{"x-token":{"type":"string"}}}}} | 请求头校验,前置拦截非法请求 | |
{"fault-injection":{"abort":{"http_status":500,"body":"fault"}}} | 故障注入,演练降级与告警 | |
{"mock":{"response_example":"hello apisix"}} | Mock 响应,前后端联调时不用等后端 | |
按权重灰度要保证两套上游都健康 | 新版本异常时会按比例放大故障,先小流量验证 | |
灰度完成后记得清理 traffic-split | 残留规则会让流量长期分流 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
{"prometheus":{}} | 全局规则中开启 Prometheus 插件 | |
curl http://127.0.0.1:9091/apisix/prometheus/metrics | 抓取指标,重点看 QPS、延迟与上游健康 | |
curl http://127.0.0.1:9091/apisix/prometheus/metrics | grep apisix_http_status | 按状态码统计请求量 | |
{"http-logger":{"uri":"http://log-collector:8080/logs","batch_processor":{"batch_max_size":1000,"inactive_timeout":5}}} | 访问日志推送到 HTTP 采集端 | |
{"kafka-logger":{"brokers":[{"host":"10.0.0.30","port":9092}],"kafka_topic":"apisix-logs"}} | 日志写入 Kafka,配合 ELK 分析 | |
{"file-logger":{"path":"logs/access-custom.log"}} | 单独落一份自定义日志文件 | |
{"skywalking":{}} | 接入 SkyWalking 链路追踪 | |
{"opentelemetry":{"sampler":{"name":"always_on"}}} | 接入 OpenTelemetry,上报到 Collector | |
tail -f logs/access.log | grep " 50" | 快速筛出 5xx 请求 | |
curl http://127.0.0.1:9090/v1/healthcheck | Control API 健康检查,适合探针 | |
nginx_config.http.access_log 与 error_log 路径 | 日志路径在配置中统一指定,便于采集 | |
日志插件开启后注意磁盘与采集端限流 | 阻塞式日志会拖慢请求,优先异步批量 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
etcdctl endpoint health --endpoints=127.0.0.1:2379 | etcd 健康检查,APISIX 配置读写强依赖它 | |
etcdctl member list --endpoints=127.0.0.1:2379 | 查看 etcd 集群成员与 leader | |
etcdctl get /apisix/routes --prefix --keys-only | 查看 APISIX 写入的路由 Key | |
etcdctl get /apisix/routes/1 --print-value-only | jq | 查看单条路由在 etcd 中的原始配置 | |
etcdctl del /apisix/routes/1 | 直接删 etcd 数据(绕过 Admin API,谨慎) | |
etcdctl snapshot save /backup/etcd-20261102.db | 备份 etcd,升级与迁移前必做 | |
etcdctl snapshot restore /backup/etcd-20261102.db --data-dir /var/lib/etcd-restore | 恢复 etcd 数据,需停服后替换数据目录 | |
etcdctl watch /apisix --prefix | 观察配置变更,排查谁改了路由 | |
curl http://127.0.0.1:2379/version | 确认 etcd 版本与 APISIX 兼容性 | |
独立模式(config_provider: yaml)修改 conf/apisix.yaml 后执行 apisix reload | 不依赖 etcd 时配置来源单一,注意备份文件 | |
etcd 故障时 Admin API 全部不可写 | 已加载的配置仍可服务流量,但无法新增变更 |
| 命令 / 配置 | 说明 | 复制 |
|---|---|---|
{"error_msg":"failed to check token"} | Admin Key 不匹配或没带 X-API-KEY 头 | |
404 {"error_msg":"404 Route Not Found"} | 没有匹配的路由:检查 uri/host/methods/priority/vars | |
503 {"error_msg":"no healthy upstream"} | 上游全部不健康:看健康检查日志与后端端口 | |
502 failed to connect to upstream | 后端拒绝连接或地址写错,先在网关机上 telnet 端口 | |
504 upstream response timeout | 后端处理超时:调大 timeout.read 或优化后端 | |
etcd cluster not reachable / connection refused 2379 | etcd 未启动、地址错误或网络隔离 | |
schema validate failed | 配置字段不符合 Schema,按返回提示对照插件定义修改 | |
plugin not found / plugin name is invalid | 插件未在 config.yaml 的 plugins 列表中启用 | |
consumer not found | 路由开启认证但消费者未创建或凭据不匹配 | |
401 {"message":"Missing API key found in request"} | key-auth 开启但请求未带 apikey 头 | |
SSL handshake failed / certificate not matched | SNI 与证书 snis 不匹配,或客户端不支持协议版本 | |
too many open files | 文件句柄耗尽:调大 worker_rlimit_nofile 与系统 ulimit | |
修改 config.yaml 后行为没变化 | 忘记执行 apisix reload | |
路由存在但一直 404 | 常见于 uri 与 uris 混用、末尾斜杠差异、host 不匹配 | |
限流生效但所有请求都被拒 | key 选取不合理(如空值)或 count 设置过小 | |
worker 异常退出 / 反复重启 | 看 error.log 与 dmesg,多为内存不足或插件崩溃 |
运维常用组合
ss -lntp | grep -E "9080|9180|9091" → curl :9090/v1/healthcheck → etcdctl endpoint health → tail -f logs/error.logPUT upstreams → PUT routes(uri + upstream_id) → curl -i 9080 验证 → PATCH 调优先级plugins 列表启用 key-auth → PUT consumers → 路由配置 key-auth → curl -H "apikey: xxx" 验证 → 401 时查消费者新建 upstream 指向新版本 → traffic-split 权重 10% → 观察错误率 → 逐步加到 100% → 清理规则limit-count 按 IP → limit-req 平滑突发 → api-breaker 熔断 → prometheus 观察 429/503PUT ssls/{id} 覆盖 cert/key/snis → curl --resolve 验证 → 监控到期时间常见问题排查
1. 路由匹配要能说清顺序
先比 priority,再比 uri/host/methods/vars,规则冲突时把特殊路由优先级调高
2. PUT 是全量覆盖
用 PUT 改路由必须带完整配置,改单个字段用 PATCH,否则会丢插件与上游
3. 服务与上游要复用
多条路由共用一套上游时用 service 抽象,改后端只改一处
4. 插件必须先启用
config.yaml 的 plugins 列表决定了可用插件,未启用的插件配置会直接报错
5. 健康检查决定 503
主动检查失败会摘除节点,全部摘除即 503,先看检查路径与端口
6. etcd 是单点依赖
生产用 3 节点 etcd,并定期 snapshot 备份,故障时网关仍可服务但无法变更
相关工具
Linux命令速查
文件、文本、权限、进程、网络、磁盘、systemd与防火墙等 Linux 常用命令速查手册
Docker命令速查
镜像、容器、网络、数据卷、Compose、Swarm、清理与排障等 Docker 常用命令速查手册
Nginx命令速查
服务管理、配置指令、反向代理、HTTPS、限流缓存、日志排查等 Nginx 常用命令速查手册
K8S命令速查
集群上下文、Pod调试、工作负载、Service与Ingress、存储、权限、排障等 kubectl 常用命令速查手册
Windows CMD命令速查
文件目录、网络诊断、进程服务、系统信息、用户权限、注册表、批处理等 Windows CMD 常用命令速查手册
systemctl服务管理速查
服务启停、开机自启、unit文件编写、日志查看、定时器、依赖分析与排障等 systemctl 命令速查手册
关于APISIX命令速查
在线 Apache APISIX 命令速查手册,按部署与启停、配置与运行模式、Admin API 基础、路由管理、上游与服务、插件与全局规则、消费者与认证、SSL/TLS 与证书、流量治理与灰度、可观测性与日志、etcd 与数据运维、常见报错与排查等 12 类场景整理 160+ 条常用命令与配置,每条附中文说明与可直接复制的写法,支持关键词搜索、分类折叠和一键复制,打开网页即可查阅。涵盖 apisix start/stop/quit/restart/reload/init/init_etcd/version 与 -c 指定配置、9080 数据面与 9180 Admin API 与 9091 指标与 9090 Control API 端口、logs/error.log 与 access.log、conf/config.yaml 与 config-default.yaml、deployment.role 的 traditional/data_plane/control_plane、deployment.admin.admin_key、deployment.etcd.host、config_provider: yaml 独立模式与 conf/apisix.yaml、plugins 插件启用列表与 nginx_config.worker_processes、X-API-KEY 请求头与 /apisix/admin/routes|services|upstreams|consumers|ssls|global_rules|plugin_configs|plugins/list|schema 的 GET/PUT/PATCH/DELETE 与分页、路由的 uri/uris/host/methods/vars/priority/plugins/upstream_id/service_id/timeout/enable_websocket/status/filter_func、上游的 roundrobin/chash/ewma/least_conn 与 nodes/hash_on/key/scheme/pass_host/checks 主动健康检查/retries/keepalive_pool、服务的 upstream_id 与公共插件、插件的 limit-count/limit-req/limit-conn/proxy-rewrite/regex_uri/cors/ip-restriction/redirect/response-rewrite/proxy-mirror/api-breaker/request-validation/fault-injection/mock/_meta.disable、消费者与 key-auth/jwt-auth/basic-auth/hmac-auth/consumer-restriction/consumer_groups、SSL 的 ssls/snis/cert/key/ssl_protocols/双向 mTLS、traffic-split 权重与按请求头灰度、prometheus 与 9091/apisix/prometheus/metrics 与 http-logger/kafka-logger/file-logger/skywalking/opentelemetry、etcdctl endpoint health/member list/get --prefix/snapshot save/snapshot restore/watch,以及 failed to check token、404 Route Not Found、503 no healthy upstream、502 failed to connect、504 timeout、etcd not reachable、schema validate failed、plugin not found、Missing API key、SSL handshake failed 等报错排查。适用于 APISIX API 网关日常运维、路由与上游规划、插件鉴权限流熔断、灰度发布与流量镜像、证书与 mTLS 管理、可观测性与日志接入、etcd 备份恢复与故障处理,以及网关运维与面试复习。
核心能力
- 涵盖 apisix start/stop/quit/restart/reload/init/init_etcd/version 与 -c 指定配置、9080 数据面与 9180 Admin API 与 9091 指标与 9090 Control API 端口、logs/error.log 与 access.log、conf/config.yaml 与 config-default.yaml、deployment.role 的 traditional/data_plane/control_plane、deployment.admin.admin_key、deployment.etcd.host、config_provider: yaml 独立模式与 conf/apisix.yaml、plugins 插件启用列表与 nginx_config.worker_processes、X-API-KEY 请求头与 /apisix/admin/routes|services|upstreams|consumers|ssls|global_rules|plugin_configs|plugins/list|schema 的 GET/PUT/PATCH/DELETE 与分页、路由的 uri/uris/host/methods/vars/priority/plugins/upstream_id/service_id/timeout/enable_websocket/status/filter_func、上游的 roundrobin/chash/ewma/least_conn 与 nodes/hash_on/key/scheme/pass_host/checks 主动健康检查/retries/keepalive_pool、服务的 upstream_id 与公共插件、插件的 limit-count/limit-req/limit-conn/proxy-rewrite/regex_uri/cors/ip-restriction/redirect/response-rewrite/proxy-mirror/api-breaker/request-validation/fault-injection/mock/_meta.disable、消费者与 key-auth/jwt-auth/basic-auth/hmac-auth/consumer-restriction/consumer_groups、SSL 的 ssls/snis/cert/key/ssl_protocols/双向 mTLS、traffic-split 权重与按请求头灰度、prometheus 与 9091/apisix/prometheus/metrics 与 http-logger/kafka-logger/file-logger/skywalking/opentelemetry、etcdctl endpoint health/member list/get --prefix/snapshot save/snapshot restore/watch,以及 failed to check token、404 Route Not Found、503 no healthy upstream、502 failed to connect、504 timeout、etcd not reachable、schema validate failed、plugin not found、Missing API key、SSL handshake failed 等报错排查
适用场景
适用于 APISIX API 网关日常运维、路由与上游规划、插件鉴权限流熔断、灰度发布与流量镜像、证书与 mTLS 管理、可观测性与日志接入、etcd 备份恢复与故障处理,以及网关运维与面试复习。APISIX命令速查全程在浏览器中完成,无需安装插件,可放心用于日常办公与排障。
常见问题
- APISIX命令速查是免费的吗?需要注册或安装吗?
- APISIX命令速查完全免费,无需注册、无需下载安装任何软件,用浏览器打开网页即可直接使用,也不限制使用次数。
- APISIX命令速查支持哪些功能?
- 涵盖 apisix start/stop/quit/restart/reload/init/init_etcd/version 与 -c 指定配置、9080 数据面与 9180 Admin API 与 9091 指标与 9090 Control API 端口、logs/error.log 与 access.log、conf/config.yaml 与 config-default.yaml、deployment.role 的 traditional/data_plane/control_plane、deployment.admin.admin_key、deployment.etcd.host、config_provider: yaml 独立模式与 conf/apisix.yaml、plugins 插件启用列表与 nginx_config.worker_processes、X-API-KEY 请求头与 /apisix/admin/routes|services|upstreams|consumers|ssls|global_rules|plugin_configs|plugins/list|schema 的 GET/PUT/PATCH/DELETE 与分页、路由的 uri/uris/host/methods/vars/priority/plugins/upstream_id/service_id/timeout/enable_websocket/status/filter_func、上游的 roundrobin/chash/ewma/least_conn 与 nodes/hash_on/key/scheme/pass_host/checks 主动健康检查/retries/keepalive_pool、服务的 upstream_id 与公共插件、插件的 limit-count/limit-req/limit-conn/proxy-rewrite/regex_uri/cors/ip-restriction/redirect/response-rewrite/proxy-mirror/api-breaker/request-validation/fault-injection/mock/_meta.disable、消费者与 key-auth/jwt-auth/basic-auth/hmac-auth/consumer-restriction/consumer_groups、SSL 的 ssls/snis/cert/key/ssl_protocols/双向 mTLS、traffic-split 权重与按请求头灰度、prometheus 与 9091/apisix/prometheus/metrics 与 http-logger/kafka-logger/file-logger/skywalking/opentelemetry、etcdctl endpoint health/member list/get --prefix/snapshot save/snapshot restore/watch,以及 failed to check token、404 Route Not Found、503 no healthy upstream、502 failed to connect、504 timeout、etcd not reachable、schema validate failed、plugin not found、Missing API key、SSL handshake failed 等报错排查。
- APISIX命令速查适合哪些场景使用?
- 适用于 APISIX API 网关日常运维、路由与上游规划、插件鉴权限流熔断、灰度发布与流量镜像、证书与 mTLS 管理、可观测性与日志接入、etcd 备份恢复与故障处理,以及网关运维与面试复习。