<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1251"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Roxis пишет:
<blockquote cite="mid:200801151133.57515.roxis@list.ru" type="cite">
<pre wrap="">On Tuesday 15 January 2008, Виктор Вислобоков wrote:
</pre>
<blockquote type="cite">
<pre wrap="">можно ли как-то посмотреть какие файлы в настоящий момент времени отдаёт
nginx?
</pre>
</blockquote>
<pre wrap=""><!---->
linux
ls /proc/<worker pid>/fd/
</pre>
</blockquote>
<font face="Tahoma">lsof -c nginx<br>
<br>
<br>
у меня для этого в .bashrc прописано:<br>
<br>
online_open_files_archive() { lsof -c nginx | egrep "/var/www/archive"
| awk '{print $9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20}' | while
read i ; do basename "$i" ; done | sort -rdk1 | uniq -c | sort -rgk1;}<br>
<br>
</font><br>
<pre class="moz-signature" cols="72">--
icq: 99699699</pre>
</body>
</html>