ðòïåëôù 


  áòèé÷ 


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: nginx stable ver. in freebsd ports collection



äÁ, ×ÏÔ ÅÝÅ:

bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
š š š šoptions=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
š š š šether 00:22:19:92:58:53
š š š šinet 192.168.100.132 netmask 0xffffff00 broadcast 192.168.100.255
š š š šinet 192.168.100.10 netmask 0xffffffff broadcast 192.168.100.10


2009/6/1 Vladimir Getmanshchuk <vladget@xxxxxxxxxxxx>:
> óÄÅÌÁÌ, ÅÓÌÉ ÉÍÅÌÏÓØ ××ÉÄÕ:
>
> working_directory /usr/local/etc/nginx;
> worker_rlimit_core 1000m;
>
> ðÅÒÅÚÁÐÕÓÔÉÌ nginx, ÖÄÅÍ ÐÏËÁ "ÚÁÌÉÐÎÅÔ"
>
>
> äÏ ÐÅÒÅÚÁÐÕÓËÁ ÎÁÛÅÌ ÅÝÅ ×ÏÔ ÞÔÏ:
> # netstat -m
> 1492/3128/4620 mbufs in use (current/cache/total)
> 1479/1883/3362/409600 mbuf clusters in use (current/cache/total/max)
> 1479/1593 mbuf+clusters out of packet secondary zone in use (current/cache)
> 2/528/530/192000 4k (page size) jumbo clusters in use (current/cache/total/max)
> 0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
> 0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
> 3339K/6660K/9999K bytes allocated to network (current/cache/total)
> 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
> 0/0/0 requests for jumbo clusters denied (4k/9k/16k)
> 0/0/0 sfbufs in use (current/peak/max)
> 0 requests for sfbufs denied
> 0 requests for sfbufs delayed
> 216109 requests for I/O initiated by sendfile
> 0 calls to protocol drain routines
> #
>
> é ×ÏÔ ÜÔÏ(ÍÎÏÖÅÓÔ×Ï CLOSED connections, ÐÏÞÅÍÕ ÏÎÉ ÎÅ ÓÂÒÁÓÙ×ÁÀÔÓÑ?):
>
>
> # netstat -nla
> Active Internet connections (including servers)
> Proto Recv-Q Send-Q šLocal Address š š š š šForeign Address š š š š(state)
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2252 š ESTABLISHED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2249 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2246 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2243 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2240 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2237 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2234 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2231 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2228 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2225 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2222 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2219 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2216 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2213 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2210 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2207 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2204 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2201 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2198 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2195 š CLOSED
> tcp4 š š 114 š š š0 192.168.100.132.80 š š 192.168.100.133.54127 šCLOSE_WAIT
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2192 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2189 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2186 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2183 š CLOSED
> tcp4 š š š96 š š š0 192.168.100.132.80 š š 10.4.96.22.38195 š š š CLOSE_WAIT
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2180 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2177 š CLOSED
> tcp4 š š š96 š š š0 192.168.100.132.80 š š 10.4.96.22.38165 š š š CLOSE_WAIT
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2174 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2171 š CLOSED
> tcp4 š š š96 š š š0 192.168.100.132.80 š š 10.4.96.22.38115 š š š CLOSE_WAIT
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2168 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2165 š CLOSED
> tcp4 š š š96 š š š0 192.168.100.132.80 š š 10.4.96.22.38032 š š š CLOSE_WAIT
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2162 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2159 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2156 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2153 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2150 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2147 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2144 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2141 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2138 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2135 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2132 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2129 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2126 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2123 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2120 š CLOSED
> tcp4 š š 114 š š š0 192.168.100.132.80 š š 192.168.100.132.64092 šCLOSE_WAIT
> tcp4 š š š 0 š š š0 192.168.100.132.64092 š192.168.100.132.80 š š FIN_WAIT_2
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2117 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2114 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2111 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2108 š CLOSED
> tcp4 š š 254 š š š0 192.168.100.10.80 š š š192.168.100.130.2105 š CLOSED
>
>
>
> 2009/6/1 Vladimir Getmanshchuk <vladget@xxxxxxxxxxxx>:
>> ï!
>> îÅ ÐÅÒÅÇÒÕÖÁÌ nginx ÐÏÓÌÅ ÚÁ×ÉÓÁÎÉÅ É ÎÁÛÅÌ ÏÞÅÒÅÄÉ:
>>
>> # netstat -Lan
>> Current listen queue sizes (qlen/incqlen/maxqlen)
>> Proto Listen š š š š Local Address
>> tcp4 š314/0/4096 š š *.80
>>
>>
>> 2009/6/1 Igor Sysoev <is@xxxxxxxxxxxxx>:
>>> On Mon, Jun 01, 2009 at 03:23:54PM +0300, Vladimir Getmanshchuk wrote:
>>>
>>>> user site site;
>>>> worker_processes š2; # last value 8
>>>>
>>>> error_log š /var/log/nginx-error.log info;
>>>> #[info | error | debug]
>>>>
>>>> events {
>>>> š worker_connections 4096;
>>>> š use kqueue;
>>>> # šmulti_accept on;
>>>> }
>>>>
>>>> http {
>>>> š š include š š š š š š mime.types;
>>>> š š include š š š š š š proxy.conf;
>>>> š š default_type šapplication/octet-stream;
>>>>
>>>> š š log_format main š'$remote_addr - $remote_user [$time_local] $status '
>>>> š š '"$request" $body_bytes_sent "$http_referer" '
>>>> š š '"$http_user_agent" "http_x_forwarded_for"';
>>>> š š access_log /var/log/nginx-access.log main;
>>>>
>>>> š š sendfile š š š on;
>>>> š š tcp_nopush š š on;
>>>> š š tcp_nodelay š šon;
>>>> š š server_names_hash_bucket_size š 64;
>>>> š š reset_timedout_connection on;
>>>>
>>>> š š keepalive_timeout š65;
>>>>
>>>> # š šgzip on;
>>>> # š šgzip_min_length 0;
>>>> # š šgzip_proxied any;
>>>> # š šgzip_types text/html text/plain text/css application/x-_javascript_
>>>> application/xml;
>>>>
>>>> š š upload_progress proxied 1m;
>>>>
>>>> š š #Fixing hw lb errors
>>>> š š geo $lb š{
>>>> š š šdefault š š š0;
>>>> š š š192.168.100.130 š1; š # LB IPs
>>>> š š }
>>>>
>>>> š š server {
>>>> š š š š listen š š š 80;
>>>> š š š š server_name šsite.com www.site.com;
>>>> š š š š access_log š/usr/local/www/log/nginx-www.site.com-access.log šmain;
>>>>
>>>> š š š š # Main location
>>>> š š š š location / {
>>>> š š š š š š proxy_pass š š š š http://127.0.0.1:8080/;
>>>> š š š š š š track_uploads proxied 30s;
>>>> š š š š }
>>>> š š š š # Static files location
>>>> š š š š location ~ ^/(images|_javascript_|js|css|flash|media|static)/ š{
>>>> š š š š š šroot š š/usr/local/www/www/;
>>>> š š š š š šexpires 30d;
>>>> š š š š }
>>>> š š š š # Upload progress
>>>> š š š š location ^~ /progress {
>>>> š š š š š š report_uploads proxied;
>>>> š š š š }
>>>> š š š š # Server status
>>>> š š š š location /status {
>>>> š š š š š šstub_status on;
>>>> š š š š š šaccess_log š off;
>>>> š š š š š šallow š 127.0.0.1;
>>>> š š š š š šdeny š šall;
>>>> š š š š }
>>>> š š š š # Error pages
>>>> š š š š error_page 400 /400;
>>>>
>>>> š š š š # 400
>>>> š š š š location = /400 {
>>>> š š š š š šif ($lb) {
>>>> š š š š š š šaccess_log šoff;
>>>> š š š š š š š š }
>>>> š š š š š š šreturn 400;
>>>> š š š š }
>>>> š š }
>>>> š š server {
>>>> š š š š listen š š š 80;
>>>> š š š š server_name šwww1.site.com;
>>>> š š š š #access_log š/usr/local/www/log/nginx-www.site.com-two-access.log šmain;
>>>>
>>>> š š š š # Main location
>>>> š š š š location / {
>>>> š š š š š š proxy_pass š š š š http://127.0.0.1:8080/;
>>>> š š š š š š track_uploads proxied 30s;
>>>> š š š š }
>>>> š š š š # Static files location
>>>> š š š š location ~ ^/(images|_javascript_|js|css|flash|media|static)/ š{
>>>> š š š š š šroot š š/usr/local/www/www1/;
>>>> š š š š š šexpires 30d;
>>>> š š š š }
>>>> š š š š # Upload progress
>>>> š š š š location ^~ /progress {
>>>> š š š š š š report_uploads proxied;
>>>> š š š š }
>>>> š š š š # Server status
>>>> š š š š location /status {
>>>> š š š š š šstub_status on;
>>>> š š š š š šaccess_log š off;
>>>> š š š š š šallow š 127.0.0.1;
>>>> š š š š š šdeny š šall;
>>>> š š š š }
>>>> š š š š # Error pages
>>>> š š š š error_page 400 /400;
>>>>
>>>> š š š š # 400
>>>> š š š š location = /400 {
>>>> š š š š š šif ($lb) {
>>>> š š š š š š šaccess_log šoff;
>>>> š š š š š š š š }
>>>> š š š š š š šreturn 400;
>>>> š š š š }
>>>> š š }
>>>>
>>>> }
>>>
>>> îÁ www.rambler.ru ÂÅÚ ÐÒÏÂÌÅÍ ÉÓÐÏÌØÚÕÅÔÓÑ ÐÏÄÏÂÎÁÑ ÖÅ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ
>>> ÚÁ ÉÓËÌÀÞÅÎÉÅÍ upload'Ï×.
>>>
>>>
>>> --
>>> éÇÏÒØ óÙÓÏÅ×
>>> http://sysoev.ru
>>>
>>>
>>
>>
>>
>> --
>> Yours sincerely,
>> Vladimir Getmanshchuk
>>
>> Senior Unix System Administrator
>> Openfilm, LLC
>>
>> Email: vladget@xxxxxxxxxxxx
>> Skype: vladimir.getmanshchuk
>>
>
>
>
> --
> Yours sincerely,
> Vladimir Getmanshchuk
>
> Senior Unix System Administrator
> Openfilm, LLC
>
> Email: vladget@xxxxxxxxxxxx
> Skype: vladimir.getmanshchuk
>



--
Yours sincerely,
Vladimir Getmanshchuk

Senior Unix System Administrator
Openfilm, LLC

Email: vladget@xxxxxxxxxxxx
Skype: vladimir.getmanshchuk




 




Copyright © Lexa Software, 1996-2009.