系统相关
首页 > 系统相关> > 20200520_windows2012安装python和django环境

20200520_windows2012安装python和django环境

作者:互联网

http://httpd.apache.org/download.cgi#apache24

 

 

 

 

 

 

配置文件修改后, 记得去阿里云开放端口

ServerName 172.18.196.189:9080 →不能监听公网ip和端口

Listen 172.18.196.189:9080

Listen 9080

 

C:\Apache24\bin>httpd.exe -k install -n "apache2.4"

 

C:\Apache24\bin>netstat -ano | find "9080"

 

C:\Apache24\bin>sc delete apache2.4

[SC] DeleteService 成功

 

 

下载安装vc++2015

https://www.microsoft.com/zh-cn/download/details.aspx?id=48145

 

 

C:\Apache24\bin>sc delete apache2.4

[SC] DeleteService 成功

 

 

 

 

双击安装, 自定义安装,  勾选配置环境变量

 

https://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi

 

 

C:\Python\Python36\Scripts>pip3 install "mod_wsgi-4.5.24+ap24vc14-cp36-cp36m-win_amd64.whl"

 

 

C:\Python\Python36\Scripts>mod_wsgi-express module-config

LoadFile "c:/python/python36/python36.dll"

LoadModule wsgi_module "c:/python/python36/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win_amd64

.pyd"

WSGIPythonHome "c:/python/python36"

 

标签:bin,wsgi,Apache24,python,django,windows2012,9080,mod
来源: https://www.cnblogs.com/wxylog/p/12922329.html