平台: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 ; GRANT ALL ON conntrack.* TO conntrack ; 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(); 查看系统时间