django部署到apache出现DLL load failed
2016-07-26 13:58
441 查看
项目部署到apache后访问页面跳出DLL load failed,后面是问号乱码,异常由from Crypto.Cipher import AES抛出,在https://groups.google.com/forum/#!msg/modwsgi/-nLeLe7ydtk/UXCclNwlsK8J找到解决方法,主要步骤为三步。
1.下载Microsoft Windows SDK并安装
2.在C:\Program Files (x86)\Windows Kits\10\bin\x64下找到mt.exe。执行命令mt.exe -inputresource:"C:\Python26\python.exe";#1 -out:"C:
\Python26\extracted.python.exe.manifest" 。删除七尺trustInfo,重命名为httpd.exe.manifest。
3.复制到apache的http.exe相同目录下,执行mt.exe -manifest "C:\Program Files\Apache Software Foundation \Apache2.2\bin\httpd.exe.manifest" -outputresource:"C:\Program Files \Apache Software Foundation\Apache2.2\bin\httpd.exe";1
问题解决。
注意:1.执行命令的目录
2.在我自己的机器上输入命令时-manifest后面不需要加冒号(:),加了会报错,而链接中的作者加了冒号。可能是版本问题语法不同。
1.下载Microsoft Windows SDK并安装
2.在C:\Program Files (x86)\Windows Kits\10\bin\x64下找到mt.exe。执行命令mt.exe -inputresource:"C:\Python26\python.exe";#1 -out:"C:
\Python26\extracted.python.exe.manifest" 。删除七尺trustInfo,重命名为httpd.exe.manifest。
3.复制到apache的http.exe相同目录下,执行mt.exe -manifest "C:\Program Files\Apache Software Foundation \Apache2.2\bin\httpd.exe.manifest" -outputresource:"C:\Program Files \Apache Software Foundation\Apache2.2\bin\httpd.exe";1
问题解决。
注意:1.执行命令的目录
2.在我自己的机器上输入命令时-manifest后面不需要加冒号(:),加了会报错,而链接中的作者加了冒号。可能是版本问题语法不同。
相关文章推荐
- daimachuan
- 70. Climbing Stairs
- Gradle sync failed: Gradle DSL method not found: 'compile()',Consult IDE log for more details
- Doing Homework again
- saiku 修改默认图表颜色
- http://www.caogen.com/blog/Infor_detail/83263.html
- intellj vailad code
- org.hibernate.AnnotationException: No identifier specified for entity: cn.itcast.domain.Counter
- Gtk-Message: Failed to load module "canberra-gtk-module"
- opencv Haartraining
- 将GPS坐标转换成百度地图坐标,将baidu 经纬度 转换为google经纬度
- [219] Contains Duplicate II
- pthread_key泄露问题检测
- (HDU 5728)2016 Multi-University Training Contest 1 PowMod(数论)
- 1086. Tree Traversals Again (25)
- 游戏编程中的人工智能技术-扫雷机系列
- SLA by Short brain-July-2016
- 7.5 obtaining database metadata
- HDU 4300 Clairewd’s message 扩展kmp || kmp
- (LeetCode)Contains Duplicate -- 查看数组是否重复