简体   繁体   English

卸载 IIS windows server 2019 后端口 80 仍然被阻止

[英]Port 80 still blocked after uninstalling IIS windows server 2019

I've recently removed IIS from my windows server, because it was to complex for my needs.我最近从我的 Windows 服务器中删除了 IIS,因为它对于我的需求来说太复杂了。 Then I created a small flask app, to see if everything still works.然后我创建了一个小烧瓶应用程序,看看一切是否仍然有效。 Unfortunately not, regardless if I test it using local network or internet domain I get the same result:不幸的是,无论我是使用本地网络还是互联网域进行测试,我都会得到相同的结果:

http 192.168.0.5

http: error: ConnectionError: HTTPConnectionPool(host='192.168.0.5', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001B0BDC15570>: Failed to establish a new connection: [WinError 10061] Nie można nawiązać połączenia, ponieważ komputer docelowy aktywnie go odmawia')) while doing a GET request to URL: http://192.168.0.5/

The thing in Polish means "A connection could not be established because the target computer is actively refusing it".波兰语的意思是“无法建立连接,因为目标计算机正在主动拒绝它”。

My fierewall is disabled on windows server.我的防火墙在 Windows 服务器上被禁用。

same thing happens to every port.每个端口都会发生同样的事情。 I tested 80, 443, 5000 and 9292 for a good measure我测试了 80、443、5000 和 9292 以获得良好的测量结果

flask app:烧瓶应用程序:

from flask import Flask, jsonify, request

app = Flask(__name__)

@app.route('/', methods=['GET'])
def index():
    return jsonify({'status': 'ok'})


app.run(port=5000, debug=True)

Ok, I'm dumb as ... you know what.好吧,我很笨,因为……你知道吗。 I hosted flask on loopback only... just run app with:我只在环回上托管烧瓶......只需运行应用程序:

app.run(port=5000, debug=True, host='0.0.0.0')

solved the problem.解决了这个问题。 I'm sorry 🙃对不起🙃

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM