当前位置 当前位置:首页 > 技术分享 > 其他技术

Kangle(康乐)一键脚本【聚合全网】

2020-02-23 10:49:15小罗网络收集1999

Kangle(康乐)一键脚本【聚合全网】

本脚本是一键安装Kangle+Easypanel+Mysql的集合脚本。
脚本本身集成:PHP5.3、PHP5.4、PHP5.5、PHP5.6、PHP7.1、PHP7.2、PHP7.3、MYSQL5.6
支持前台用户任意切换PHP5.3-7.3以适应网站程序
本脚本支持CentOS 6.x/CentOS 7.x系统

	
  1. yum -y install wget;wget http://www.cccay.fun/start;sh start

点点一键脚本:yum -y install wget;wget http://kangle.pw/install -O install;sh install

飞鱼一键脚本:yum -y install wget;wget kangle.io/install.sh -O install.sh;sh install.sh

彩虹一键脚本:yum -y install wget;wget http://kangle.odata.cc/start;sh start

个人推荐小樱一键脚本,内存占用低

更新了小樱最新的PHP版本地址

更新时间:2019年5月7日19:06:56


1:要从CentOS 6.X 这个不用说吧!

2:代码贴过去,直接执行,懂吧!(注意,执行完要回车一下,后面一行命令没执行!)

默认账号密码:admin/kangle

MySQL:root 密码为空

	
  1. yum -y install wget
  2. echo "timeout=120" >> /etc/yum.conf
  3. yum -y update
  4. yum -y install epel-release
  5. chkconfig nscd off;service nscd stop;yum -y install dnsmasq;sed -i 's/#listen-address.*/listen-address=127.0.0.1/g' /etc/dnsmasq.conf;echo -e 'nameserver 127.0.0.1\nnameserver 208.67.222.222\nnameserver 8.8.8.8\nnameserver 114.114.114.114\nnameserver 119.29.29.29\noptions timeout:1 attempts:1 rotate' > /etc/resolv.conf;chkconfig dnsmasq on;service dnsmasq start
  6. 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/*pel.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 libaio-devel 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 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 && sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config 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



3:安装cdn节点的,可以不用mysql,卸载代码:


	
  1. yum -y remove mysql mysql*
  2. rm -rf /var/lib/mysql/*
  3. yum -y install mysql-libs


4:补齐自己需要的PHP版本(新版本):

	
  1. wget http://github.itzmx.com/1265578519/kangle/master/php/5.2/5217/completed/tpl_php5217.sh -O tpl_php5217.sh;sh tpl_php5217.sh
  2.  
  3. wget http://github.itzmx.com/1265578519/kangle/master/php/5.4/5445/completed/tpl_php5445.sh -O tpl_php5445.sh;sh tpl_php5445.sh
  4.  
  5. wget http://github.itzmx.com/1265578519/kangle/master/php/5.5/5538/completed/tpl_php5538.sh -O tpl_php5538.sh;sh tpl_php5538.sh
  6.  
  7. wget http://github.itzmx.com/1265578519/kangle/master/php/5.6/5639/completed/tpl_php5639.sh -O tpl_php5639.sh;sh tpl_php5639.sh
  8.  
  9. wget http://github.itzmx.com/1265578519/kangle/master/php/7.0/7033/completed/tpl_php7033.sh -O tpl_php7033.sh;sh tpl_php7033.sh
  10.  
  11. wget http://github.itzmx.com/1265578519/kangle/master/php/7.1/7125/completed/tpl_php7125.sh -O tpl_php7125.sh;sh tpl_php7125.sh
  12.  
  13. wget http://github.itzmx.com/1265578519/kangle/master/php/7.2/7213/completed/tpl_php7213.sh -O tpl_php7213.sh;sh tpl_php7213.sh


5:补齐自己需要的PHP版本(老版本)

	
  1. wget http://github.itzmx.com/1265578519/kangle/master/php/5.2/5217/completed/tpl_php5217.sh -O tpl_php5217.sh;sh tpl_php5217.sh
  2.  
  3. wget http://github.itzmx.com/1265578519/kangle/master/php/5.4/5445/completed/tpl_php5445.sh -O tpl_php5445.sh;sh tpl_php5445.sh
  4.  
  5. wget http://github.itzmx.com/1265578519/kangle/master/php/5.5/5538/completed/tpl_php5538.sh -O tpl_php5538.sh;sh tpl_php5538.sh
  6.  
  7. wget http://github.itzmx.com/1265578519/kangle/master/php/5.6/5633/completed/tpl_php5633.sh -O tpl_php5633.sh;sh tpl_php5633.sh
  8.  
  9. wget http://github.itzmx.com/1265578519/kangle/master/php/7.0/7027/completed/tpl_php7027.sh -O tpl_php7027.sh;sh tpl_php7027.sh
  10.  
  11. wget http://github.itzmx.com/1265578519/kangle/master/php/7.1/7113/completed/tpl_php7113.sh -O tpl_php7113.sh;sh tpl_php7113.sh
  12.  
  13. wget http://github.itzmx.com/1265578519/kangle/master/php/7.2/721/completed/tpl_php721.sh -O tpl_php721.sh;sh tpl_php721.sh


标签:聚合  脚本  康乐  一键  
本站资源来自互联网收集 仅供用于学习和交流 我们尊重任何软件和教程作者的版权 请遵循相关法律法规 本站一切资源不代表本站立场
投诉侵权邮箱:89016522@qq.com 或联系QQ:89016522 小罗娱乐网 © 2018-2020