{"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