centos6下无法使用lsof命令"-bash: lsof: command not found"
2017-05-06 19:34
686 查看
1. 问题描述
在centos下, 无法使用命令lsof, 出现以下信息:
# lsof -i:3690 -bash: lsof: command not found
2. 解决方法
我们可以通过yum来安装:
# yum install lsof
本人操作如下:
# yum install lsof Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.163.com * epel: ftp.cuhk.edu.hk * extras: mirrors.aliyun.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package lsof.x86_64 0:4.82-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: lsof x86_64 4.82-4.el6 base 319 k Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 319 k Installed size: 890 k Is this ok [y/N]: y Downloading Packages: lsof-4.82-4.el6.x86_64.rpm | 319 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running 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服务端的端口)
相关文章推荐
- centos6下无法使用lsof命令"-bash: lsof: command not found"
- centos6.8下无法使用lsof命令"-bash: lsof: command not found"
- centos 下无法使用lsof命令"-bash: lsof: command not found"
- Linux 修改.bash_profile后 造成命令无法使用bash: command not found
- Linux 修改.bash_profile后 造成命令无法使用bash: command not found
- CentOS中无法使用setup命令 -bash:setup: command not found
- CentOS中无法使用setup命令 -bash:setup: command not found
- CentOS中无法使用setup命令 -bash:setup: command not found
- linux下使用shutdown命令关机,提示: -bash:shutdown:command not found
- linux "-bash: telnet: command not found" telnet不是命令
- Linux不能使用FTP 命令 -bash: ftp: command not found
- 如何在Mac中使用Android SDK,使用adb工具避免出现-bash: adb: command not found
- CentOS 中无法使用make,make install 命令 make: command not
- CentOS中无法使用setup命令 -bash:setup: command not found
- RedHat中敲sh-copy-id命令报错:-bash: ssh-copy-id: command not found
- 缺少snmp命令,-bash: snmpwalk: command not found
- 系统最小化安装后,使用命令时提示“command not found”
- Linux/Centos5.5 Error: "-bash: telnet: command not found"
- 解决linux下"bash:shutdown:command not found"的解决方法
- ndnSIM 2.0 因缺少pythonbind无法使用visual组件问题 —pybindgen (found '') ".. ns3::VisualSimulatorImpl not found"