Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. root@localhost:/home/sscc/sscc2019# uwsgi --ini uwsgi.ini
  2. [uWSGI] getting INI configuration from uwsgi.ini
  3. root@localhost:/home/sscc/sscc2019# ps aux|grep uwsgi
  4. root 11018 0.0 0.0 14224 1032 pts/0 S+ 09:03 0:00 grep --color=auto uwsgi
  5.  
  6. root@localhost:/home/sscc/sscc2019# ps aux|grep nginx
  7. root 10997 0.0 0.0 125120 1456 ? Ss 08:55 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
  8. www-data 10998 0.0 0.0 125444 3188 ? S 08:55 0:00 nginx: worker process
  9. www-data 10999 0.0 0.0 125444 3188 ? S 08:55 0:00 nginx: worker process
  10. root 11024 0.0 0.0 14224 932 pts/0 S+ 09:04 0:00 grep --color=auto nginx
  11.  
  12. *** Starting uWSGI 2.0.12-debian (64bit) on [Tue Mar 19 08:09:12 2019] ***
  13. compiled with version: 5.4.0 20160609 on 28 September 2018 15:49:44
  14. os: Linux-4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019
  15. nodename: localhost
  16. machine: x86_64
  17. clock source: unix
  18. pcre jit disabled
  19. detected number of CPU cores: 2
  20. current working directory: /home/sscc/sscc2019
  21. writing pidfile to uwsgi.pid
  22. detected binary path: /usr/bin/uwsgi-core
  23. uWSGI running as root, you can use --uid/--gid/--chroot options
  24. *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
  25. chdir() to home/sscc/sscc2019
  26. chdir(): No such file or directory [core/uwsgi.c line 2586]
  27. *** Starting uWSGI 2.0.18 (64bit) on [Tue Mar 19 08:52:06 2019] ***
  28. compiled with version: 5.4.0 20160609 on 15 March 2019 06:07:24
  29. os: Linux-4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019
  30. nodename: localhost
  31. machine: x86_64
  32. clock source: unix
  33. detected number of CPU cores: 2
  34. current working directory: /home/sscc/sscc2019
  35. writing pidfile to /home/sscc/sscc2019/uwsgi.pid
  36. detected binary path: /usr/local/bin/uwsgi
  37. !!! no internal routing support, rebuild with pcre support !!!
  38. uWSGI running as root, you can use --uid/--gid/--chroot options
  39. setgid() to 2000
  40. setuid() to 1000
  41. chdir() to home/sscc/sscc2019
  42. chdir(): No such file or directory [core/uwsgi.c line 2623]
  43.  
  44. [uwsgi]
  45. socket=127.0.0.1:8000
  46. chdir=home/sscc/sscc2019
  47. wsgi-file=sscc2019/wsgi.py
  48. processes=4
  49. threads=2
  50. master=True
  51. pidfile=/home/sscc/sscc2019/uwsgi.pid
  52. daemonize=/home/sscc/sscc2019/uswgi.log
  53. module=sscc2019.wsgi:application
  54. vacuum=true
  55. chmod-socket=666
  56. virtualenv=/root/.virtualenvs/ssccenv
  57. harakiri=60
  58. max-requests=5000
  59. uid=1000
  60. gid=2000
  61.  
  62. root@localhost:/etc/nginx/sites-available# ls
  63. default sscc2019.conf
  64. server{
  65. listen 80;
  66. charset utf-8;
  67. server_name IP;
  68.  
  69. client_max_body_size 75M;
  70. location / {
  71. include /home/sscc/sscc2019/uwsgi_params;
  72. uwsgi_pass 127.0.0.1:8000;
  73. }
  74. location /static {
  75. alias /var/www/sscc2019/static;
  76. }
  77. location /media {
  78. alias /home/sscc/sscc2019/media;
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement