Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
study2study #4-Nginx                        -                   @n0ts             Naoya NAKAZAWA                 11/11/2011
who?• @n0ts• Naoya NAKAZAWA•  • 22.5 /
nginx.confhttp://wiki.nginx.org/ NginxFullExample       line 1-24
line 1user www www;
user www www;       line 1               : nobody nobody                     rootsetuid()/setguid()
line 2worker_processes 5;
line 2worker_processes 5;      : wroker_processes <           >            :1CPU                          nginxCPU
worker_processes 5;      cont ; - SMP -                   I/O - select()/poll()           1                           events
line 3error_log logs/error.log;
error_log logs/error.log;                                  line 3    : error_log <                  > [ debug | info | not...
line 4pid logs/nginx.pid;
pid logs/nginx.pid;                  line 4      : pid <          >PID                           HUP # kill -HUP `cat logs...
line 5worker_rlimit_nofile 8192;
worker_rlimit_nofile 8192;               line 5  : worker_rlimit_nofile <   >        :        OS
line 7events {
events {                 line 7EventsNginxaccept_mutex, accept_mutex_delay,debug_connection, devpoll_changes, devpoll_even...
line 8worker_connections 4096;
worker_connections 4096;                    line 8    : worker_connections <                 >           : ?max_clients = ...
line 9}
}    line 9
line 11http {
http {             line 11HTTPNginx HTTP64
line 12include conf/mime.types;
include conf/mime.types;                   line 12     : include <          >            :v0.4.4 include vhosts/*.conf;
line 13include /etc/nginx/proxy.conf;
include /etc/nginx/proxy.conf;         line 13
line 14include /etc/nginx/fastcgi.conf
include /etc/nginx/fastcgi.conf          line 14
line 15index index.html index.htm index.php;
line 15index index.html index.htm index.php;   : index <                 >          : index.html
line 17default type application/octet-stream;
line 17default type application/octet-stream;   : default_type <MIME       >          text/plain       MIME               ...
line 18-20log_format main $remote_addr - $remote_user [$time_local] $status  "$request" $body_bytes_sent "$http_referer"  ...
log_format main                                    line 18-20            $remote_addr - $remote_user [$time_local] $status...
line 21access_log logs/access.log main;
access_log logs/access.log main;                    line 21: access_log <      > [<         >[   =   ]] | off          : l...
line 22sendfile on;
linesendfile on;                 22    : sendfile [on | off]            : sendfile offsendfile()
line 23tcp_nopush on;
tcp_nopush on;                  line 23   : tcp_nopush [on | off]          : off                         FreeBSDTCP_NOPUSH...
line 24server_name_hash_bucket_size 128;
server_name_hash_bucket_size 128;              line 24   : server_names_hash_bucket_size   >         : 32/64/128          ...
Thanks!
Study2study#4 nginx conf_1_24
Study2study#4 nginx conf_1_24
Nächste SlideShare
Wird geladen in …5
×

Study2study#4 nginx conf_1_24

2.921 Aufrufe

Veröffentlicht am

Veröffentlicht in: Technologie, Business
  • Als Erste(r) kommentieren

Study2study#4 nginx conf_1_24

  1. 1. study2study #4-Nginx - @n0ts Naoya NAKAZAWA 11/11/2011
  2. 2. who?• @n0ts• Naoya NAKAZAWA• • 22.5 /
  3. 3. nginx.confhttp://wiki.nginx.org/ NginxFullExample line 1-24
  4. 4. line 1user www www;
  5. 5. user www www; line 1 : nobody nobody rootsetuid()/setguid()
  6. 6. line 2worker_processes 5;
  7. 7. line 2worker_processes 5; : wroker_processes < > :1CPU nginxCPU
  8. 8. worker_processes 5; cont ; - SMP - I/O - select()/poll() 1 events
  9. 9. line 3error_log logs/error.log;
  10. 10. error_log logs/error.log; line 3 : error_log < > [ debug | info | notice | warn | error | crit ] : ${prefix}/logs/error.log (fastcgi ) - main : error - HTTP : crit - server : critVirtualHost
  11. 11. line 4pid logs/nginx.pid;
  12. 12. pid logs/nginx.pid; line 4 : pid < >PID HUP # kill -HUP `cat logs/nginx.pid`
  13. 13. line 5worker_rlimit_nofile 8192;
  14. 14. worker_rlimit_nofile 8192; line 5 : worker_rlimit_nofile < > : OS
  15. 15. line 7events {
  16. 16. events { line 7EventsNginxaccept_mutex, accept_mutex_delay,debug_connection, devpoll_changes, devpoll_events,kqueue_changes, kqueue_events, epoll_events,multi_accept, rtsig_signo, rtsig_overflow_events,rtsig_overflow_test, rtsig_overflow_threshold, use,worker_connections
  17. 17. line 8worker_connections 4096;
  18. 18. worker_connections 4096; line 8 : worker_connections < > : ?max_clients = worker_processes * worker_connectionsmax_clients = worker_processes * worker_connectins / 4
  19. 19. line 9}
  20. 20. } line 9
  21. 21. line 11http {
  22. 22. http { line 11HTTPNginx HTTP64
  23. 23. line 12include conf/mime.types;
  24. 24. include conf/mime.types; line 12 : include < > :v0.4.4 include vhosts/*.conf;
  25. 25. line 13include /etc/nginx/proxy.conf;
  26. 26. include /etc/nginx/proxy.conf; line 13
  27. 27. line 14include /etc/nginx/fastcgi.conf
  28. 28. include /etc/nginx/fastcgi.conf line 14
  29. 29. line 15index index.html index.htm index.php;
  30. 30. line 15index index.html index.htm index.php; : index < > : index.html
  31. 31. line 17default type application/octet-stream;
  32. 32. line 17default type application/octet-stream; : default_type <MIME > text/plain MIME MIME
  33. 33. line 18-20log_format main $remote_addr - $remote_user [$time_local] $status "$request" $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for";
  34. 34. log_format main line 18-20 $remote_addr - $remote_user [$time_local] $status "$request" $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"; : log_format < >< > : log_format combined “...”%b Apache mod_log_configcombinedlog_format combined ‘$remote_addr - $remote_user [$time_local] ‘ ‘“$request” $status $body_bytes_sent ‘ ‘“$http_referer” “$http_user_agent”’;
  35. 35. line 21access_log logs/access.log main;
  36. 36. access_log logs/access.log main; line 21: access_log < > [< >[ = ]] | off : log/access.log combined
  37. 37. line 22sendfile on;
  38. 38. linesendfile on; 22 : sendfile [on | off] : sendfile offsendfile()
  39. 39. line 23tcp_nopush on;
  40. 40. tcp_nopush on; line 23 : tcp_nopush [on | off] : off FreeBSDTCP_NOPUSH Linux TCP_CORK sendfile
  41. 41. line 24server_name_hash_bucket_size 128;
  42. 42. server_name_hash_bucket_size 128; line 24 : server_names_hash_bucket_size > : 32/64/128 CPU
  43. 43. Thanks!

×