安装freeradius报错误:radclient:: Failed to find IP address/ ip_hton: Name or service not known
安装freeradius 2.x和freeradius 3.x,测试连接都无法通过,错误如下
freeradius 2.x 提示的错误
1 2 | radclient:: Failed to find IP address for Excalibur radclient: Nothing to send. |
freeradius 3.x 提示的错误
1 | (0) Error parsing "-": ip_hton: Name or service not known |
解决方法很简单给/etc/hosts添加主机名解析就可以
vi /etc/hosts
添加:127.0.0.1 servername
或者运行以下语句
1 2 3 | cat >>/etc/hosts<<EOF 127.0.0.1 `hostname` EOF |
目录 返回
首页