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服务端的端口号 |
注意:阿里云服务器PK腾讯云服务器,很便宜!
①阿里云:2核4G服务器188元/年,4核8G服务器346元/年,8c16g等(价格很低很低)
②腾讯云:2核4G云服务器8M带宽70元一年(有高配)
③华为云:华为云服务器60元一年起(查看更多配置报价)
④免费提供技术支持: 咨询客服
发表评论