[root@localhost ipvs]# modprobe -l | grep ipvs kernel/net/netfilter/ipvs/ip_vs.ko kernel/net/netfilter/ipvs/ip_vs_rr.ko kernel/net/netfilter/ipvs/ip_vs_wrr.ko kernel/net/netfilter/ipvs/ip_vs_lc.ko kernel/net/netfilter/ipvs/ip_vs_wlc.ko kernel/net/netfilter/ipvs/ip_vs_lblc.ko kernel/net/netfilter/ipvs/ip_vs_lblcr.ko kernel/net/netfilter/ipvs/ip_vs_dh.ko kernel/net/netfilter/ipvs/ip_vs_sh.ko kernel/net/netfilter/ipvs/ip_vs_sed.ko kernel/net/netfilter/ipvs/ip_vs_nq.ko kernel/net/netfilter/ipvs/ip_vs_ftp.ko |
安裝ipvsadm報錯linux
make -C libipvs
make[1]: Entering directory `/usr/local/src/lvs/ipvsadm-1.26/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL -DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c
在包含自 libipvs.h:13 的文件中,
從 libipvs.c:23:
ip_vs.h:15:29: 錯誤:netlink/netlink.h:沒有那個文件或目錄
ip_vs.h:16:31: 錯誤:netlink/genl/genl.h:沒有那個文件或目錄ide
解決方法:post
yum install libnl* popt* spa
報錯:make[1]: gcc: Command not foundprototype
make[1]: *** [libipvs.o] Error 127
make[1]: Leaving directory `/home/wss/lvs/ipvsadm-1.24/libipvs'
make: *** [libs] Error 2
[root@localhost ipvsadm-1.24]# ip
解決辦法ci
[root@localhost ~]# ln -s /usr/src/kernels/2.6.18-164.el5 /usr/src/linux/postmessage