ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ngnix and Linux on UltrasparcII



Igor Sysoev wrote:


Нужно приложить патчик:
----------------------
--- src/core/ngx_config.h       Mon Nov 21 15:21:00 2005
+++ src/core/ngx_config.h       Mon Nov 21 16:21:59 2005
@@ -98,7 +98,7 @@
#define NGX_ALIGN       (_MAX_ALIGNMENT - 1)
#else
/* TODO: auto_conf */


Этот патч неправильный, нужно так:

-#define NGX_ALIGN       (sizeof(unsigned long) - 1)  /* platform word */
+#define NGX_ALIGN       15

Опс, погорячился с репортом, что все нормально - запускатся запускается, но:

# tail /var/log/nginx/error.log
2005/11/22 14:58:28 [alert] 20030#0: worker process 22236 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22237 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22238 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22239 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22240 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22241 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22242 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22243 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22245 exited on signal 11 2005/11/22 14:58:28 [alert] 20030#0: worker process 22244 exited on signal 11

И сыплет этими сообщениями с большой регулярностью.

Конфиг:

worker_processes  2;
error_log  /var/log/nginx/error.log warn;

events {
   worker_connections  1024;
}

http {
   include      /etc/nginx/mime.types;
   default_type        application/octet-stream;
log_format main '$remote_addr - - [$time_gmt] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
   access_log /var/log/nginx/access.log main;
   sendfile        on;
   server {
       listen       80;
       charset off;
       location / {
           root   /var/www;
           index  index.html index.htm;
       }
       location /doc {
           root /usr/share;
           autoindex on;
           allow 127.0.0.0/8;
           deny all;
       }
}

То есть вроде-бы ни чего криминального - самый простой конфиг.




Игорь Сысоев
http://sysoev.ru



--
Andrey Chernomyrdin







 




Copyright © Lexa Software, 1996-2009.