centos6下无法使用lsof命令"-bash: lsof: command not found"
来源:互联网 发布:吃肉 知乎 编辑:程序博客网 时间:2024/06/16 20:34
1. 问题描述
在centos下, 无法使用命令lsof, 出现以下信息:
# lsof -i:3690-bash: lsof: command not found
2. 解决方法
我们可以通过yum来安装:
# yum install lsof
本人操作如下:
# yum install lsofLoaded plugins: fastestmirrorSetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.163.com * epel: ftp.cuhk.edu.hk * extras: mirrors.aliyun.com * updates: mirrors.163.comResolving Dependencies--> Running transaction check---> Package lsof.x86_64 0:4.82-4.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: lsof x86_64 4.82-4.el6 base 319 kTransaction Summary================================================================================Install 1 Package(s)Total download size: 319 kInstalled size: 890 kIs this ok [y/N]: yDownloading Packages:lsof-4.82-4.el6.x86_64.rpm | 319 kB 00:00 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : lsof-4.82-4.el6.x86_64 1/1 Verifying : lsof-4.82-4.el6.x86_64 1/1 Installed: lsof.x86_64 0:4.82-4.el6 Complete!
3. lsof 的常用几个命令
lsof -i:(端口号)
如,
lsof -i:3306 (3306默认是mysql服务端的端口)
lsof -i:3690 (3690默认是svn服务端的端口)
OK, Enjoy it!!!
0 0
- centos6下无法使用lsof命令"-bash: lsof: command not found"
- centos6.8下无法使用lsof命令"-bash: lsof: command not found"
- centos 下无法使用lsof命令"-bash: lsof: command not found"
- ifconfig命令无法找到,提示bash: ifconfig: command not found
- Linux 修改.bash_profile后 造成命令无法使用bash: command not found
- CentOS中无法使用setup命令 -bash:setup: command not found
- centos6下解决光盘无法退出(lsof和fuser)
- lsof命令使用详解
- Lsof命令使用
- lsof命令使用详解
- lsof命令使用
- lsof 命令使用
- lsof命令使用
- lsof命令使用详解
- linux ifconfig 无法使用 bash: ifconfig: command not found
- Linux下输入命令报错:-bash: command not found
- linux下使用shutdown命令关机,提示: -bash:shutdown:command not found
- linux下lsof使用
- mongodb_修改器($inc/$set/$unset/$push/$pop/upsert/$rename)-转载补充
- 从上往下打印二叉树
- hdu 3507 Print Article(dp斜率优化)
- Spring系列(6)---总结(1)
- ubuntu 避免’sudo echo x >’ 时’Permission denied’
- centos6下无法使用lsof命令"-bash: lsof: command not found"
- C语言及程序设计初步例程-11 算术运算符与算术表达式
- 学习笔记一:Easy-Admin后台登陆验证码问题
- Spring系列(6)---总结(完)
- Android 3D滑动菜单完全解析,实现推拉门式的立体特效
- UILabel 自动换行 和支持换行符
- 九度 题目1001:A+B for Matrices
- android linux getprop setprop wathcprop的使用
- stm32 窗口看门狗学习(二)