mod_wsgi.so对于Windows 7 64位?

时间:2015-08-13 04:14:50

标签: python apache mod-wsgi

在哪里可以获得Windows 7 64位的mod_wsgi.so

我已经研究过并且都指向http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi

没有 mod_wsgi.so

我找到了另一个链接https://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so

但我不确定它是否可以信任。此外,它似乎是32位。

有什么想法吗?

2 个答案:

答案 0 :(得分:12)

如果您已阅读Google代码页和followed the link,则会找到this,其中包括多个版本,包括使用VC10为httpd 2.4构建的64位版本。

答案 1 :(得分:2)

我最近进行了此设置。.相信我,在Windows机器上特别困难。...这两个参考链接帮助我实现了这一目标。

  1. https://beamtic.com/installing-mod-wsgi-apache-windows
  2. https://groups.google.com/forum/#!topic/modwsgi/RVD1hIxb2eI

简而言之:

  1. 安装Python 3.x
  2. 下载与您一直在使用的python版本兼容的Microsoft Visual C ++ Build Tool。
  3. 运行此命令-> mod_wsgi-express module-config
  4. 一旦运行此命令,它将为您提供一些输出。就我而言,是:

    router.get('/posts/report/:id',(req,res) => { Post.findById(req.params.id, (err,post) => { if(err){ // handle error here }else{ // Here you can do what you want. // You can update post object. post.reported = true; post.save((error, updatedPost) => { // run code here. // You can redirect to the previous page with all posts // or do anything else you want. }); } }) });

  5. 将此配置粘贴为httpd.conf文件中的文件(对于apache网络服务器)。根本不要更改任何内容

您完成了!希望能帮助到某人:)