主机评测
SoftEther-Install
03/26
一、安装编译环境
yum -y install gcc zlib-devel openssl-devel readline-devel ncurses-devel
二、下载软件包
三、解压、编译、设置权限
tar xzvf vpnserver-5070-rtm-linux-x86.tar.gz
make
chmod 600 *
chmod 700 vpncmd
chmod 700 vpnserver
四、移动到其他的目录
cd ..
mv vpnserver/ /usr/local/
五、编辑service 服务文件
vi /etc/init.d/vpnserver
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
六、设置自动启动
chmod 755 /etc/init.d/vpnserver
/sbin/chkconfig --add vpnserver
/etc/init.d/vpnserver start