使用 apache2.4 + mod_wsgi 部署django项目
一、软件安装
1.安装httpd(apache2.4)
yum install httpd
yum install httpd-devel
# 运行测试,需保证端口不被占用
systemctl start httpd
2.编译安装mod_wsgi (version 4.6.4)
参考连接:https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
2.1 下载mod_wsgi源码并解压
wget https://github.com/GrahamDumpleton/mod_wsgi/archive/4.6.4.tar.gz
tar xvfz 4.6.