2012-12-08 34 views
0

我有一個Ubuntu 12.04服務器設置,目前在Passenger/Nginx安裝上運行Ruby on Rails應用程序。我決定玩一些Python,並使用Bottle編寫了一個小應用程序。我想將這個應用程序部署到我的服務器。 我跟着this guide設置我的服務器來運行Python應用程序。當我運行sudo service uwsgi restart我收到以下錯誤信息:在Nginx上部署瓶子應用程序

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
  • beautifulsoup

我的問題是:如何將這個簡單的應用程序部署到我的服務器?
謝謝

+0

您可以驗證'python_plugin.so'出現在'/ usr/lib中/ uwsgi /插件/ python'和訪問合適嗎? – Raber

+0

作爲一般規則,儘可能使用'pip'而不是'easy_install'來安裝模塊 - 相信我,這將爲您節省以後的痛苦。 – Natan

+0

@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 ' – Nick

回答