warning, got duplicate tcp line.
2014-07-22RHEL4.3 执行netstat -ant出现大量的warning, got duplicate tcp line.
rpm -qa |grep net-tools
net-tools-1.60-37.EL4.6
[root@server8103 opt]# lsb_release -id
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
netstat -ant
warning, got duplicate tcp line.
warning, got duplicate tcp line.
解决办法:升级net-tools
a)安装net-tools-1.60.tar.bz2
patch -Np1 -i ../net-tools-1.60-gcc34-3.patch &&
patch -Np1 -i ../net-tools-1.60-kernel_headers-2.patch &&
patch -Np1 -i ../net-tools-1.60-mii_ioctl-1.patch &&
yes "" | make config &&
sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
-e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&
sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
-e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&
make;make update
b)安装src.rpm:
ftp://rpmfind.net/linux/redhat/linux/updates/enterprise/4AS/en/os/SRPMS/net-tools-1.60-40.el4.src.rpm
[root@root1 opt]# rpm -i net-tools-1.60-40.1.src.rpm
[root@root1 opt]# cd /usr/src/redhat/SPECS/
[root@root1 SPECS]# rpmbuild -bb net-tools.spec
[root@root1 SPECS]# pwd
/usr/src/redhat/SPECS
[root@root1 SPECS]# cd ../RPMS/i386/
[root@root1 i386]# rpm -Uvh net-tools-1.60-40.1.i386.rpm
升级命令netstat ifconfig
分类:Linux | 标签: |