查找安装路径方法以及端口号查看路径(where which除外)
发布日期:2021-05-14 09:15:52 浏览次数:20 分类:精选文章

本文共 2613 字,大约阅读时间需要 8 分钟。

������������������������������������������������������������������������������������������������������������������ ls ���������������������������������������������

������������������������

���������������������������������������������������������������������������������

ps aux | grep tomcat

������������������������ tomcat ������������������������������������������������������ ID������������������������������

������������������������������������

��������������������������������� (44629 ������������������������������������������������������������

ps -ef | grep 44629

��������������������� PID ��� 44629 ������������������������������������������������������������������

������ lsof ������������������������

lsof ������������������������������������������������������������������������������������������������������������������������������������

���������������������������

���������������������������������������������������������������������

lsof -a

��������������������������������������������������������������������������������������� ID��������� ID ������

������������������������������

������������������������������������������������������������������������

lsof -c "���������"

������������������������ nginx ������������������������������������

lsof -c "nginx"

������ GID ������������������������

��������������� GID ���������������������������������������

lsof -g 1234

��������� 1234 ������������ GID���

������������������������������������������

���������������������������������������������������������

lsof -d 12345

��������� 12345 ��������������������� ID���

���������������������������

���������������������������������������������������������������������������������

lsof +D "/path/to/directory"

��������������� /var/www/html ���������������������

lsof +D /var/www/html

������ NFS ������������

��������������������� NFS ������������������������������������������ -n���

lsof -n

������������������������������������

��������������������������������������������������������������� -i������������������������������������ IP ���������������������

lsof -i "protocol=localhost port=8080"

���������������������������

���������������������������������������������������������������

lsof -p 54321

��������� 54321 ���������������

������������������������

������������������������������������������������������������������

lsof -u user_name

���������������������������

������������������������ lsof ���������������������������������������������������

lsof -h

���������������������������

lsof -v

������������������������������������������������������ lsof ���������������������������������������������������

上一篇:linux下查找某个文件的命令
下一篇:linux 查看log日志相关命令

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年04月22日 07时47分02秒