兴趣爱好

【php推荐环境】康乐kangle easypanel php5.3+mysql5.6+centos6 linux环境一键安装教程

【php推荐环境】康乐kangle easypanel php5.3+mysql5.6+centos6 linux环境一键安装教程

 

以下方法php版本均为PHP5.3

2017.02月更新

第一种,一键安装带mysql5.6+安全狗+kangle商业版功能:
(由于新版内存占用大,建议最低1G内存使用。否者不建议最新版安装,128M , 512M等小内存机器,请用第二种官方安装方法。)

  1. yum -y install wget
  2. echo "timeout=120" >> /etc/yum.conf
  3. yum -y update
  4. yum -y install epel-release
  5. rm -rf /etc/yum.repos.d/CentOS-Base.repo
  6. wget http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo -O /etc/yum.repos.d/CentOS6-Base-itzmx.repo
  7. rm -rf /etc/yum.repos.d/epel.repo
  8. rm -rf /etc/yum.repos.d/epel-testing.repo
  9. wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo -O /etc/yum.repos.d/epel.repo
  10. wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel-testing.repo -O /etc/yum.repos.d/epel-testing.repo
  11. rpm -ivh http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community-release-el6-5.noarch.rpm
  12. rm -rf /etc/yum.repos.d/mysql-community.repo
  13. rm -rf /etc/yum.repos.d/mysql-community-source.repo
  14. wget http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community.repo -O /etc/yum.repos.d/mysql-community.repo
  15. wget http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community-source.repo -O /etc/yum.repos.d/mysql-community-source.repo
  16. yum -y install which file wget make automake gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota unzip bzip2
  17. ulimit -n 1048576
  18. echo "* soft nofile 1048576" >> /etc/security/limits.conf
  19. echo "* hard nofile 1048576" >> /etc/security/limits.conf
  20. wget http://github.itzmx.com/1265578519/kangle/master/ent/e.sh -O e.sh;sh e.sh /vhs/kangle
  21. wget http://github.itzmx.com/1265578519/kangle/master/kangle/easypanel/ep.sh -O ep.sh;sh ep.sh
  22. rm -rf /vhs/kangle/ext/tpl_php52/php-templete.ini
  23. wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-templete.ini -O /vhs/kangle/ext/tpl_php52/php-templete.ini
  24. rm -rf /vhs/kangle/ext/tpl_php52/etc/php-node.ini
  25. wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-node.ini -O /vhs/kangle/ext/tpl_php52/etc/php-node.ini
  26. wget http://github.itzmx.com/1265578519/transmission/master/2.84/libevent-2.0.21-stable.tar.gz
  27. tar zxf libevent-2.0.21-stable.tar.gz
  28. cd libevent-2.0.21-stable
  29. ./configure
  30. make -s -j 4
  31. make -s install
  32. ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
  33. ln -s /usr/local/lib/libevent-2.0.so.5.1.9 /usr/lib/libevent-2.0.so.5.1.9
  34. ln -s /usr/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5
  35. ln -s /usr/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent-2.0.so.5.1.9
  36. cd ..
  37. yum -y install memcached php-pecl-memcache
  38. yum -y install php-pecl-apc
  39. rm -rf /etc/sysconfig/memcached
  40. wget http://github.itzmx.com/1265578519/kangle/master/memcached/memcached -O /etc/sysconfig/memcached
  41. service memcached restart
  42. chkconfig --level 2345 memcached on
  43. echo "127.0.0.1 download.safedog.cn" >> /etc/hosts
  44. setenforce 0
  45. wget http://github.itzmx.com/1265578519/safedog/master/2.4/safedog_linux64.tar.gz
  46. tar xzf safedog_linux64.tar.gz
  47. cd safedog_linux64
  48. chmod -R 777 install.py
  49. ./install.py
  50. sdcmd webflag 0
  51. sdcmd twreuse 1
  52. cd ..
  53. yum -y install mysql mysql-server
  54. rm -rf /etc/my.cnf
  55. wget http://github.itzmx.com/1265578519/kangle/master/mysql/5.6/my.cnf -O /etc/my.cnf
  56. service mysqld restart

复制代码

运行上面的安装shell,会自动安装kangle,easypanel,proftpd,mysql,安装完后打开http://ip:3312/admin/登录才能完成最后的安装。

kangle管理    http://ip:3311                 easypanel管理    http://ip:3312/admin 
数据库默认用户名root 密码为空            帐号:admin 密码kangle

版本2-去掉内核升级和安全狗安装

  1. rpm -ivh http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community-release-el6-5.noarch.rpm
  2. rm -rf /etc/yum.repos.d/mysql-community.repo
  3. rm -rf /etc/yum.repos.d/mysql-community-source.repo
  4. wget http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community.repo -O /etc/yum.repos.d/mysql-community.repo
  5. wget http://github.itzmx.com/1265578519/repo/master/CentOS/mysql-community-source.repo -O /etc/yum.repos.d/mysql-community-source.repo
  6. yum -y install which file wget make automake gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota unzip bzip2
  7. ulimit -n 1048576
  8. echo "* soft nofile 1048576" >> /etc/security/limits.conf
  9. echo "* hard nofile 1048576" >> /etc/security/limits.conf
  10. wget http://github.itzmx.com/1265578519/kangle/master/ent/e.sh -O e.sh;sh e.sh /vhs/kangle
  11. wget http://github.itzmx.com/1265578519/kangle/master/kangle/easypanel/ep.sh -O ep.sh;sh ep.sh
  12. rm -rf /vhs/kangle/ext/tpl_php52/php-templete.ini
  13. wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-templete.ini -O /vhs/kangle/ext/tpl_php52/php-templete.ini
  14. rm -rf /vhs/kangle/ext/tpl_php52/etc/php-node.ini
  15. wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-node.ini -O /vhs/kangle/ext/tpl_php52/etc/php-node.ini
  16. wget http://github.itzmx.com/1265578519/transmission/master/2.84/libevent-2.0.21-stable.tar.gz
  17. tar zxf libevent-2.0.21-stable.tar.gz
  18. cd libevent-2.0.21-stable
  19. ./configure
  20. make -s -j 4
  21. make -s install
  22. ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
  23. ln -s /usr/local/lib/libevent-2.0.so.5.1.9 /usr/lib/libevent-2.0.so.5.1.9
  24. ln -s /usr/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5
  25. ln -s /usr/lib/libevent-2.0.so.5.1.9 /usr/local/lib/libevent-2.0.so.5.1.9
  26. cd ..
  27. yum -y install memcached php-pecl-memcache
  28. yum -y install php-pecl-apc
  29. rm -rf /etc/sysconfig/memcached
  30. wget http://github.itzmx.com/1265578519/kangle/master/memcached/memcached -O /etc/sysconfig/memcached
  31. service memcached restart
  32. chkconfig --level 2345 memcached on
  33. yum -y install mysql mysql-server
  34. rm -rf /etc/my.cnf
  35. wget http://github.itzmx.com/1265578519/kangle/master/mysql/5.6/my.cnf -O /etc/my.cnf
  36. service mysqld restart

复制代码

附带, 单纯kangle web安装
(不带mysql easypanel, 注意:*号代表最新版本比如3.4.8)

  1. yum -y install wget make gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota
  2. ulimit -n 1024000
  3. wget -O kangle.tar.gz http://download.kanglesoft.com/devel.php?os=src
  4. tar xzf kangle.tar.gz
  5. cd kangle-*
  6. ./configure --prefix=/vhs/kangle --enable-vh-limit --enable-disk-cache --enable-ipv6 --enable-ssl
  7. make
  8. make install
  9. /vhs/kangle/bin/kangle

复制代码

kangle管理    http://ip:3311           帐号:admin 密码kangle

   卸载kangle方法:
(卸载前注意备份站点信息数据,home下的数据和数据库会保留)

  1. killall kangle
  2. rm -rf /vhs

复制代码

【php推荐环境】康乐kangle easypanel php5.3+mysql5.6+centos6 linux环境一键安装教程:等您坐沙发呢!

发表评论

表情
还能输入210个字