centos6.5 x86_64下安装freeradius

平台:centos 6.5 x86_64最小化安装
1.vi /etc/selinux/config  (linode里面centos 6.5默认已关闭/etc/selinux/config)
SELINUX=disabled
reboot your host
sestatus -v查看状态
2.wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  rpm -ivh epel-release-6-8.noarch.rpm
3.yum -y install mc wget crontabs vixie-cron make gcc libtool-ltdl curl mysql-server mysql-devel net-snmp net-snmp-utils php php-mysql php-mcrypt php-gd php-snmp php-process ntp sendmail sendmail-cf alpine mutt
4.yum install glibc.i686 libgcc_s.so.1
5.wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86-64.tar.gz
tar zxvf ioncube_loaders_lin_x86-64.tar.gz
cp -rf  ioncube /usr/local/
vim /etc/php.ini
底部写 zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so
php -v 查看,加载成功可看到php和zend egine的版本
chkconfig --list httpd
chkconfig --level 35 httpd on
service httpd restart   (apache默认已安装)
6.wget http://www.dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
tar xvf freeradius-server-2.2.0-dma-patch-2.tar.gz
cd freeradius-server-2.2.0
./configure
make
make install
radiusd -X 测试,OK会显示Listening on proxy address * port 1814
                           Ready to process requests.
7.chkconfig --list mysqld 
chkconfig --level 35 mysqld on
service mysqld start
/usr/bin/mysqladmin -u root password 'hello'
/usr/bin/mysql -u root -p 输入密码hello
CREATE DATABASE radius;
CREATE DATABASE conntrack;
CREATE USER 'radius'@'localhost' IDENTIFIED BY 'radius123';
CREATE USER 'conntrack'@'localhost' IDENTIFIED BY 'conn123';
GRANT ALL ON radius.* TO radius@localhost ;
GRANT ALL ON conntrack.* TO conntrack@localhost ;
exit退出mysql
 手动下载 https://customers.dmasoftlab.com/index.php?cont=dl_tarball&fileid=40
上传到/usr/local/src
tar zxvf radiusmanager-4.1.6.tgz
cd radiusmanager-4.1.6
chmod 755 install.sh
./install.sh
然后就开始了安装过程基本默认就可以了一路y
最后一个Are You sure to begin the installation? [n] y
8.调试 测试
Launch radiusd in debug mode
vi /etc/hosts
添加127.0.0.1   hostname
radiusd -X
radtest user 1111 localhost 1812 testing123
9.下载授权文件 lic.txt mod.txt
上传到 /var/www/html/radiusmanager 下
http://serverIP/radiusmanager/admin.php admin 1111
grant all privileges on *.* to casper@"%" identified by "uiop789";
授权root账号有远程访问权限
grant all privileges on *.* to root@'%' identified by "hello";
flush privileges;
显示时区date -R; date +$z
修改时区 cp /usr/share/zonefile/Asia/shanghai /etc/localtime
mysql中select now(); 查看系统时间
 

转载于:https://my.oschina.net/u/2404183/blog/478995

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值