返回列表 发帖

CentOS 6.X安装SoftEther VPN Server和Client 远程管理配置 组虚拟LAN 反向代理 ML

1.安装SoftEther VPN Server
本帖隐藏的内容需要回复才可以浏览

2.使用Windows版本的SoftEther VPN Server 管理工具配置SoftEther VPN Server(添加用户、启用SecureNAT;设置需要的端口、下载OpenVPN客户端配置样本文件)
3.安装SoftEther VPN Client
本帖隐藏的内容需要回复才可以浏览

4.开启SoftEther VPN Client的远程管理功能

./vpnclient stop
编辑/root/vpnclient/vpn_client.config
  1. vi /root/vpnclient/vpn_client.config
复制代码
按键盘i键,之后修改内容
  1.         byte EncryptedPassword +WzqGYrR3VYXrAhKPZLGEHcIwO8=
复制代码
修改为:
  1.         byte EncryptedPassword VRL2iurAeuL09w5ugYPc1KmgR/8=
复制代码
说明:使用密码,此处密码为www.zhumeng.org
  1.         bool PasswordRemoteOnly false
复制代码
修改为:
  1.         bool PasswordRemoteOnly true
复制代码
说明:仅在远程操作时需要密码
  1.                 bool AllowRemoteConfig false
复制代码
修改为:
  1.                 bool AllowRemoteConfig true
复制代码
说明:允许VPN Client服务的远程管理
按键盘Esc键,再输入:wq回车。

./vpnclient start

5.使用Windows版本的“管理远程电脑上的SoftEther VPN Client”工具配置SoftEther VPN Client(添加虚拟网络适配器及VPN连接)

6.设置SoftEther VPN Client虚拟网卡IP(组虚拟局域网用)
XShell下:
ip a
显示出所有网卡,确认虚拟网卡名,默认为vpn_vpn
复制一份/etc/sysconfig/network-scripts/ifcfg-eth0文件,重命名为ifcfg-vpn_vpn
  1. cp -b /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-vpn_vpn
复制代码
ifcfg-vpn_vpn内容如下:
vi /etc/sysconfig/network-scripts/ifcfg-vpn_vpn
  1. DEVICE=vpn_vpn
  2. BOOTPROTO=static
  3. ONBOOT=yes
  4. IPADDR=192.168.111.1
  5. NETMASK=255.255.255.0
复制代码

service network restart

7.将VPNServer和 VPNClient加入开机自启动:
  1. vi /etc/rc.d/rc.local
复制代码
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
sleep 3
sh /usr/local/mount.sh
sleep 3
/root/vpnserver/vpnserver start
sleep 3
/root/vpnclient/vpnclient start

8.安装建站及反向代理软件kangle
不带mysql脚本:
yum -y install wget
echo "timeout=120" >> /etc/yum.conf
yum -y update
yum -y install epel-release
rm -rf /etc/yum.repos.d/CentOS-Base.repo
wget http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo -O /etc/yum.repos.d/CentOS6-Base-itzmx.repo
rm -rf /etc/yum.repos.d/epel.repo
rm -rf /etc/yum.repos.d/epel-testing.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo -O /etc/yum.repos.d/epel.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel-testing.repo -O /etc/yum.repos.d/epel-testing.repo
yum -y install which file wget make automake gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota unzip bzip2
ulimit -n 1048576
echo "* soft nofile 1048576" >> /etc/security/limits.conf
echo "* hard nofile 1048576" >> /etc/security/limits.conf
wget http://github.itzmx.com/1265578519/kangle/master/ent/e.sh -O e.sh;sh e.sh /vhs/kangle
wget http://github.itzmx.com/1265578519/kangle/master/kangle/easypanel/ep.sh -O ep.sh;sh ep.sh
rm -rf /vhs/kangle/ext/tpl_php52/php-templete.ini
wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-templete.ini -O /vhs/kangle/ext/tpl_php52/php-templete.ini
rm -rf /vhs/kangle/ext/tpl_php52/etc/php-node.ini
wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-node.ini -O /vhs/kangle/ext/tpl_php52/etc/php-node.ini
wget http://github.itzmx.com/1265578519/transmission/master/2.84/libevent-2.0.21-stable.tar.gz
tar zxf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make -s -j 4
make -s install
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
ln -s /usr/local/lib/libevent-2.0.so.5.1.9 /usr/lib/libevent-2.0.so.5.1.9
ln -s /usr/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5
ln -s /usr/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent-2.0.so.5.1.9
cd ..
yum -y install memcached php-pecl-memcache
yum -y install php-pecl-apc
rm -rf /etc/sysconfig/memcached
wget http://github.itzmx.com/1265578519/kangle/master/memcached/memcached -O /etc/sysconfig/memcached
service memcached start
chkconfig --level 2345 memcached on
echo "127.0.0.1 download.safedog.cn" >> /etc/hosts
setenforce 0
wget http://github.itzmx.com/1265578519/safedog/master/2.4/safedog_linux64.tar.gz
tar xzf safedog_linux64.tar.gz
cd safedog_linux64
chmod -R 777 install.py
./install.py
sdcmd webflag 0
sdcmd twreuse 1
sdcmd sshddenyflag 1




带最新版mysql脚本:
yum -y install wget
echo "timeout=120" >> /etc/yum.conf
yum -y update
yum -y install epel-release
rm -rf /etc/yum.repos.d/CentOS-Base.repo
wget http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo -O /etc/yum.repos.d/CentOS6-Base-itzmx.repo
rm -rf /etc/yum.repos.d/epel.repo
rm -rf /etc/yum.repos.d/epel-testing.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo -O /etc/yum.repos.d/epel.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel-testing.repo -O /etc/yum.repos.d/epel-testing.repo
rpm -ivh http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community-release-el6-5.noarch.rpm
rm -rf /etc/yum.repos.d/mysql-community.repo
rm -rf /etc/yum.repos.d/mysql-community-source.repo
wget http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community.repo -O /etc/yum.repos.d/mysql-community.repo
wget http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community-source.repo -O /etc/yum.repos.d/mysql-community-source.repo
yum -y install which file wget make automake gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota unzip bzip2
ulimit -n 1048576
echo "* soft nofile 1048576" >> /etc/security/limits.conf
echo "* hard nofile 1048576" >> /etc/security/limits.conf
wget http://github.itzmx.com/1265578519/kangle/master/ent/e.sh -O e.sh;sh e.sh /vhs/kangle
wget http://github.itzmx.com/1265578519/kangle/master/kangle/easypanel/ep.sh -O ep.sh;sh ep.sh
rm -rf /vhs/kangle/ext/tpl_php52/php-templete.ini
wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-templete.ini -O /vhs/kangle/ext/tpl_php52/php-templete.ini
rm -rf /vhs/kangle/ext/tpl_php52/etc/php-node.ini
wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-node.ini -O /vhs/kangle/ext/tpl_php52/etc/php-node.ini
wget http://github.itzmx.com/1265578519/transmission/master/2.84/libevent-2.0.21-stable.tar.gz
tar zxf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make -s -j 4
make -s install
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
ln -s /usr/local/lib/libevent-2.0.so.5.1.9 /usr/lib/libevent-2.0.so.5.1.9
ln -s /usr/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5
ln -s /usr/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent-2.0.so.5.1.9
cd ..
yum -y install memcached php-pecl-memcache
yum -y install php-pecl-apc
rm -rf /etc/sysconfig/memcached
wget http://github.itzmx.com/1265578519/kangle/master/memcached/memcached -O /etc/sysconfig/memcached
service memcached start
chkconfig --level 2345 memcached on
echo "127.0.0.1 download.safedog.cn" >> /etc/hosts
setenforce 0
wget http://github.itzmx.com/1265578519/safedog/master/2.4/safedog_linux64.tar.gz
tar xzf safedog_linux64.tar.gz
cd safedog_linux64
chmod -R 777 install.py
./install.py
sdcmd webflag 0
sdcmd twreuse 1
sdcmd sshddenyflag 1
cd ..
yum -y install mysql mysql-server
rm -rf /etc/my.cnf
wget http://github.itzmx.com/1265578519/kangle/master/mysql/5.6/my.cnf -O /etc/my.cnf
service mysqld restart




MySQL数据库卸载方法:
如果你完全不需要数据库运行,比如说单独跑CDN反向代理,怕mysql占内存可以卸载
  1. yum -y remove mysql mysql*
  2. rm -rf /var/lib/mysql/*
  3. yum -y install mysql-libs
复制代码

安装后通过访问进入后台设置,默认用户名admin,密码kangle,mysql数据库用户名root,密码空,初始化后点击左边的mysql管理进行修改root密码,修改后记得去服务器设置填写新密码
  1. http://ip:3312/admin
复制代码



建议使用的系统计划任务
执行进入计划任务编辑
  1. crontab -e
复制代码
添加条目,打开系统定期自动更新
  1. 45 * * * * /usr/bin/yum -y update
复制代码



每日自动删除服务器日志(看你硬盘是否够大,自行判断需求是否删除日志)
  1. 45 * * * * /bin/rm -rf /vhs/kangle/var/*
复制代码



每日删除PHP的缓存文件(看你硬盘是否够大,自行判断需求是否删除缓存)
  1. 45 * * * * /bin/rm -rf /tmp/sess*
复制代码



增加mysql守护进程,解决数据库进程闪退,内存不足自动退出
  1. * * * * * /etc/init.d/mysqld start
复制代码



其他相关配置信息:
修改网关的配置文件: /etc/sysconfig/network
修改DNS的配置文件: /etc/resolv.conf
修改主机名: /etc/hosts        /etc/network    /etc/resolv.conf 三个文件
欢迎光临:逐梦论坛

kangle easypanel面板 php-5.2-7.2全版本 for linux版 极速

更新时间
2018年1月7日 03:42:11
更新5.6-7.1版本,增加7.2版本

安装方法(10秒极速安装,推荐,仅支持centos 6.x 64位操作系统,官方一键安装后的脚本,或者小樱那的)
wget http://github.itzmx.com/12655785 ... eted/tpl_php5217.sh -O tpl_php5217.sh;sh tpl_php5217.sh
wget http://github.itzmx.com/12655785 ... eted/tpl_php5445.sh -O tpl_php5445.sh;sh tpl_php5445.sh
wget http://github.itzmx.com/12655785 ... eted/tpl_php5538.sh -O tpl_php5538.sh;sh tpl_php5538.sh
wget http://github.itzmx.com/12655785 ... eted/tpl_php5633.sh -O tpl_php5633.sh;sh tpl_php5633.sh
wget http://github.itzmx.com/12655785 ... eted/tpl_php7027.sh -O tpl_php7027.sh;sh tpl_php7027.sh
wget http://github.itzmx.com/12655785 ... eted/tpl_php7113.sh -O tpl_php7113.sh;sh tpl_php7113.sh
wget http://github.itzmx.com/12655785 ... leted/tpl_php721.sh -O tpl_php721.sh;sh tpl_php721.sh



注意要用无 旧格式开通的空间才可以使用,如果已经是PHP开通的空间参考
http://bbs.itzmx.com/thread-13209-1-1.html

kangle php7极速安装的memcached没有效果,phpinfo探针看不到,因为缺少了libmemcached库
http://bbs.itzmx.com/thread-59183-1-1.html
欢迎光临:逐梦论坛

TOP

返回列表

Powered by Discuz! 7.2   论坛QQ群:逐梦论坛群

© 2001-2021 Comsenz Inc. 本站服务器由0634云主机提供 鲁公网安备 37120302000001号