0.5.7 waiting connections

Jan Ślusarczyk jan.slusarczyk at dobrestrony.pl
Sat Jan 20 18:33:10 MSK 2007


> You should not use "--with-md5=/usr/lib --with-sha1=/usr/lib",  
> however,
> it does not affect in this case.

I got these two from the Wiki installation section... I will not use  
anymore and I have changed the Wiki page...

> What does "file /usr/sbin/nginx" show ?

/usr/sbin/nginx: ELF 32-bit LSB executable, Intel 80386, version 1  
(SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs),  
for GNU/Linux 2.2.0, not stripped


> What does "ldd /usr/sbin/nginx" show ?

         linux-gate.so.1 =>  (0xffffe000)
         libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7f05000)
         libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb7ed7000)
         libz.so.1 => /usr/lib/libz.so.1 (0xb7ec2000)
         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d93000)
         /lib/ld-linux.so.2 (0xb7f3e000)

> Could you run "./configure ..." again and send the ouptut.

root at linux:/usr/src/nginx-0.5.8 # ./configure --sbin-path=/usr/sbin -- 
conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid -- 
user=www-data --group=www-data --with-http_stub_status_module --with- 
http_flv_module
checking for OS
+ Linux 2.6.15-25-server i686
checking for C compiler ... found
+ using GNU C compiler
checking for gcc variadic macros ... found
checking for C99 variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for Linux specific features
+ rt signals found
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for PCRE library ... found
checking for zlib library ... found
checking for int size ... 4 bytes
checking for long size ... 4 bytes
checking for long long size ... 8 bytes
checking for void * size ... 4 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... little endianess
checking for size_t size ... 4 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 4 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for strerror_r() ... found but is not working
checking for gnu style strerror_r() ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for sched_yield() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found

Configuration summary
   + threads are not used
   + using system PCRE library
   + OpenSSL library is not used
   + md5 library is not used
   + sha1 library is not used
   + using system zlib library

   nginx path prefix: "/usr/local/nginx"
   nginx binary file: "/usr/sbin"
   nginx configuration file: "/etc/nginx/nginx.conf"
   nginx pid file: "/var/run/nginx.pid"
   nginx error log file: "/usr/local/nginx/logs/error.log"
   nginx http access log file: "/usr/local/nginx/logs/access.log"
   nginx http client request body temporary files: "/usr/local/nginx/ 
client_body_temp"
   nginx http proxy temporary files: "/usr/local/nginx/proxy_temp"
   nginx http fastcgi temporary files: "/usr/local/nginx/fastcgi_temp"


> Could you enable core dumps ? It can be done using:
>
> echo 1 > /proc/sys/fs/suid_dumpable
>
> or
>
> echo 1 > /proc/sys/kernel/suid_dumpable
>
> depening from Linux version.

The first option worked.

> Also you need to set ing nginx.conf:
>
> worker_rlimit_core   100m;
> working_directory    /path/to/core/files;

My running config:

user  www-data www-data;
worker_processes  5;
worker_rlimit_core   100m;
working_directory /usr/local/nginx/;


error_log  /var/log/nginx/warn_error.log warn;
error_log  /var/log/nginx/error.log;

events {
     worker_connections  512;
}

http {
     include       /etc/nginx/mime.types;
     default_type  application/octet-stream;
     sendfile        on;
     #tcp_nopush     on;
     #keepalive_timeout  0;
     keepalive_timeout  15;
	reset_timedout_connection  on;
     tcp_nodelay        on;
	server_names_hash_bucket_size 64;

	upstream apache {
         server 192.168.3.189:80;
     }

     gzip on;
     gzip_min_length  1100;
     gzip_buffers     4 8k;
     gzip_types       text/plain;

     include         /etc/nginx/vhosts/*.conf;
}


> You can also set the core dump path globally using
> /proc/sys/kernel/core_pattern

I'm not sure how it works and how to use it. I have read man pages  
and configured my system to dump into specific subdirectory. I will  
return if I find anything.

Jan Ślusarczyk
jan.slusarczyk at dobrestrony.pl








More information about the nginx mailing list