Guest User

Untitled

a guest
Sep 30th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. [uwsgi]
  2. socket=127.0.0.1:2929
  3. plugin=python
  4. wsgi-file=/etc/uwsgi/test.py
  5. master=True
  6.  
  7. def application(env, start_response):
  8. start_response('200 OK', [('Content-Type','text/html')])
  9. return [b"Hello World"]
  10.  
  11. upstream test_uwsgi{
  12. server 127.0.0.1:2929;
  13. }
  14. server{
  15. listen 80;
  16. server_name test.example.com;
  17. location / {
  18. include uwsgi_params;
  19. uwsgi_pass test_uwsgi;
  20. }
  21. }
  22.  
  23. systemctl restart nginx
  24. systemctl start uwsgi@test
  25.  
  26. Sep 30 11:29:23 Nexus systemd[1]: Starting uWSGI service unit...
  27. Sep 30 11:29:23 Nexus uwsgi[576]: [uWSGI] getting INI configuration from /etc/uwsgi/test.ini
  28. Sep 30 11:29:23 Nexus uwsgi[576]: *** Starting uWSGI 2.0.13.1 (64bit) on [Fri Sep 30 11:29:23 2016] ***
  29. Sep 30 11:29:23 Nexus uwsgi[576]: compiled with version: 6.1.1 20160501 on 01 June 2016 05:45:41
  30. Sep 30 11:29:23 Nexus uwsgi[576]: os: Linux-4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016
  31. Sep 30 11:29:23 Nexus uwsgi[576]: nodename: Nexus
  32. Sep 30 11:29:23 Nexus uwsgi[576]: machine: x86_64
  33. Sep 30 11:29:23 Nexus uwsgi[576]: clock source: unix
  34. Sep 30 11:29:23 Nexus uwsgi[576]: pcre jit disabled
  35. Sep 30 11:29:23 Nexus uwsgi[576]: detected number of CPU cores: 4
  36. Sep 30 11:29:23 Nexus uwsgi[576]: current working directory: /
  37. Sep 30 11:29:23 Nexus uwsgi[576]: detected binary path: /usr/bin/uwsgi
  38. Sep 30 11:29:23 Nexus uwsgi[576]: uWSGI running as root, you can use --uid/--gid/--chroot options
  39. Sep 30 11:29:23 Nexus uwsgi[576]: *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
  40. Sep 30 11:29:23 Nexus uwsgi[576]: your processes number limit is 28969
  41. Sep 30 11:29:23 Nexus uwsgi[576]: your memory page size is 4096 bytes
  42. Sep 30 11:29:23 Nexus uwsgi[576]: detected max file descriptor number: 1024
  43. Sep 30 11:29:23 Nexus uwsgi[576]: lock engine: pthread robust mutexes
  44. Sep 30 11:29:23 Nexus uwsgi[576]: thunder lock: disabled (you can enable it with --thunder-lock)
  45. Sep 30 11:29:23 Nexus uwsgi[576]: uwsgi socket 0 bound to TCP address 127.0.0.1:2929 fd 4
  46. Sep 30 11:29:23 Nexus uwsgi[576]: Python version: 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602]
  47. Sep 30 11:29:23 Nexus uwsgi[576]: *** Python threads support is disabled. You can enable it with --enable-threads ***
  48. Sep 30 11:29:23 Nexus uwsgi[576]: Python main interpreter initialized at 0xcbfb40
  49. Sep 30 11:29:23 Nexus uwsgi[576]: your server socket listen backlog is limited to 100 connections
  50. Sep 30 11:29:23 Nexus uwsgi[576]: your mercy for graceful operations on workers is 60 seconds
  51. Sep 30 11:29:23 Nexus uwsgi[576]: mapped 145536 bytes (142 KB) for 1 cores
  52. Sep 30 11:29:23 Nexus uwsgi[576]: *** Operational MODE: single process ***
  53. Sep 30 11:29:23 Nexus uwsgi[576]: unable to find "application" callable in file /etc/uwsgi/test.py
  54. Sep 30 11:29:23 Nexus uwsgi[576]: unable to load app 0 (mountpoint='') (callable not found or import error)
  55. Sep 30 11:29:23 Nexus uwsgi[576]: *** no app loaded. going in full dynamic mode ***
  56. Sep 30 11:29:23 Nexus uwsgi[576]: *** uWSGI is running in multiple interpreter mode ***
  57. Sep 30 11:29:23 Nexus uwsgi[576]: spawned uWSGI master process (pid: 576)
  58. Sep 30 11:29:23 Nexus uwsgi[576]: spawned uWSGI worker 1 (pid: 590, cores: 1)
  59. Sep 30 11:29:23 Nexus systemd[1]: Started uWSGI service unit.
  60. Sep 30 11:29:26 Nexus uwsgi[576]: -- unavailable modifier requested: 14 --
  61. Sep 30 11:29:26 Nexus uwsgi[576]: -- unavailable modifier requested: 14 --
  62.  
  63. *** no app loaded. going in full dynamic mode ***
Add Comment
Please, Sign In to add comment