首页 > 解决方案 > httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000

问题描述

我正在尝试在 CentOS 8 上使用 apache 设置烧瓶项目,请参阅本教程: https ://bobtai.gitbooks.io/mynotes/content/Deployment/flask_apache_cent.html

现在,我被困在最后一步。我将端口 80 改为 5000,因为我知道 80 已经在使用中,并且 5000 对于烧瓶项目来说是常见的。另外,我也试过用5001、8081等……但只能得到同样的结果。

(13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000

另外,我也考虑过 SELinux 的权限,我尝试使用semanage port. 然而,这表明

ValueError: Port tcp/5000 already defined

标签: apacheflaskpython-3.6mod-wsgicentos8

解决方案


推荐阅读