{"id":604,"date":"2019-10-23T14:48:22","date_gmt":"2019-10-23T06:48:22","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=604"},"modified":"2019-10-23T14:48:24","modified_gmt":"2019-10-23T06:48:24","slug":"linux-lsof21629201963581435299","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/","title":{"rendered":"Linux lsof\u547d\u4ee4\u8be6\u89e3"},"content":{"rendered":"\n

lsof\u547d\u4ee4\u7b80\u4ecb\uff1a<\/strong><\/p>\n\n\n\n

lsof\uff08list open files\uff09\u662f\u4e00\u4e2a\u5217\u51fa\u5f53\u524d\u7cfb\u7edf\u6253\u5f00\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5728linux\u73af\u5883\u4e0b\uff0c\u4efb\u4f55\u4e8b\u7269\u90fd\u4ee5\u6587\u4ef6\u7684\u5f62\u5f0f\u5b58\u5728\uff0c\u901a\u8fc7\u6587\u4ef6\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u8bbf\u95ee\u5e38\u89c4\u6570\u636e\uff0c\u8fd8\u53ef\u4ee5\u8bbf\u95ee\u7f51\u7edc\u8fde\u63a5\u548c\u786c\u4ef6\u3002\u6240\u4ee5\uff0clsof\u7684\u529f\u80fd\u5f88\u5f3a\u5927\u3002\u4e00\u822croot\u7528\u6237\u624d\u80fd\u6267\u884clsof\u547d\u4ee4\uff0c\u666e\u901a\u7528\u6237\u53ef\u4ee5\u770b\u89c1\/usr\/sbin\/lsof\u547d\u4ee4\uff0c\u4f46\u662f\u666e\u901a\u7528\u6237\u6267\u884c\u4f1a\u663e\u793a\u201cpermission denied\u201d\u3002\u56e0\u6b64\u901a\u8fc7lsof\u5de5\u5177\u80fd\u591f\u67e5\u770b\u8fd9\u4e2a\u5217\u8868\u5bf9\u7cfb\u7edf\u76d1\u6d4b\u4ee5\u53ca\u6392\u9519\u5c06\u662f\u5f88\u6709\u5e2e\u52a9\u7684\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u5728\u7ec8\u7aef\u4e0b\u8f93\u5165lsof\u5373\u53ef\u663e\u793a\u7cfb\u7edf\u6253\u5f00\u7684\u6587\u4ef6\uff0c\u56e0\u4e3a lsof \u9700\u8981\u8bbf\u95ee\u6838\u5fc3\u5185\u5b58\u548c\u5404\u79cd\u6587\u4ef6\uff0c\u6240\u4ee5\u5fc5\u987b\u4ee5 root \u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c\u5b83\u624d\u80fd\u591f\u5145\u5206\u5730\u53d1\u6325\u5176\u529f\u80fd\u3002
<\/p>\n\n\n\n

\u6bcf\u884c\u663e\u793a\u4e00\u4e2a\u6253\u5f00\u7684\u6587\u4ef6\uff0c\u82e5\u4e0d\u6307\u5b9a\u6761\u4ef6\u9ed8\u8ba4\u5c06\u663e\u793a\u6240\u6709\u8fdb\u7a0b\u6253\u5f00\u7684\u6240\u6709\u6587\u4ef6\u3002lsof\u8f93\u51fa\u5404\u5217\u4fe1\u606f\u7684\u610f\u4e49\u5982\u4e0b\uff1a<\/p>\n\n\n\n


COMMAND\uff1a\u8fdb\u7a0b\u7684\u540d\u79f0
PID\uff1a\u8fdb\u7a0b\u6807\u8bc6\u7b26
USER\uff1a\u8fdb\u7a0b\u6240\u6709\u8005
FD\uff1a\u6587\u4ef6\u63cf\u8ff0\u7b26\uff0c\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7\u6587\u4ef6\u63cf\u8ff0\u7b26\u8bc6\u522b\u8be5\u6587\u4ef6\u3002\u5982cwd\u3001txt\u7b49
TYPE\uff1a\u6587\u4ef6\u7c7b\u578b\uff0c\u5982DIR\u3001REG\u7b49
DEVICE\uff1a\u6307\u5b9a\u78c1\u76d8\u7684\u540d\u79f0
SIZE\uff1a\u6587\u4ef6\u7684\u5927\u5c0f
NODE\uff1a\u7d22\u5f15\u8282\u70b9\uff08\u6587\u4ef6\u5728\u78c1\u76d8\u4e0a\u7684\u6807\u8bc6\uff09
NAME\uff1a\u6253\u5f00\u6587\u4ef6\u7684\u786e\u5207\u540d\u79f0<\/p>\n\n\n\n

\u6587\u4ef6\u63cf\u8ff0\u7b26\u5217\u8868\uff1a<\/p>\n\n\n\n

  1. cwd\uff1a\u8868\u793acurrent work dirctory\uff0c\u5373\uff1a\u5e94\u7528\u7a0b\u5e8f\u7684\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\uff0c\u8fd9\u662f\u8be5\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u7684\u76ee\u5f55\uff0c\u9664\u975e\u5b83\u672c\u8eab\u5bf9\u8fd9\u4e2a\u76ee\u5f55\u8fdb\u884c\u66f4\u6539<\/li>
  2. txt\uff1a\u8be5\u7c7b\u578b\u7684\u6587\u4ef6\u662f\u7a0b\u5e8f\u4ee3\u7801\uff0c\u5982\u5e94\u7528\u7a0b\u5e8f\u4e8c\u8fdb\u5236\u6587\u4ef6\u672c\u8eab\u6216\u5171\u4eab\u5e93\uff0c\u5982\u4e0a\u5217\u8868\u4e2d\u663e\u793a\u7684 \/sbin\/init \u7a0b\u5e8f<\/li>
  3. lnn\uff1alibrary references (AIX);<\/li>
  4. er\uff1aFD information error (see NAME column);<\/li>
  5. jld\uff1ajail directory (FreeBSD);<\/li>
  6. ltx\uff1ashared library text (code and data);<\/li>
  7. mxx \uff1ahex memory-mapped type number xx.<\/li>
  8. m86\uff1aDOS Merge mapped file<\/a>;<\/li>
  9. mem\uff1amemory-mapped file;<\/li>
  10. mmap\uff1amemory-mapped device;<\/li>
  11. pd\uff1aparent directory;<\/li>
  12. rtd\uff1aroot directory;<\/li>
  13. tr<\/a>\uff1akernel trace file (OpenBSD);<\/li>
  14. v86  VP\/ix mapped file;<\/li>
  15. 0\uff1a\u8868\u793a\u6807\u51c6\u8f93\u51fa<\/li>
  16. 1\uff1a\u8868\u793a\u6807\u51c6\u8f93\u5165<\/li>
  17. 2\uff1a\u8868\u793a\u6807\u51c6\u9519\u8bef<\/li><\/ol>\n\n\n\n

    \u4e00\u822c\u5728\u6807\u51c6\u8f93\u51fa\u3001\u6807\u51c6\u9519\u8bef\u3001\u6807\u51c6\u8f93\u5165\u540e\u8fd8\u8ddf\u7740\u6587\u4ef6\u72b6\u6001\u6a21\u5f0f\uff1a<\/p>\n\n\n\n

    1. u\uff1a\u8868\u793a\u8be5\u6587\u4ef6\u88ab\u6253\u5f00\u5e76\u5904\u4e8e\u8bfb\u53d6\/\u5199\u5165\u6a21\u5f0f\u3002<\/li>
    2. r\uff1a\u8868\u793a\u8be5\u6587\u4ef6\u88ab\u6253\u5f00\u5e76\u5904\u4e8e\u53ea\u8bfb\u6a21\u5f0f\u3002<\/li>
    3. w<\/a>\uff1a\u8868\u793a\u8be5\u6587\u4ef6\u88ab\u6253\u5f00\u5e76\u5904\u4e8e\u3002<\/li>
    4. \u7a7a\u683c\uff1a\u8868\u793a\u8be5\u6587\u4ef6\u7684\u72b6\u6001\u6a21\u5f0f\u4e3aunknow\uff0c\u4e14\u6ca1\u6709\u9501\u5b9a\u3002<\/li>
    5. -\uff1a\u8868\u793a\u8be5\u6587\u4ef6\u7684\u72b6\u6001\u6a21\u5f0f\u4e3aunknow\uff0c\u4e14\u88ab\u9501\u5b9a\u3002<\/li><\/ol>\n\n\n\n

      \u540c\u65f6\u5728\u6587\u4ef6\u72b6\u6001\u6a21\u5f0f\u540e\u9762\uff0c\u8fd8\u8ddf\u7740\u76f8\u5173\u7684\u9501\uff1a<\/p>\n\n\n\n

      1. N\uff1afor a Solaris NFS lock of unknown type;<\/li>
      2. r\uff1afor read<\/a> lock on part of the file;<\/li>
      3. R\uff1afor a read lock on the entire file;<\/li>
      4. w\uff1afor a write<\/a> lock on part of the file;\uff08\u6587\u4ef6\u7684\u90e8\u5206\u5199\u9501\uff09<\/li>
      5. W\uff1afor a write lock on the entire file;\uff08\u6574\u4e2a\u6587\u4ef6\u7684\u5199\u9501\uff09<\/li>
      6. u\uff1afor a read and write lock of any length;<\/li>
      7. U\uff1afor a lock of unknown type;<\/li>
      8. x\uff1afor an SCO OpenServer Xenix lock on part      of the file;<\/li>
      9. X\uff1afor an SCO OpenServer Xenix lock on the      entire file;<\/li>
      10. space\uff1aif there is no lock.<\/li><\/ol>\n\n\n\n

        \u6587\u4ef6\u7c7b\u578b\uff1a<\/p>\n\n\n\n

        1. DIR\uff1a\u8868\u793a\u76ee\u5f55\u3002<\/li>
        2. CHR\uff1a\u8868\u793a\u5b57\u7b26\u7c7b\u578b\u3002<\/li>
        3. BLK\uff1a\u5757\u8bbe\u5907\u7c7b\u578b\u3002<\/li>
        4. UNIX\uff1a UNIX \u57df\u5957\u63a5\u5b57\u3002<\/li>
        5. FIFO\uff1a\u5148\u8fdb\u5148\u51fa (FIFO) \u961f\u5217\u3002<\/li>
        6. IPv4\uff1a\u7f51\u9645\u534f\u8bae (IP) \u5957\u63a5\u5b57\u3002<\/li>
        7. DEVICE\uff1a\u6307\u5b9a\u78c1\u76d8\u7684\u540d\u79f0<\/li>
        8. SIZE\uff1a\u6587\u4ef6\u7684\u5927\u5c0f<\/li>
        9. NODE\uff1a\u7d22\u5f15\u8282\u70b9\uff08\u6587\u4ef6\u5728\u78c1\u76d8\u4e0a\u7684\u6807\u8bc6\uff09<\/li>
        10. NAME\uff1a\u6253\u5f00\u6587\u4ef6\u7684\u786e\u5207\u540d\u79f0<\/li><\/ol>\n\n\n\n

          \u9009\u9879<\/h3>\n\n\n\n
          -a\uff1a\u5217\u51fa\u6253\u5f00\u6587\u4ef6\u5b58\u5728\u7684\u8fdb\u7a0b\uff1b\n-c<\u8fdb\u7a0b\u540d>\uff1a\u5217\u51fa\u6307\u5b9a\u8fdb\u7a0b\u6240\u6253\u5f00\u7684\u6587\u4ef6\uff1b\n-g\uff1a\u5217\u51faGID\u53f7\u8fdb\u7a0b\u8be6\u60c5\uff1b\n-d<\u6587\u4ef6\u53f7>\uff1a\u5217\u51fa\u5360\u7528\u8be5\u6587\u4ef6\u53f7\u7684\u8fdb\u7a0b\uff1b\n+d<\u76ee\u5f55>\uff1a\u5217\u51fa\u76ee\u5f55\u4e0b\u88ab\u6253\u5f00\u7684\u6587\u4ef6\uff1b\n+D<\u76ee\u5f55>\uff1a\u9012\u5f52\u5217\u51fa\u76ee\u5f55\u4e0b\u88ab\u6253\u5f00\u7684\u6587\u4ef6\uff1b\n-n<\u76ee\u5f55>\uff1a\u5217\u51fa\u4f7f\u7528NFS\u7684\u6587\u4ef6\uff1b\n-i<\u6761\u4ef6>\uff1a\u5217\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u8fdb\u7a0b\u3002\uff084\u30016\u3001\u534f\u8bae\u3001:\u7aef\u53e3\u3001 @ip<\/a> \uff09\n-p<\u8fdb\u7a0b\u53f7>\uff1a\u5217\u51fa\u6307\u5b9a\u8fdb\u7a0b\u53f7\u6240\u6253\u5f00\u7684\u6587\u4ef6\uff1b\n-u\uff1a\u5217\u51faUID\u53f7\u8fdb\u7a0b\u8be6\u60c5\uff1b\n-h\uff1a\u663e\u793a\u5e2e\u52a9\u4fe1\u606f\uff1b\n-v\uff1a\u663e\u793a\u7248\u672c\u4fe1\u606f\u3002<\/pre>\n\n\n\n

          lsof\u6307\u4ee4\u7684\u7528\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n

          lsof abc.txt \u663e\u793a\u5f00\u542f\u6587\u4ef6abc.txt\u7684\u8fdb\u7a0b<\/p>\n\n\n\n

          lsof \u76ee\u5f55\u540d \u67e5\u627e\u8c01\u5728\u4f7f\u7528\u6587\u4ef6\u76ee\u5f55\u7cfb\u7edf<\/p>\n\n\n\n

          \"\"\/<\/figure>\n\n\n\n

          lsof -i :22 \u77e5\u905322\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528<\/p>\n\n\n\n

          lsof -c abc \u663e\u793aabc\u8fdb\u7a0b\u73b0\u5728\u6253\u5f00\u7684\u6587\u4ef6<\/p>\n\n\n\n

          lsof -g gid \u663e\u793a\u5f52\u5c5egid\u7684\u8fdb\u7a0b\u60c5\u51b5<\/p>\n\n\n\n

          lsof -n \u4e0d\u5c06IP\u8f6c\u6362\u4e3ahostname\uff0c\u7f3a\u7701\u662f\u4e0d\u52a0\u4e0a-n\u53c2\u6570<\/p>\n\n\n\n

          lsof -p 12 \u770b\u8fdb\u7a0b\u53f7\u4e3a12\u7684\u8fdb\u7a0b\u6253\u5f00\u4e86\u54ea\u4e9b\u6587\u4ef6<\/p>\n\n\n\n

          lsof -u username \u67e5\u770b\u7528\u6237\u6253\u5f00\u54ea\u4e9b\u6587\u4ef6<\/p>\n\n\n\n

          lsof -i @192.168.1.111 \u67e5\u770b\u8fdc\u7a0b\u5df2\u6253\u5f00\u7684\u7f51\u7edc\u8fde\u63a5\uff08\u8fde\u63a5\u5230192.168.1.111\uff09
          \uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d<\/p>\n\n\n\n

          lsof -i \u7528\u4ee5\u663e\u793a\u7b26\u5408\u6761\u4ef6\u7684\u8fdb\u7a0b\u60c5\u51b5<\/p>\n\n\n\n

          \u8bed\u6cd5: lsof -i[46] [protocol][@hostname|hostaddr][:service|port]<\/p>\n\n\n\n

          46 -> IPv4 or IPv6<\/p>\n\n\n\n

          protocol -> TCP or UDP<\/p>\n\n\n\n

          hostname -> Internet host name<\/p>\n\n\n\n

          hostaddr -> IPv4\u4f4d\u7f6e<\/p>\n\n\n\n

          service -> \/etc\/service\u4e2d\u7684 service name (\u53ef\u4ee5\u4e0d\u53ea\u4e00\u4e2a)<\/p>\n\n\n\n

          port -> \u7aef\u53e3\u53f7 (\u53ef\u4ee5\u4e0d\u53ea\u4e00\u4e2a)<\/p>\n\n\n\n

          \uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d
          lsof +|-r [t] \u63a7\u5236lsof\u4e0d\u65ad\u91cd\u590d\u6267\u884c\uff0c\u7f3a\u7701\u662f15s\u5237\u65b0<\/p>\n\n\n\n

          -r\uff0clsof\u4f1a\u6c38\u8fdc\u4e0d\u65ad\u7684\u6267\u884c\uff0c\u76f4\u5230\u6536\u5230\u4e2d\u65ad\u4fe1\u53f7<\/p>\n\n\n\n

          +r\uff0clsof\u4f1a\u4e00\u76f4\u6267\u884c\uff0c\u76f4\u5230\u6ca1\u6709\u6863\u6848\u88ab\u663e\u793a<\/p>\n\n\n\n

          \u4f8b\u5b50\uff1a\u4e0d\u65ad\u67e5\u770b\u76ee\u524dftp\u8fde\u63a5\u7684\u60c5\u51b5\uff1alsof -i tcp@192.168.1.111:ftp<\/a> -r<\/p>\n","protected":false},"excerpt":{"rendered":"

          lsof\u547d\u4ee4\u7b80\u4ecb\uff1a lsof\uff08list open files\uff09\u662f\u4e00\u4e2a\u5217\u51fa\u5f53\u524d\u7cfb\u7edf\u6253\u5f00\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5728linux\u73af<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"yoast_head":"\nLinux lsof\u547d\u4ee4\u8be6\u89e3 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux lsof\u547d\u4ee4\u8be6\u89e3 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\" \/>\n<meta property=\"og:description\" content=\"lsof\u547d\u4ee4\u7b80\u4ecb\uff1a lsof\uff08list open files\uff09\u662f\u4e00\u4e2a\u5217\u51fa\u5f53\u524d\u7cfb\u7edf\u6253\u5f00\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5728linux\u73af\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-23T06:48:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-23T06:48:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/img-blog.csdn.net\/20130613230813375\" \/>\n<meta name=\"author\" content=\"\u7ba1\u7406\u5458\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\"},\"author\":{\"name\":\"\u7ba1\u7406\u5458\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"headline\":\"Linux lsof\u547d\u4ee4\u8be6\u89e3\",\"datePublished\":\"2019-10-23T06:48:22+00:00\",\"dateModified\":\"2019-10-23T06:48:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\"},\"wordCount\":418,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\",\"url\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\",\"name\":\"Linux lsof\u547d\u4ee4\u8be6\u89e3 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\",\"isPartOf\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#website\"},\"datePublished\":\"2019-10-23T06:48:22+00:00\",\"dateModified\":\"2019-10-23T06:48:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.linuxdevops.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\/\/www.linuxdevops.cn\/linux\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux lsof\u547d\u4ee4\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#website\",\"url\":\"https:\/\/www.linuxdevops.cn\/\",\"name\":\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\",\"description\":\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\u7b14\u8bb0\",\"publisher\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"alternateName\":\"linuxdevops\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.linuxdevops.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\",\"name\":\"\u7ba1\u7406\u5458\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg\",\"contentUrl\":\"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg\",\"width\":512,\"height\":512,\"caption\":\"\u7ba1\u7406\u5458\"},\"logo\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/\"},\"description\":\"\u7ba1\u7406\u5458\",\"url\":\"https:\/\/www.linuxdevops.cn\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux lsof\u547d\u4ee4\u8be6\u89e3 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/","og_locale":"zh_CN","og_type":"article","og_title":"Linux lsof\u547d\u4ee4\u8be6\u89e3 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","og_description":"lsof\u547d\u4ee4\u7b80\u4ecb\uff1a lsof\uff08list open files\uff09\u662f\u4e00\u4e2a\u5217\u51fa\u5f53\u524d\u7cfb\u7edf\u6253\u5f00\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5728linux\u73af","og_url":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/","og_site_name":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","article_published_time":"2019-10-23T06:48:22+00:00","article_modified_time":"2019-10-23T06:48:24+00:00","og_image":[{"url":"https:\/\/img-blog.csdn.net\/20130613230813375"}],"author":"\u7ba1\u7406\u5458","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#article","isPartOf":{"@id":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/"},"author":{"name":"\u7ba1\u7406\u5458","@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"headline":"Linux lsof\u547d\u4ee4\u8be6\u89e3","datePublished":"2019-10-23T06:48:22+00:00","dateModified":"2019-10-23T06:48:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/"},"wordCount":418,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"articleSection":["Linux"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/","url":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/","name":"Linux lsof\u547d\u4ee4\u8be6\u89e3 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","isPartOf":{"@id":"https:\/\/www.linuxdevops.cn\/#website"},"datePublished":"2019-10-23T06:48:22+00:00","dateModified":"2019-10-23T06:48:24+00:00","breadcrumb":{"@id":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxdevops.cn\/2019\/10\/linux-lsof21629201963581435299\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.linuxdevops.cn\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/www.linuxdevops.cn\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux lsof\u547d\u4ee4\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxdevops.cn\/#website","url":"https:\/\/www.linuxdevops.cn\/","name":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","description":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\u7b14\u8bb0","publisher":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"alternateName":"linuxdevops","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxdevops.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":["Person","Organization"],"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1","name":"\u7ba1\u7406\u5458","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/","url":"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg","contentUrl":"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg","width":512,"height":512,"caption":"\u7ba1\u7406\u5458"},"logo":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/"},"description":"\u7ba1\u7406\u5458","url":"https:\/\/www.linuxdevops.cn\/author\/root\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/604"}],"collection":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/comments?post=604"}],"version-history":[{"count":1,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":605,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/604\/revisions\/605"}],"wp:attachment":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/media?parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/categories?post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/tags?post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}