(转)POSTFIX邮局系统搭建全过程1
原文:http://blog.csdn.net/liuyunfengheda/article/details/5805043POSTFIX邮局系统搭建全过程(postfix+courier-imap+maildrop+cyrus-sasl+ extman+ SpamAssassin+ clamav+ amavisd-new搭建mail服务器)作者:刘运锋 前言:现在网上有很多搭建postfix邮局系统的文章,其中也不乏优秀的文章,但是根据那些并不能完整的将postfix邮局系统架设起来。笔者也深受一些错误文章的影响,在搭建的过程中遇到这样和那样的问题,此次将postfix邮局系统完成的搭建一遍,并将搭建过程中遇到的问题及时更改,并更新到文档中,提供一个全方位的文
(转)Nginx安装
./configure --prefix=/usr/local/nginx安装Nginx时报错./configure: error: the HTTP rewrite module requires the PCRE library.安装pcre-devel解决问题yum -y install pcre-devel错误提示:./configure: error: the HTTP cache module requires md5 functionsfrom OpenSSL library. You can either disable the module by using--without-http-cache option, or install the OpenSSL library into the system,or build the OpenSSL library statically from the source with nginx by using--with-http_ssl_module --with-openssl=&l
(转)innodb_doublewrite_file
原文:http://www.orczhou.com/index.php/2010/02/innodb-double-write/记得刚开始看InnoDB文档的时候,Double Write一节(其实只有一小段)就让我很困惑。无奈当时内力太浅,纠缠了很久也没弄明白。时隔几个月,重新来整理一下。涉及到的概念:Buffer Pool简称BP,Dirty Page,Log file,Flush,innodb tablespace。1. 什么是Double Write在InnoDB将BP中的Dirty Page刷(flush)到磁盘上时,首先会将Page刷到InnoDB tablespace的一个区域中,我们称该区域为Double write Buffer。在向Double write Buffer写入成功后,再择机将数据拷贝
LVS-DR VIP和RIP不同网段的配置方法
在网上流传的很多文章中,LVS-DR模式都要求VIP和RIP在同一网段,很少有在不同网段配置成功的案例。但章文嵩博士已经在官网上明确回答了是可以在不同网段的(见http://zh.linuxvirtualserver.org/node/155),负载调度器只要有一个网口和真实服务器是通过不分段的网络连接起来就可以,真实服务器可以通过自己的路由器将响应报文发送给客户。也就是说Director至少要有两个网口才满足VIP和RIP不在同一网段。 LVS-HOWTO(http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-DR.html)也说明了LVS-DR的要求。 从realse
RouterOS防火墙
/ ip firewall filter add chain=input connection-state=invalid action=drop comment="丢弃非法连接数据" disabled=no/ip firewall filter add chain=input protocol=icmp action=drop comment="禁止外网Ping" disabled=no in-interface=ADSLadd chain=input protocol=tcp psd=21,3s,3,1 action=drop comment="探测并丢弃端口扫描连接" disabled=no add chain=input protocol=tcp connection-limit=3,32 src-address-list=black_list action=tarpit comment="压制DoS攻击" disabled=no add ch
RouterOS优化
Web 80端口优先/ip firewall mangleadd chain=prerouting protocol=tcp dst-port=80 action=mark-packet new-packet-mark=web passthrough=yes comment="web" disabled=no/queue treeadd name="web" parent=ether1-WAN packet-mark="web" limit-at=0 queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no小包优先/ ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440 comment="" disabled=no
RouterOS 限速脚本和限线程脚本
限线程脚本: :for aaa from 2 to 254 do={/ ip firewall filter add chain=forward src-address=("192.168.1." . $aaa) protocol=tcp connection-limit=120,32 action=drop comment="Connection limit"} 限速脚本: :for aaa from 2 to 254 do={/ queue simple add name=("queue" . $aaa) target-address=("192.168.1." . $aaa) limit-at=0/0 max-limit=400000/3000000 burst-limit=600000/10000000 burst-threshold=400000/3000000 burst-time=30/30 comment="Speed limit"} 说明:
Error: Exception was raised when calling per-thread-terminate function in extension lrwreplaymain.dl
在使用LR进行压力测试时,出现Error: Exception was raised when calling per-thread-terminate function in extension lrwreplaymain.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION的提示。解决方法:在C盘(或是其它盘均可以)新建TEMP文件夹(为了后续设置临时文件准备) 右键"我的电脑"->高级->环境变量->编辑修改所有TEMP变量目录,指身上面新建的目录,如我的指向C:TEMP ,保存即可。[@more@]