Kangle Centos6.x一键安装包
QQ反馈群:1065433015
最重要的一步: #查看数据盘符 fdisk -l #/dev/sdb数据盘符
格式化硬盘,如果以前装过此步可以跳过: mkfs.ext4 /dev/sdb #建立目录 mkdir /vhs #绑定盘 mount /dev/sdb /home mount /dev/sdb /vhs #挂载自动绑定 echo "/dev/sdb /home ext4 defaults 0 0" >> /etc/fstab echo "/dev/sdb /vhs ext4 defaults 0 0" >> /etc/fstab #下面是正式代码 yum -y install wget 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 yum -y update 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://down.hlwidc.com/1.sh -O 1.sh;sh 1.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 restart chkconfig --level 2345 memcached on 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; mv /var/lib/mysql /home;ln -s /home/mysql /var/lib/mysql;service mysqld restart 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.6/5624/php5624.sh -O php5624.sh;sh php5624.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.4/5445/php5445.sh -O php5445.sh;sh php5445.sh wget http://github.itzmx.com/1265578519/kangle/master/php/7.0/709/php709.sh -O php709.sh;sh php709.sh