推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
zioc
V2EX  ›  Python

无法启动 uWSGI Emperor: Unit uwsgi.service failed to load: No such file or directory.

  •  
  •   zioc · Apr 21, 2016 · 5974 views
    This topic created in 3699 days ago, the information mentioned may be changed or developed.
    我是新手。 Ubuntu 15.10 ,
    已经添加了这个文件 /etc/init/uwsgi.conf :
    description "uWSGI"
    start on runlevel [2345]
    stop on runlevel [06]
    respawn

    env UWSGI=/usr/local/bin/uwsgi
    env LOGTO=/var/log/uwsgi/emperor.log

    exec $UWSGI --master --emperor /etc/uwsgi/vassals --die-on-term --uid www-data --gid www-data --logto $LOGTO



    现在执行以下命令都无效
    sudo service uwsgi start:
    Failed to start uwsgi.service: Unit uwsgi.service failed to load: No such file or directory.

    sudo initctl start:
    sudo: initctl: command not found

    sudo start uwsgi:
    sudo: start: command not found
    7 replies    2016-04-21 18:38:05 +08:00
    julyclyde
        1
    julyclyde  
       Apr 21, 2016
    ubuntu 15.10 用的还是 upstart 吗?
    你这文件位置、命令,可都是 upstart 里的东西啊
    zioc
        2
    zioc  
    OP
       Apr 21, 2016
    @julyclyde 不知道啊,纯 python 新手
    zioc
        3
    zioc  
    OP
       Apr 21, 2016
    @julyclyde 主业 iOS 不是服务器这块的
    julyclyde
        4
    julyclyde  
       Apr 21, 2016   ❤️ 1
    那我估计你搞不定了
    你缺乏 Linux 、 python 、 virtualenv 、 WSGI 、 uWSGI 等各项知识,以至于没法描述你到底是怎么安装自己的程序的
    zioc
        5
    zioc  
    OP
       Apr 21, 2016
    @julyclyde http://www.oschina.net/translate/serving-flask-with-nginx-on-ubuntu 根据这个教程做啊,本身也是业余在玩
    julyclyde
        6
    julyclyde  
       Apr 21, 2016
    @zioc 问题是你没按照啊!人家说的是 ubuntu 13.04
    jezal
        7
    jezal  
       Apr 21, 2016
    看看 Gunicorn
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 66ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    ♥ Do have faith in what you're doing.