|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!以LINUXREDHAT6.3为例:
本机拔出REDHAT6.3体系ISO镜像CD1
1.设置yum当地安装源:
以root用户登录体系
mkdir/mnt/cdrom
mount-tiso9660/dev/sr0/mnt/cdrom
cd/etc/yum.repos.d
检察目次是不是有.repo后缀文件,没有则创立一个.repo文件,文件名随便。
vilocal.repo
- [LOCAL]name=localbaseurl=file:///mnt/cdromenable=1gpgcheck=0
复制代码
yumcleanall
2.安装nmap,并测试172.24.40.5是不是开放80端口
- [root@openlabnamed]#yuminstallnmapLoadedplugins:rhnpluginRepositoryLOCALismissingnameinconfiguration,usingidThissystemisnotregisteredwithRHN.RHNsupportwillbedisabled.SettingupInstallProcessResolvingDependencies-->Runningtransactioncheck--->Packagenmap.i6862:5.21-3.el6settobeupdated-->FinishedDependencyResolutionDependenciesResolved================================================================================PackageArchVersionRepositorySize================================================================================Installing:nmapi6862:5.21-3.el6LOCAL2.2MTransactionSummary================================================================================Install1Package(s)Upgrade0Package(s)Totaldownloadsize:2.2MInstalledsize:7.2MIsthisok[y/N]:yDownloadingPackages:Runningrpm_check_debugRunningTransactionTestTransactionTestSucceededRunningTransactionInstalling:2:nmap-5.21-3.el6.i6861/1Installed:nmap.i6862:5.21-3.el6Complete!
复制代码- [/code][code][root@openlabnamed]#nmap-p80172.24.40.5StartingNmap5.21(http://nmap.org)at2013-01-0917:00CSTmass_dns:warning:UnabletodetermineanyDNSservers.ReverseDNSisdisabled.Tryusing--system-dnsorspecifyvalidserverswith--dns-serversNmapscanreportfor172.24.40.5Hostisup(0.00034slatency).PORTSTATESERVICE80/tcpopenhttpMACAddress:00:0C:29:4E:7D:FE(VMware)Nmapdone:1IPaddress(1hostup)scannedin0.07seconds
复制代码 nmap-p1-200方针主机IP[/code]#1-200为端口局限
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们! |
|