在RHEL中部署带有Apache和mod_wsgi的python django应用程序时出错

在RHEL中部署带有Apache和mod_wsgi的python django应用程序时出错,python,django,deployment,mod-wsgi,Python,Django,Deployment,Mod Wsgi,我无法在RHEL中部署带有Apache和mod_wsgi的Django Python应用程序 以下是我的配置: Alias /static /home/appuser/xxxweb/yyydep/app/static <Directory /home/appuser/xxxweb/yyydep/app> Require all granted </Directory> <Directory /home/appuser/xxxweb/yyydep/app/m

我无法在RHEL中部署带有Apache和mod_wsgi的Django Python应用程序

以下是我的配置:

Alias /static /home/appuser/xxxweb/yyydep/app/static
<Directory /home/appuser/xxxweb/yyydep/app>
    Require all granted
</Directory>

<Directory /home/appuser/xxxweb/yyydep/app/management>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess management python-path=/home/appuser/xxxweb/yyydep python-home=/home/appuser/xxxweb/yyydep/disneyenv
WSGIProcessGroup management
WSGIScriptAlias / /home/appuser/xxxweb/yyydep/app/management/wsgi.py

Alias/static/home/appuser/xxxweb/yyydep/app/static
要求所有授权
要求所有授权
wsgidaemonprocessmanagement python path=/home/appuser/xxxweb/yyydep python home=/home/appuser/xxxweb/yyydep/disneyenv
WSGIProcessGroup管理
WSGIScriptAlias//home/appuser/xxxweb/yyydep/app/management/wsgi.py

重新启动apache服务器后,下面是已记录的错误

安全更新检查失败:无法连接到的服务器(如果此错误仍然存在,请检查连接安全性或尝试升级乘客)(下一次24小时签入) ImportError:没有名为site的模块

他们中有谁能帮我解决这个问题吗


谢谢

首先在shell中尝试这些命令,看看会发生什么:

firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload

执行上述命令时,iam正在获取找不到的命令。-bash-4.2$firewall cmd--permanent--zone=public--add service=http-bash:firewall cmd:command not found-bash-4.2$firewall cmd--permanent--zone=public--add service=https-bash:firewall cmd:command not found-bash-4.2$firewall cmd---reload-bash:command notfoundHi Shravan,您使用的是哪个版本的RHEL?我使用的是Red Hat Enterprise Linux Server 7.3版(Maipo),有人能帮我吗?