- 1、本文档共14页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
radius详细配置步骤
三友认证计费系统详细配置步骤
安装freeradius1.1.4的版本
1、# tar -xvf freeradius-1.1.4.tar
2、# cd freeradius-1.1.4
3、# ./configure -localstatedir=/var -sysconfdir=/etc
4、# make
5、# make install
至此freeradius安装完毕
二、mysql数据库服务器操作
1、rpm -qa|grep mysql 查看是否安装mysql数据库程序
2、service mysqld start 启动mysql数据库程序
3、/usr/bin/mysqladmin password 336699 修改mysql用户的root的密码
4、mysql -u root -p
enter password: 336699 (输入密码,无显示)
mysql CREATE DATABASE radius;
Show databases;
6、mysql quit
注释:删除mysql 命令 mysqldorp databases radius;
Mysql下的命令都有“;”
三、设置启动的服务
1、 # ntsysv
选中mysqld和httpd服务,使其开机启动。
四、设置freeradius程序
1、# cd /freeradius-1.1.4/doc/examples
2、# mysql -u root -p radiusmysql.sql 生成freeradius的基本数据库的表
3、# cd /etc/raddb/
注释:“i” 是编辑的的意思
Esc 退出
“shift”+ “;” 后输入 wq 保存修改数据 “q!”不保存
查找字符 输入”/”后输入要查找的字符 “N”是下一个 “shift”+“N”是上一个
4、# vi sql.conf
将以下:
# Connect info
server = localhost
login = root
password = password
修改为:
# Connect info
server = localhost
login = root
password = 336699
5、# vi radiusd.conf
将以下:
# See Authorization Queries in sql.conf
# sql
修改为:
# See Authorization Queries in sql.conf
sql
将以下:
# See Accounting queries in sql.conf
# sql
修改为:
# See Accounting queries in sql.conf
sql
将以下:
post-auth {
# Get an address from the IP Pool.
# main_pool
#
# If you want to have a log of authentication replies,
# un-comment the following line, and the detail reply_log
# section, above.
# reply_log
#
# After authenticating the user, do another SQL qeury.
#
# See Authentication Logging Queries in sql.conf
# sql
#
# Un-comment the following if you have set
# edir_account_policy_check = yes in the ldap module sub-section of
# the modules section.
修改为:
post-auth {
# Get an address from the IP Pool.
# main_pool
#
您可能关注的文档
- mingting脚手架组织设计.doc
- 基于单片机的门禁系统设计79277.doc
- Module7课堂练习.doc
- 量是市场运动的原因.doc
- MIUI小技巧超全总结.docx
- MOTO_DEFY_ME525详细图文刷机教程.doc
- 量的计算(复习).doc
- MOTOxt720刷2.2教程图文解说.doc
- 量筒的的使用仪器的连接与洗涤.doc
- MSoffice选择题题库(1-222)-解析版.docx
- 四川省德阳市罗江中学2025届高三考前热身化学试卷含解析.doc
- 山东省枣庄现代实验学校2025届高三下学期第五次调研考试化学试题含解析.doc
- 吉林省长春市十一高中等九校教育联盟2025届高三一诊考试生物试卷含解析.doc
- 2025届江苏省盐城市伍佑中学高考仿真模拟化学试卷含解析.doc
- 2025届广西贺州中学高考冲刺押题(最后一卷)生物试卷含解析.doc
- 安徽省池州市贵池区2025届高三第一次模拟考试生物试卷含解析.doc
- 宁夏银川一中2025届高三(最后冲刺)化学试卷含解析.doc
- 广东省广州市增城区四校联考2025届高考压轴卷化学试卷含解析.doc
- 2025届邯郸市第一中学高考生物必刷试卷含解析.doc
- 2025届安徽省安庆市石化第一中学高考仿真卷化学试卷含解析.doc
文档评论(0)