apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug:

Open lgw79674057 opened this issue 5 years ago • 7 comments

mac 环境下,按照安装文档手册进行了

安装 OpenResty, etcd 和 编译工具

brew install openresty/brew/openresty luarocks [email protected] etcd curl git

开启 etcd server

brew services start etcd

为 etcd 服务启用 TLS

etcd --cert-file=/path/to/cert --key-file=/path/to/pkey --advertise-client-urls https://127.0.0.1:2379 然后进行 $ mkdir apisix-2.5 $ wget https://downloads.apache.org/apisix/2.5/apache-apisix-2.5-src.tgz $ tar zxvf apache-apisix-2.5-src.tgz -C apisix-2.5

安装运行时依赖的 Lua 库:

$ make deps 检查 APISIX 的版本号:

$ ./bin/apisix version 启动 APISIX:

$ ./bin/apisix start

执行后就出现 ./bin/apisix start /usr/local/Cellar/openresty/1.19.3.1_1/luajit/bin/luajit ./apisix/cli/apisix.lua start nginx: [emerg] invalid port in resolver "fe80::96e9:eeff:fe67:db2d" in /Users/lgw/Downloads/apisixe-2.5/conf/nginx.conf:80 看端口9080也没启动起来,curl http://127.0.0.1:9080也不行,也不知道去哪里看日志

lgw79674057 avatar May 13 '21 06:05 lgw79674057

Have you modified the config.yaml configuration file?

Firstsawyou avatar May 13 '21 06:05 Firstsawyou

Have you modified the config.yaml configuration file?

yes,but i have restore the config.yaml and it also didn't work

lgw79674057 avatar May 13 '21 07:05 lgw79674057

Have you modified the config.yaml configuration file?

yes,but i have restore the config.yaml and it also didn't work ---config.ymal----

apisix: admin_key: - name: "admin" # yamllint disable rule:comments-indentation key: edd1c9f034335f136f87ad84b625c8f1 # using fixed API token has security risk, please update it when you deploy to production environment # yamllint enable rule:comments-indentation role: admin

lgw79674057 avatar May 13 '21 07:05 lgw79674057

What is in your /etc/resolv.conf?

spacewander avatar May 13 '21 08:05 spacewander

What is in your /etc/resolv.conf?

macOS Notice

This file is not consulted for DNS hostname resolution, address

resolution, or the DNS query routing mechanism used by most

processes on this system.

To view the DNS configuration used by this system, use:

scutil --dns

SEE ALSO

dns-sd(1), scutil(8)

This file is automatically generated.

nameserver fe80::96e9:eeff:fe67:db2d nameserver 192.168.8.1

lgw79674057 avatar May 13 '21 08:05 lgw79674057

i have solve this issue, beacuse my mac has ipv6 at /etc/resolv.conf,so i had annotation it then it work

lgw79674057 avatar May 13 '21 08:05 lgw79674057

Look like we don't support IPv6 nameserver yet. You can work around it by configuring the dns_resolver field.

spacewander avatar May 13 '21 09:05 spacewander