Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def application(env, start_response):
- start_response('200 OK', [('Content-Type', 'text/html')])
- return ["Hello!"]
- uwsgi --socket 127.0.0.1:8080 --chdir /my/program/path --pp .. -w wsgi
- *** Starting uWSGI 2.0.3 (64bit) on [Mon Apr 14 12:51:32 2014] ***
- compiled with version: 4.6.3 20120306 (Red Hat 4.6.3-2) on 14 April 2014 12:01:33
- os: Linux-3.1.0-7.fc16.x86_64 #1 SMP Tue Nov 1 21:10:48 UTC 2011
- nodename: ip-10-252-98-215
- machine: x86_64
- clock source: unix
- detected number of CPU cores: 1
- current working directory: /usr/oai/icscada/www
- detected binary path: /usr/bin/uwsgi
- !!! no internal routing support, rebuild with pcre support !!!
- uWSGI running as root, you can use --uid/--gid/--chroot options
- *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
- *** WARNING: you are running uWSGI without its master process manager ***
- your processes number limit is 1024
- your memory page size is 4096 bytes
- detected max file descriptor number: 1024
- lock engine: pthread robust mutexes
- thunder lock: disabled (you can enable it with --thunder-lock)
- uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3
- Python version: 2.7.3 (default, Jul 24 2012, 11:41:40) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)]
- *** Python threads support is disabled. You can enable it with --enable-threads ***
- Python main interpreter initialized at 0x2504ee0
- your server socket listen backlog is limited to 100 connections
- your mercy for graceful operations on workers is 60 seconds
- mapped 72752 bytes (71 KB) for 1 cores
- *** Operational MODE: single process ***
- added ../ to pythonpath.
- WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x2504ee0 pid: 21702 (default app)
- *** uWSGI is running in multiple interpreter mode ***
- spawned uWSGI worker 1 (and the only) (pid: 21702, cores: 1)
- import os
- os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
- import django.core.handlers.wsgi
- application = django.core.handlers.wsgi.WSGIHandler()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement