centos6下无法使用lsof命令"-bash: lsof: command not found"
问题描述
在centos下, 无法使用命令lsof, 出现以下信息:
1 2 |
[root@yunwei ~]# lsof -i :3306 -bash: lsof: command not found |
通过yum安装lsof
1 2 3 |
[root@yunwei ~]# yum install lsof //输入上述命令,等待,即可完成lsof的安装, |
lsof 的常用命令
lsof -i:(端口号)
lsof -i:3306 (3306默认是mysql服务端的端口)
lsof -i:3690 (3690默认是svn服务端的端口)
1 2 3 4 5 6 7 8 9 |
[root@yunwei ~]# lsof -i :3306 //3306默认是mysql的端口号 [root@yunwei ~]# lsof -i :3690 //3690默认是svn服务端的端口号 |
2021服务器价格出炉,又降价了!
拼团:阿里云服务器拼团(全网最低价,直接拼不用拉人)
①真便宜:阿里云服务器69元1年,203元3年(全网最低价)
②腾讯云:腾讯云服务器秒杀88元一年起(有高配)
③代金券:2010阿里云代金券一键领取中
发表评论