radiusmanager 3.9.0 安装版 (集成中文)
本帖最后由 yishan 于 2011-11-7 11:10 编辑#!/bin/bash
clear
printf "
# This is a Shell-Based tool of radiusmanager 3.9.0 installation
# Author: yishan
# Website: http://www.yishanhome.com
#
"
cd $HOME
mkdir ram39-temp
cd ram39-temp
#安装 apache
yum install -y httpd mod_ssl php php-common php-gd php-pear php-pecl-memcache php-mhash php-xml gcc gcc-c++
yum install -y mysql-devel curl php-mysql php-mcrypt compat-libstdc++-33 libtool-ltdl-devel
#设置服务自动启动
chkconfig httpd on
service httpd start
#添加ioncube支持
php_version=`php -r 'echo PHP_VERSION;'`
php_version=${php_version:0:3}
sysinfo=`uname -i`
if [ $sysinfo = "x86_64" ]; then
sysinfo="x86-64"
else
sysinfo="x86"
fi
wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_$sysinfo.tar.gz
tar zxvf ioncube_loaders_lin_$sysinfo.tar.gz
cp -rf ioncube /usr/local/
cat >>/etc/php.ini << END
zend_extension=/usr/local/ioncube/ioncube_loader_lin_$php_version.so
END
#安装及配置mysql
ret=`rpm -qa|grep mysql|wc -l`
ret1=`service mysql stop|wc -l`
if [ $ret = "0" ] || [ $ret1 = "0" ]; then
yum install -y mysql-server
fi
chkconfig mysqld on
service mysqld start
cat >> mysql-temp.sql << END
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;
END
mysql -u root < mysql-temp.sql
#安装freeradius
wget http://www.dmasoftlab.com/cont/download/freeradius-server-2.1.8-dmamod-1.tar.gz
tar xvf freeradius-server-2.1.8-dmamod-1.tar.gz
cd freeradius-server-2.1.8
./configure
make
make install
chmod 644 /usr/local/etc/raddb/dictionary
chown apache /usr/local/etc/raddb
chown apache /usr/local/etc/raddb/clients.conf
nohup radiusd -X&
sleep 30
#修改网卡mac破解radiusmanager
cat >>/etc/rc.d/rc.sysinit<<END
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 hw ether 00:D0:09:B8:B7:34
/sbin/ifconfig eth0 up
END
#/sbin/ifconfig eth0 down
#/sbin/ifconfig eth0 hw ether 00:D0:09:B8:B7:34
#/sbin/ifconfig eth0 up
#安装radiusmanager3.9.0包含中文语言包
service httpd restart
wget http://yishanhome.vip129.2hezu.com/vpn3in1/radiusmanager-3.9.0.tar.gz
tar zxvf radiusmanager-3.9.0.tar.gz
cd radiusmanager-3.9.0/
chmod 755 install.sh
./install.sh 官方演示 http://radmandemo.dmasoftlab.com/admin.php 帐号:admin 密码:1111 转帖自本人博客http://www.yishanhome.com/archives/1412 顶起好贴都是用来顶的 好贴。。。。顶起。。。 N年前就看见过类似教程 怎么还有阿
页:
[1]