【发布时间】:2012-12-19 04:48:50
【问题描述】:
我有一个 Ubuntu 12.04 服务器设置,当前在 Passenger / Nginx 安装上运行 Ruby on Rails 应用程序。我决定使用一些 Python 并使用 Bottle 编写一个小应用程序。我想将此应用程序部署到我的服务器。
我关注this guide 设置我的服务器以运行 Python 应用程序。当我运行 sudo service uwsgi restart 时,我收到以下错误消息:
Restarting app server(s) uwsgi
[uWSGI] getting INI configuration from
/usr/share/uwsgi/conf/default.ini [uWSGI] parsing config file /etc/uwsgi/apps-enabled/example.net.xml
open("./python_plugin.so"): No such file or directory [core/utils.cline 4700]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
Sat Dec 8 18:29:14 2012 - [WARNING] option "app" is deprecated: use the more advanced "mount" option
我真的不太了解 Python,我已经通过easy_install 安装了我需要的插件
分别是:
- pymongo
- 美丽的汤
- 瓶
我的问题是:如何将这个简单的应用程序部署到我的服务器上?
谢谢
【问题讨论】:
-
您能否验证
python_plugin.so存在于/usr/lib/uwsgi/plugins/python中并且访问权限是否合适? -
作为一般规则,尽可能使用
pip而不是easy_install安装模块 - 相信我,它会为您省去未来的痛苦。 -
@Raber 当我列出它时,它就出现在
-rw-r--r-- 1 root root 142936 Jul 17 02:28 python27_plugin.so lrwxrwxrwx 1 root root 37 Dec 10 16:39 python_plugin.so -> /etc/alternatives/uwsgi-plugin-python -
我尝试通过
pip重新安装uwsgi,但我遇到了同样的问题
标签: python ubuntu nginx bottle