• 欢迎访问水熊虫网站,这里是我个人的工作博客,内容大多是遇到问题完善后,会在这里进行总结归纳内容! QQ群
  • Git主题现已支持滚动公告栏功能,兼容其他浏览器,看到的就是咯,在后台最新消息那里用li标签添加即可。
  • 最新版Git主题已支持说说碎语功能,可像添加文章一样直接添加说说,新建说说页面即可,最后重新保存固定连接,演示地址

kangle CentOS 6.X 一键脚本 小樱提供

Kangle环境 WaterBear 4周前 (08-24) 18次浏览 未收录 扫描二维码

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

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

默认账号密码:admin/kangle

MySQL:root 密码为空

yum -y install wget
echo "timeout=120" >> /etc/yum.conf
yum -y update
yum -y install epel-release
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
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,卸载代码:


yum -y remove mysql mysql*
rm -rf /var/lib/mysql/*
yum -y install mysql-libs


4:补齐自己需要的PHP版本(极速安装):

wget http://github.itzmx.com/1265578519/kangle/master/php/5.2/5217/completed/tpl_php5217.sh -O tpl_php5217.sh;sh tpl_php5217.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/5.4/5445/completed/tpl_php5445.sh -O tpl_php5445.sh;sh tpl_php5445.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/5.5/5538/completed/tpl_php5538.sh -O tpl_php5538.sh;sh tpl_php5538.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/5.6/5640/completed/tpl_php5640.sh -O tpl_php5640.sh;sh tpl_php5640.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.0/7033/completed/tpl_php7033.sh -O tpl_php7033.sh;sh tpl_php7033.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.1/7130/completed/tpl_php7130.sh -O tpl_php7130.sh;sh tpl_php7130.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.2/7220/completed/tpl_php7220.sh -O tpl_php7220.sh;sh tpl_php7220.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.3/737/completed/tpl_php737.sh -O tpl_php737.sh;sh tpl_php737.sh



5:补齐自己需要的PHP版本(编译安装

wget http://github.itzmx.com/1265578519/kangle/master/php/5.2/5217/php5217.sh -O php5217.sh;sh php5217.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/5.4/5445/php5445.sh -O php5445.sh;sh php5445.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/5.5/5538/php5538.sh -O php5538.sh;sh php5538.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/5.6/5640/php5640.sh -O php5640.sh;sh php5640.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.0/7033/php7033.sh -O php7033.sh;sh php7033.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.1/7130/php7130.sh -O php7130.sh;sh php7130.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.2/7220/php7220.sh -O php7220.sh;sh php7220.sh

wget http://github.itzmx.com/1265578519/kangle/master/php/7.3/737/php737.sh -O php737.sh;sh php737.sh


PHP5.2.17的php.ini文件路径在/vhs/kangle/ext/tpl_php5217/php-templete.ini

PHP5.3的php.ini文件路径在/vhs/kangle/ext/tpl_php52/php-templete.ini (官方默认安装)

PHP5.4.45的php.ini文件路径在/vhs/kangle/ext/tpl_php5445/php-templete.ini

PHP5.5.38的php.ini文件路径在/vhs/kangle/ext/tpl_php5538/php-templete.ini

PHP5.6.40的php.ini文件路径在/vhs/kangle/ext/tpl_php5640/php-templete.ini

PHP7.0.33的php.ini文件路径在/vhs/kangle/ext/tpl_php7033/php-templete.ini

PHP7.1.30的php.ini文件路径在/vhs/kangle/ext/tpl_php7130/php-templete.ini

PHP7.2.20的php.ini文件路径在/vhs/kangle/ext/tpl_php7220/php-templete.ini

PHP7.3.7的php.ini文件路径在/vhs/kangle/ext/tpl_php737/php-templete.ini

原文链接:http://bbs.itzmx.com/thread-7232-1-1.html


WaterBear , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:kangle CentOS 6.X 一键脚本 小樱提供
喜欢 (0)
[[email protected]]
分享 (0)