centos8安装mysql_CentOS8+FreeRadius+Mysql8.0+daloRadius建立Radius服务器
生活随笔
收集整理的這篇文章主要介紹了
centos8安装mysql_CentOS8+FreeRadius+Mysql8.0+daloRadius建立Radius服务器
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Linux發(fā)行版:CentOS8-1905
數(shù)據(jù)庫:Mysql8.0
createWEB軟件:httpd
daloRadius前端使用PHP
yum -y install update yum -y install httpd //web服務(wù)器 yum -y install vim // yun -y install wget // yum -y install net-tools // yum -y install php //phpyum -y install php-common php-gd php-curl php-mysqli -yyum -y install mysql-server //數(shù)據(jù)庫安裝freeradius:
yum -y install freeradius freeradius-mysql freeradius-utils導(dǎo)入數(shù)據(jù)庫表
mysql -uroot -p radius </etc/raddb/mods-config/sql/main/mysql/schema.sql配置freeradius使用Mysql:
cd /etc/raddb/mods-enabled ln -s ../mods-available/sql sql修改Mysql參數(shù):
vim /etc/raddb/sites-available/default把a(bǔ)uthorize,accounting,post-auth,session中sql的行,把注釋去掉或者-。
編輯Mysql的參數(shù):
vim /etc/raddb/mods-available/sql修改值
driver = "rlm_sql_mysql"dialect = "mysql"server = "localhost" port = 3306 login ="root" password = "password" radius_db = “radius"read_clients = yes測試命令:
radiusd -X本地執(zhí)行驗(yàn)證命令:
radtest testing password 127.0.0.1 0 testing123安裝daloradius
644 /var/www/html/daloradius/library/daloradius.conf.php mysql -uroot -ppassword radius < /var/www/html/contrib/db/mysql-daloradius.sql編輯daloradius的配置文件
$configValues['DALORADIUS_VERSION'] = '1.1-3 BETA'; $configValues['DALORADIUS_DATE'] = '12 Nov 2019'; $configValues['FREERADIUS_VERSION'] = '2'; $configValues['CONFIG_DB_ENGINE'] = 'mysqli'; $configValues['CONFIG_DB_HOST'] = 'localhost'; $configValues['CONFIG_DB_PORT'] = '3306'; $configValues['CONFIG_DB_USER'] = 'root'; $configValues['CONFIG_DB_PASS'] = 'password'; $configValues['CONFIG_DB_NAME'] = 'radius'; $configValues['CONFIG_DB_TBL_RADCHECK'] = 'radcheck'; $configValues['CONFIG_DB_TBL_RADREPLY'] = 'radreply'; $configValues['CONFIG_DB_TBL_RADGROUPREPLY'] = 'radgroupreply'; $configValues['CONFIG_DB_TBL_RADGROUPCHECK'] = 'radgroupcheck';啟動(dòng)服務(wù)
systemctl start radiusd systemctl start httpd systemctl start mysqld自啟服務(wù)
systemctl enable radiusd systemctl enable httpd systemctl enable mysqld訪問并登錄daloradius
http://server_ip_address//daloradius默認(rèn)的登錄
username:administrator password:radius登錄截圖
總結(jié)
以上是生活随笔為你收集整理的centos8安装mysql_CentOS8+FreeRadius+Mysql8.0+daloRadius建立Radius服务器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 启动metabase_引入开源BI软件M
- 下一篇: hook 循环点击事件用哪个_JS 事件