使用make安装时如何卸载mod_wsgi? [英] How to uninstall mod_wsgi when installed with make?

查看:30
本文介绍了使用make安装时如何卸载mod_wsgi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Ubuntu 14.04 上安装了 mod_wsgi,如他们的 文档.虽然我没有收到来自 Apache 的任何错误或任何我的 Django 设置不起作用(不知道为什么),所以我想重新开始并使用 libapache2-mod-wsgi.

I have installed mod_wsgi on Ubuntu 14.04 as described in their documentation. While I don't get any errors from Apache or anything my Django setup does not work (no idea why exactly) so I would like to start over and use libapache2-mod-wsgi.

但是,我不知道如何卸载 mod_wsgi.这个对有关该主题的更一般问题的回答建议尝试 make uninstall 这在这种情况.

However, I don't know how to uninstall mod_wsgi. This answer to a more general question on the subject advises trying make uninstall which does not work in this case.

make -n install 给我以下输出:

/usr/bin/apxs2 -c -I/usr/include/python2.7 -DNDEBUG -D_FORTIFY_SOURCE=2  -Wc,-g -Wc,-O2  src/server/mod_wsgi.c src/server/wsgi_*.c -L/usr/lib -L/usr/lib/python2.7/config  -lpython2.7 -lpthread -ldl  -lutil -lm
/usr/bin/apxs2 -i -S LIBEXECDIR=/usr/lib/apache2/modules -n 'mod_wsgi' src/server/mod_wsgi.la

我到底需要做什么才能卸载它?

What exactly do I have to do to uninstall this?

谢谢!

我使用的是 mod_wsgi-4.5.3.

I'm using mod_wsgi-4.5.3.

推荐答案

删除您添加到 Apache 配置文件的任何配置并运行:

Remove any configuration you added to Apache configuration files and also run:

sudo rm /usr/lib/apache2/modules/mod_wsgi.so

我强烈建议不要使用系统提供的 mod_wsgi 包,因为它通常已被许多版本过时,因此也不支持.您最好使用最新的源代码并尝试找出问题所在,以及您尚未发布的确切详细信息.

I would strongly recommend against using the system provided mod_wsgi package as it is generally out of date by many many versions and is also thus not supported. You are better off using the latest from source code and trying to work out what the problem is, exact details of which you haven't posted.

这篇关于使用make安装时如何卸载mod_wsgi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆