Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not access the 9080 port #74

Closed
hityc2019 opened this issue Sep 9, 2020 · 7 comments
Closed

can not access the 9080 port #74

hityc2019 opened this issue Sep 9, 2020 · 7 comments
Assignees
Labels

Comments

@hityc2019
Copy link

# docker-compose -p docker-apisix up -d
Creating network "docker-apisix_apisix" with driver "bridge"
Creating docker-apisix_etcd_1 ... done
Creating docker-apisix_web1_1 ... done
Creating docker-apisix_web2_1 ... done
Creating docker-apisix_apisix_1 ... done

After success run the images,


# curl "http://127.0.0.1:9080/apisix/admin/services/" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
curl: (56) Recv failure: Connection reset by peer

# ping  http://127.0.0.1:9080
ping: http://127.0.0.1:9080: Name or service not known
# telnet  http://127.0.0.1:9080
telnet: could not resolve http://127.0.0.1:9080/telnet: Name or service not known

# lsof -i:9080
COMMAND     PID USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
docker-pr 26200 root    4u  IPv6 932639246      0t0  TCP *:9080 (LISTEN)
@membphis
Copy link
Member

membphis commented Sep 9, 2020

@gxthrj ping

@gxthrj
Copy link
Contributor

gxthrj commented Nov 22, 2020

@hityc2019 The reason is allow_admin:in config.yaml is Commented out.
Perhaps I should change the config.yaml as follow

allow_admin:                  
    - 0.0.0.0/0

@moonming
Copy link
Member

Of course not, there will be security risks. You should find a better solution @gxthrj

1 similar comment
@moonming
Copy link
Member

Of course not, there will be security risks. You should find a better solution @gxthrj

@gxthrj
Copy link
Contributor

gxthrj commented Nov 22, 2020

Ok, get it .

@github-actions
Copy link

This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 18, 2021
@github-actions
Copy link

github-actions bot commented Nov 1, 2021

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

@github-actions github-actions bot closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants