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

api端口号无法访问是什么情况? #225

Open
amhoho opened this issue Nov 27, 2018 · 2 comments
Open

api端口号无法访问是什么情况? #225

amhoho opened this issue Nov 27, 2018 · 2 comments

Comments

@amhoho
Copy link

amhoho commented Nov 27, 2018

安全组和防火墙都是全放行的,但是端口号却无法访问.而采集器是正常的.
Config.inc

[API]
# API config http://127.0.0.1:5010
# The ip specified when starting the web API
ip = 0.0.0.0
# he port on which to run the web API
port = 5010

@ozhiwei
Copy link
Contributor

ozhiwei commented Nov 28, 2018

启动的时候看日志输出来判断配置文件是否正确, 类似这样的输出
* Running on http://0.0.0.0:5010/ (Press CTRL+C to quit)
配置文件应该是Config.ini, 而不是Config.inc

如果配置文件正确,
看下你在本地服务器上是否可以访问服务.

@jhao104
Copy link
Owner

jhao104 commented Dec 7, 2018

@amhoho netstat看下端口起来了没

netstat -tunlp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants