suchen

Heim  >  Fragen und Antworten  >  Hauptteil

php - 关于lsof命令查看某个文件被哪个进程打开

我想用lsof测试查看某个文件被哪个进程打开,这样写对不对

PHPzPHPz2894 Tage vor186

Antworte allen(2)Ich werde antworten

  • PHPz

    PHPz2017-04-10 17:49:37

    直接使用

    lsof /home/www/phpinfo.php

    不要加-r参数
    -r参数是一直重复检测当前打开的文件

    Antwort
    0
  • ringa_lee

    ringa_lee2017-04-10 17:49:37

    http://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316599.html

    Antwort
    0
  • StornierenAntwort