我有一个 FreeRadius 服务器在 Debian 9.1 中为我的 802.1X 基础设施进行身份验证。
如何查看正在运行的 FreeRadius 守护程序的版本和正常运行时间?
答案1
要查看软件版本,如果使用 deb 包安装,与 dpkg:
$ dpkg -l freeradius
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================================-==========================-==========================-===========================================================================================
ii freeradius 3.0.16+git amd64 high-performance and highly configurable RADIUS server
同样从命令行,您可以执行以下操作:
$freeradius -v
radiusd: FreeRADIUS Version 3.0.16 (git #0bd5a4cec), for host x86_64-pc-linux-gnu, built on Jul 17 2017 at 16:00:00
FreeRADIUS Version 3.0.16
Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
使用 FreeRadius 的调试工具radmin
,您可以查看服务的版本和正常运行时间:
radius2:~$ sudo radmin
radmin version 3.0.16 (git #0bd5a4cec), built on Jul 17 2017 at 16:00:00 - FreeRADIUS Server administration tool.
Copyright (C) 2008-2017 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License v2.
radmin> show version
FreeRADIUS Version 3.0.16 (git #0bd5a4cec), for host x86_64-pc-linux-gnu, built on Jul 17 2017 at 16:00:00
radmin> show uptime
Up since Mon Jul 24 14:39:51 2017
radmin> exit
为了radmin
正确工作,正如 @Arran 正确指出的那样,您应该配置该control-socket
功能。
你可以这样做:
ln -s sites-available/control-socket sites-enabled/control-socket