1、我用sftp登陆redhat6.5的linux系统,用root帐号登陆。
2、我推送nmap命令,却提示该命令找不到?这是为什么?
我单单用crt工具登陆,是nmap命令是有效的。
求兽兽哥解答一下
2016-05-16 17:53:15,126 cn.com.venustech.common.utils.jsch.JSchCommand.connect(JSchCommand.java:72) DEBUG - Session created.
2016-05-16 17:53:20,357 cn.com.venustech.common.utils.jsch.JSchCommand.connect(JSchCommand.java:78) DEBUG - Session connected.
2016-05-16 17:53:53,898 org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:255) DEBUG - UPDATE assetscantask SET taskStatus = 3, taskStatusName = '进行中', taskResultPath = '' WHERE id = 10
bash: nmap: command not found
Exit-status: 127
2016-05-16 17:54:00,000 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:145) DEBUG - Get 'taskAssetTaskJob'<class cn.com.venustech.modules.asset.quartz.job.TaskAssetTaskJob>
2016-05-16 17:54:00,001 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.6da64b5bd2ee-a6c8cb0e-cd5a-405a-9ca5-d0046693d273
2016-05-16 17:54:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:145) DEBUG - Get 'assetScanTaskDao'<class cn.com.venustech.modules.asset.dao.AssetScanTaskDao>
2016-05-16 17:54:00,001 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:145) DEBUG - Get 'assetScanService'<interface cn.com.venustech.modules.asset.service.AssetScanService>
2016-05-16 17:54:00,031 org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:212) DEBUG - SELECT COUNT(*) FROM ASSETSCANTASK WHERE TASKSTATUS IN (?,?)
不觉得你写了完整命令. yum安装的默认路径是这个
/usr/bin/nmap --help
输出
[root@localhost ~]# /usr/bin/nmap --help
Nmap 5.51 ( http://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
TARGET SPECIFICATION:
Can pass hostnames, IP addresses, networks, etc.
Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254
-iL <inputfilename>: Input from list of hosts/networks
-iR <num hosts>: Choose random targets
--exclude <host1[,host2][,host3],...>: Exclude hosts/networks
--excludefile <exclude_file>: Exclude list from file