在哪里可以获得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位。
有什么想法吗?
答案 0 :(得分:12)
如果您已阅读Google代码页和followed the link,则会找到this,其中包括多个版本,包括使用VC10为httpd 2.4构建的64位版本。
答案 1 :(得分:2)
我最近进行了此设置。.相信我,在Windows机器上特别困难。...这两个参考链接帮助我实现了这一目标。
简而言之:
一旦运行此命令,它将为您提供一些输出。就我而言,是:
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.
});
}
})
});
将此配置粘贴为httpd.conf文件中的文件(对于apache网络服务器)。根本不要更改任何内容
您完成了!希望能帮助到某人:)