![如何查看正在运行的 FreeRadius 守护程序的版本和正常运行时间](https://linux22.com/image/10056/%E5%A6%82%E4%BD%95%E6%9F%A5%E7%9C%8B%E6%AD%A3%E5%9C%A8%E8%BF%90%E8%A1%8C%E7%9A%84%20FreeRadius%20%E5%AE%88%E6%8A%A4%E7%A8%8B%E5%BA%8F%E7%9A%84%E7%89%88%E6%9C%AC%E5%92%8C%E6%AD%A3%E5%B8%B8%E8%BF%90%E8%A1%8C%E6%97%B6%E9%97%B4.png)
我有一个 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