Advertisement
Guest User

Untitled

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