Linux:启动CSF/sbin/ifconfig(ifconfig二进制位置)时出错-v不存在!

时间:2020-02-23 14:39:33  来源:igfitidea点击:

在RHEL/CentOS 7上启动/停止CSF有这样的问题吗?

# csf -x
*WARNING* URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny
You have an unresolved error when starting csf:
Error: /sbin/ifconfig (ifconfig binary location) -v does not exist!, at line 2510 in /usr/sbin/csf
You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error

这是由于系统上缺少软件包引起的。
基本上,系统中没有命令" ifconfig"和LWP Perl模块。

要解决此问题,只需按照以下步骤用Yum安装缺少的软件包:

yum install net-tools perl-LWP-Protocol-https

然后删除CSF错误文件:

rm -f /etc/csf/csf.error