kangle web server,linux centos 6 一键安装包,设置优化图解,DDOS Firewall 防火墙
[font=Tahoma,][size=4][color=Red]几张效果图[/color][/size][/font][img=734,672]http://att.itzmx.com/data/attachment/forum/201412/20/014430mbkcm4malmm7t44p.jpg[/img]
[img=785,0]http://att.itzmx.com/data/attachment/forum/201412/27/231113imt1mt1888uqthuu.jpg[/img]
[font=Tahoma,][size=4][color=Red]最低配置安装需求[/color][/size][/font]
[color=#444444][font=Tahoma,]本教程至少需要以下配置进行安装[/font][/color]
[color=#444444][font=Tahoma,]CPU:单核[/font][/color]
[color=#444444][font=Tahoma,]内存:256M (mysql 5.6需要最低1G内存,不安装启动DDOS Firewall 的话最低需求128M。内存占用情况为:系统30M,kangle+easypanel 20M,DDOS Firewall 100M)[/font][/color]
[color=#444444][font=Tahoma,]硬盘:5G或者以上[/font][/color]
[color=#444444][font=Tahoma,]网络:独立公网IP[/font][/color]
[color=#444444][font=Tahoma,]操作系统:[/font][/color][url=http://bbs.itzmx.com/thread-8018-1-1.html]centos 6 x64[/url]
[color=#444444][font=Tahoma,]安装时间:普通VPS大约在1-3分钟左右[/font][/color]
[font=Tahoma,][size=4][color=Red]默认登录密码是什么?[/color][/size][/font]
[color=#444444][font=Tahoma,]easypanel控制面板管理员后台:ip:3312/admin[/font][/color]
[color=#444444][font=Tahoma,]帐号:admin[/font][/color]
[color=#444444][font=Tahoma,]密码:kangle[/font][/color]
[color=#444444][font=Tahoma,]mysql数据库管理员后台:ip:3313/mysql[/font][/color]
[color=#444444][font=Tahoma,]帐号:root[/font][/color]
[color=#444444][font=Tahoma,]密码:空[/font][/color]
[color=#444444][font=Tahoma,]想要用mysql的话,一定要先进去3312/admin登录,左边有个服务器设置,把数据库帐号密码填入,并且初始化服务器后即可正常登录mysql使用。[/font][/color]
[font=Tahoma,][size=4][color=Red]一键安装包是什么?[/color][/size][/font]
[color=#444444][font=Tahoma,]kangle web server一键安装包是一个用Linux Shell编写的可以为CentOS 6 VPS(VDS)或独立主机安装kangle web server(kangle,easypanel,proftpd,mysql,php,apc,Memcached,safedog)生产环境的Shell程序。[/font][/color]
[font=Tahoma,][size=4][color=Red]我们为什么需要它?[/color][/size][/font]
[color=#444444][font=Tahoma,]编译安装需要输入大量的命令,如果是配置生产环境需要耗费大量的时间。[/font][/color]
[color=#444444][font=Tahoma,]不会Linux的站长或Linux新手想使用Linux作为生产环境……[/font][/color]
[size=4][color=#444444][font=Tahoma,][color=Red]它有什么优势?[/color][/font][/color][/size]
[color=#444444][font=Tahoma,]无需一个一个的输入命令,无需值守,编译安装优化编译参数,提高性能,解决不必要的软件间依赖,特别针对VPS用户进行了优化。[/font][/color]
[font=Tahoma,][size=4][color=Red]如何获取它?[/color][/size][/font]
[color=#444444][font=Tahoma,]你可以自由 下载 并使用它在VPS(VDS)或独立服务器上,做为真正的生产环境或测试环境。[/font][/color]
[font=Tahoma,][size=4][color=Red]我们为什么采用kangle这种架构?[/color][/size][/font]
[color=#444444][font=Tahoma,]采用Linux、PHP、MySQL的优点我们不必多说。[/font][/color]
[color=#444444][font=Tahoma,]kangle是一个小巧而高效的Linux下的Web服务器软件,是由 kanglesoft.com 站点开发的高并发服务器软件,已经在一些国内的大型网站上运行多年,目前很多国内外的门户网站、行业网站也都在是使用kangle,相当的稳定。[/font][/color]
[color=#444444][font=Tahoma,]kangle相当的稳定、功能丰富、并发性能强、安装配置简单、低系统资源……[/font][/color]
[size=4][color=#444444][font=Tahoma,][font=微软雅黑][color=Green]kangle web server 8核心8G内存VPS实测跑60W并发连接数妥妥的[/color][/font][/font][/color][/size]
[img=565,21]http://att.itzmx.com/data/attachment/forum/201408/08/180801gpvlarrx8bklbmbo.jpg[/img]
[color=#444444][font=Tahoma,]如果已经安装kangle,请忽略3-5行,3-5行为安装数据库最新版,如果已经安装kangle,想升级数据库可参考此帖:[/font][/color][url=http://bbs.itzmx.com/thread-6285-1-1.html]http://bbs.itzmx.com/thread-6285-1-1.html[/url]
[color=#444444][font=Tahoma,]以下安装教程带的为mysql官方5.6最新版同步更新。由于新版内存占用大,建议最低1G内存使用。否者不建议最新版安装,128M , 512M等小内存机器,请用5.1系统自带版本。[/font][/color]
[font=Tahoma,][list=1][*]yum -y install epel-release[*]yum -y install which file wget make automake gcc gcc-c++ pcre-devel zlib-devel openssl-devel sqlite-devel quota[*]echo "184.87.100.235 repo.mysql.com" >> /etc/hosts[*]wget [url]http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm[/url][*]rpm -ivh mysql-community-release-el6-5.noarch.rpm[*]ulimit -n 1024000[*]echo "* soft nofile 1024000" >> /etc/security/limits.conf[*]echo "* hard nofile 1024000" >> /etc/security/limits.conf[*]echo "23.89.175.131 download.kanglesoft.com" >> /etc/hosts[*]wget [url]http://download.kanglesoft.com/easypanel/ep.sh[/url] -O ep.sh;sh ep.sh[*]wget [url]http://jaist.dl.sourceforge.net/project/transmissionbt/libevent-2.0.21-stable.tar.gz[/url][*]tar zxf libevent-2.0.21-stable.tar.gz[*]cd libevent-2.0.21-stable[*]./configure[*]make -s[*]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[*]setenforce 0[*]wget [url]http://jaist.dl.sourceforge.net/project/safedog/V2.4/safedog_linux64.tar.gz[/url][*]tar xzf safedog_linux64.tar.gz[*]cd safedog_linux64[*]chmod -R 777 install.py[*]./install.py[*]cd ..[*][/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]如果你完全不需要数据库运行,比如说单独跑CDN反向代理,怕mysql占内存可以卸载[/font][/color]
[font=Tahoma,][list=1][*]yum -y remove mysql mysql*[*]rm -rf /var/lib/mysql/*[*]yum -y install mysql-libs[*][/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]安装后通过访问进入后台设置,默认用户名admin,密码kangle,mysql数据库用户名root,密码空,初始化后点击左边的mysql管理进行修改root密码,修改后记得去服务器设置填写新密码[/font][/color]
[font=Tahoma,][list=1][*]http://ip:3312/admin[/list]
[size=12px]复制代码[/size][/font]
[img=785,0]http://att.itzmx.com/data/attachment/forum/201409/26/232822sznps4ac6pp8zn4c.png[/img]
[color=#444444][font=Tahoma,]DDOS Firewall后台通过输入如下访问,具体参数设置不举例,可以防小流量DDOS攻击和常见CC攻击,不过还是建议使用完美无误封的kangle商业版:[/font][/color][url=http://bbs.itzmx.com/thread-7047-1-1.html]http://bbs.itzmx.com/thread-7047-1-1.html[/url]
[font=Tahoma,][list=1][*]sdui[/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]使用说明:[/font][/color]
[color=#444444][font=Tahoma,]切换DDOS Firewall语言包图形界面显示[/font][/color]
[font=Tahoma,][list=1][*]F5[/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]查看DDOS Firewall服务[/font][/color]
[font=Tahoma,][list=1][*]service safedog status[/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]启动DDOS Firewall服务[/font][/color]
[font=Tahoma,][list=1][*]service safedog start[/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]停止DDOS Firewall服务[/font][/color]
[font=Tahoma,][list=1][*]service safedog stop[/list]
[size=12px]复制代码[/size][/font]
[color=#444444][font=Tahoma,]重启DDOS Firewall服务[/font][/color]
[font=Tahoma,][list=1][*]sdstart[/list]
[size=12px]复制代码[/size][/font]
[font=微软雅黑][color=#444444][size=3][color=DarkOrchid]推荐修改的文件有[/color][/size][/color][/font]
[color=#444444][font=Tahoma,]phpMyAdmin配置文件:/vhs/kangle/ext/tpl_php52/etc/php-node.ini[/font][/color]
[color=#444444][font=Tahoma,]修改memory_limit 为256M[/font][/color]
[font=微软雅黑][color=#444444][size=3][color=DarkOrchid]必须修改的配置文件有[/color][/size][/color][/font]
[color=#444444][font=Tahoma,]数据库执行配置文件:/etc/my.cnf[/font][/color]
[font=Tahoma,][indent]# For advice on how to change settings please see
# [url=http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html]http://dev.mysql.com/doc/refman/ ... ation-defaults.html[/url]
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 8M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
join_buffer_size = 8M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-bin
default-time-zone = '+8:00'
performance_schema_max_table_instances=200
table_definition_cache=200
table_open_cache=128
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid[/indent][/font]
[color=#444444][font=Tahoma,]memcached启动配置文件:/etc/sysconfig/memcached[/font][/color]
[font=Tahoma,][indent]PORT=”11211″ 端口
USER=”root” 修改使用的用户名为root
MAXCONN=”1024″ 同时最大连接数
CACHESIZE=”20″ 使用的内存大小
OPTIONS=”" 附加参数(可留空)[/indent][/font]
[color=#444444][font=Tahoma,]3312/admin后台编辑php.ini[/font][/color]
[color=#444444][font=Tahoma,]最后尾行添加[/font][/color]
[color=#444444][font=Tahoma,]extension = "/usr/lib64/php/modules/memcache.so"[/font][/color]
[color=#444444][font=Tahoma,]date.timezone = PRC[/font][/color]
[color=#444444][font=Tahoma,]修改display_errors 关闭报错模式[/font][/color]
[color=#444444][font=Tahoma,]display_errors = Off[/font][/color]
[color=#444444][font=Tahoma,]修改memory_limit PHP执行内存[/font][/color]
[color=#444444][font=Tahoma,]memory_limit = 256M[/font][/color]
[color=#444444][font=Tahoma,]将memcache加入启动列表[/font][/color]
[color=#444444][font=Tahoma,]chkconfig --level 2345 memcached on[/font][/color]
[font=微软雅黑][color=#444444][size=4][color=Red]建议使用的系统计划任务[/color][/size][/color][/font]
[color=#444444][font=Tahoma,]执行进入计划任务编辑[/font][/color]
[color=#444444][font=Tahoma,]crontab -e[/font][/color]
[color=#444444][font=Tahoma,]添加条目,打开系统每日自动更新[/font][/color]
[font=Tahoma,][indent]45 * * * * /usr/bin/yum -y update[/indent][/font]
[color=#444444][font=Tahoma,]每日自动删除服务器日志(看你硬盘是否够大,自行判断需求是否删除日志)[/font][/color]
[font=Tahoma,][indent]45 * * * * /bin/rm -rf /vhs/kangle/var/server.log[/indent][/font]
[color=#444444][font=Tahoma,]每日删除PHP的缓存文件(看你硬盘是否够大,自行判断需求是否删除缓存)[/font][/color]
[font=Tahoma,][indent]45 * * * * /bin/rm -rf /tmp/sess*[/indent][/font]
[color=#444444][font=Tahoma,]增加mysql守护进程,解决数据库进程闪退,内存不足自动退出[/font][/color]
[font=Tahoma,][indent]* * * * * /etc/init.d/mysqld start[/indent][/font]
[color=#444444][font=Tahoma,]最后我们来对kangle优化一些参数和做安全防护[/font][/color]
[color=#444444][font=Tahoma,]PHP跨目录访问权限:[/font][/color][url=http://bbs.itzmx.com/thread-6754-1-1.html]http://bbs.itzmx.com/thread-6754-1-1.html[/url]
[color=#444444][font=Tahoma,]请求控制中的设置:[/font][/color][url=http://bbs.itzmx.com/thread-6020-1-1.html]http://bbs.itzmx.com/thread-6020-1-1.html[/url]
[img=785,0]http://att.itzmx.com/data/attachment/forum/201409/26/232830mwwgssez8swekn24.png[/img]
[color=#444444][font=Tahoma,]回应控制中的设置:[/font][/color][url=http://bbs.itzmx.com/thread-6018-1-1.html]http://bbs.itzmx.com/thread-6018-1-1.html[/url]
[img=785,0]http://att.itzmx.com/data/attachment/forum/201409/26/232832wuxjjpap9uj9at6a.png[/img]
[color=#444444][font=Tahoma,]3311 kangle总控制后台设置[/font][/color]
[img=718,0]http://att.itzmx.com/data/attachment/forum/201410/11/002654xzo2gcxhomg8mb8b.png[/img]
[img=742,0]http://att.itzmx.com/data/attachment/forum/201409/26/232825f0p2q5z2ay4wnvnm.png[/img]
[img=752,0]http://att.itzmx.com/data/attachment/forum/201409/26/232826agd5slddiyoliwwc.png[/img]
[img=706,0]http://att.itzmx.com/data/attachment/forum/201409/26/232827ffyukf3ukef70e2k.png[/img]
[img=629,0]http://att.itzmx.com/data/attachment/forum/201409/26/232828b55oxqlqlslscaua.png[/img]
[img=678,0]http://att.itzmx.com/data/attachment/forum/201409/26/232829aygv0gnxzuxzzuxw.png[/img]
[size=4][color=#444444][font=Tahoma,][color=YellowGreen][font=微软雅黑]kangle用户交流群 237770202[/font][/color][/font][/color][/size]
[size=4][color=#444444][font=Tahoma,][font=微软雅黑][color=DarkOliveGreen]建议搭配锐速服务器TCP加速软件,让打开更快,无延迟:[url=http://bbs.itzmx.com/thread-7220-1-1.html]http://bbs.itzmx.com/thread-7220-1-1.html[/url][/color][/font][/font][/color][/size]
[size=4][color=#444444][font=Tahoma,][font=微软雅黑][color=DarkOliveGreen]浏览器缓存设置:[url=http://bbs.itzmx.com/thread-7340-1-1.html]http://bbs.itzmx.com/thread-7340-1-1.html[/url][/color][/font][/font][/color][/size]
[size=4][color=#444444][font=Tahoma,][color=DarkOrange]转载请注明出处:[url=http://bbs.itzmx.com/thread-7232-1-1.html]http://bbs.itzmx.com/thread-7232-1-1.html[/url][/color][/font][/color][/size]
[color=#444444][font=Tahoma,]centos安装PHP扩展,MCrypt加密处理的方法 Libmcrypt支持库mhash安装,shopex报错解决[/font][/color]
[url=http://bbs.itzmx.com/thread-6763-1-1.html]http://bbs.itzmx.com/thread-6763-1-1.html[/url]
[color=#444444][font=Tahoma,]【php插件】kangle easypanel面板 php-5.2.17 for linux版 (集成zend和ioncube)[/font][/color]
[url=http://bbs.itzmx.com/thread-7803-1-1.html]http://bbs.itzmx.com/thread-7803-1-1.html[/url]
[color=#444444][font=Tahoma,]【php插件】kangle easypanel面板 php-5.6.9 for linux版 支持ioncube 与Zend OPcache[/font][/color]
[url=http://bbs.itzmx.com/thread-9064-1-1.html]http://bbs.itzmx.com/thread-9064-1-1.html[/url]
[color=#444444][font=Tahoma,]【php插件】kangle easypanel面板 php-5.5.25 for linux版 支持ioncube与Zend OPcache[/font][/color]
[url=http://bbs.itzmx.com/thread-9112-1-1.html]http://bbs.itzmx.com/thread-9112-1-1.html[/url]
[color=#444444][font=Tahoma,]【php插件】kangle easypanel面板 php-5.4.41 for linux版 (集成支持zend和ioncube)[/font][/color]
[url=http://bbs.itzmx.com/thread-9111-1-1.html]http://bbs.itzmx.com/thread-9111-1-1.html[/url]
[color=#444444][font=Tahoma,]升级kangle easypanel面板的php 5.3.21版本到5.6.9来修复PHP DOS漏洞[/font][/color]
[url=http://bbs.itzmx.com/thread-9202-1-1.html]http://bbs.itzmx.com/thread-9202-1-1.html[/url]
页:
[1]