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(); 查看系統時間
 php

相關文章
相關標籤/搜索