haproxy官方提供了针对vim的语法文件,可以高亮显示keyword,对于修改配置文件来说很方便。
方法说一下:
1.将haproxy源码中example目录中的haproxy.vim复制到$HOME/.vim/syntax/
2.修改$HOME/.vimrc,加入: au BufRead,BufNewFile haproxy* set ft=haproxy
八、系统安全加固
[root@haproxy ~]#yum installyum-remove-with-leaves
[root@haproxy ~]#yum remove gccmake
[root@haproxy ~]#remove-list
system-config-firewall-baseiptables-ipv6dhcp-commonpciutils-libsefibootmgrdhclientkernel-firmwareiwl5150-firmwareiwl6050-firmwareiwl6000g2a-firmwareiwl6000-firmwareql2400-firmwareql2100-firmwarelibertas-usb8388-firmwareql2500-firmwarezd1211-firmwarert61pci-firmwareql2200-firmwareipw2100-firmwareipw2200-firmwareiwl5000-firmwareivtv-firmwarexorg-x11-drv-ati-firmwareatmel-firmwareiwl4965-firmwareiwl3945-firmwarert73usb-firmwareql23xx-firmwarebfa-firmwareiwl100-firmwareb43-openfwwfaic94xx-firmwareiwl1000-firmware[root@haproxy ~]#for I in `cat remove-list`;do yum -y remove $i;done
八、参考文档
1-http://mattiasgeniar.be/2010/11/04/a-custom-init-d-start-up-script-for-haproxy-start-stop-restart-reload-checkconfig/
2-http://www.snapt-ui.com/haproxy/simple-sysctl-tunings-for-haproxy/
3-https://gist.github.com/4039319
4-http://www.cyberciti.biz/files/linux-kernel/Documentation/networking/tproxy.txt
5-http://blog.exceliance.fr/2012/09/10/how-to-get-ssl-with-haproxy-getting-rid-of-stunnel-stud-nginx-or-pound/
6-http://www.symantec.com/connect/articles/apache-2-ssltls-step-step-part-2
7-http://www.igvita.com/2008/05/13/load-balancing-qos-with-haproxy/
8-http://h10025.www1.hp.com/ewfrf/wc/document?cc=us lc=en dlc=en tmp_geoLoc=true docname=c03561757
9-http://www.debuntu.org/how-to-log-haproxy-messages-only-once/#more-713
10-https://transloadit.com/blog/2010/08/haproxy-logging
11-http://kvz.io/blog/2010/08/11/haproxy-logging/
12-https://gist.github.com/1271962
13-http://www.rsyslog.com/doc/rsyslog_conf_actions.html
14-http://tehlose.wordpress.com/2011/10/10/a-log-file-for-each-virtual-host-with-haproxy-and-rsyslog/
15-http://jit.nuance9.com/2009/11/haproxy-routing-by-domain-name.html
16-http://unethicalblogger.com/2010/01/16/virtual-hosting-with-haproxy-and-wsgi.html
17-http://blog.silverbucket.net/post/31927044856/3-ways-to-configure-haproxy-for-websockets
18-http://blog.csdn.net/dog250/article/details/7107537
19-http://www.linuxjournal.com/content/monitoring-processes-kill
20-http://gurucollege.net/technology/ha-lamp-with-keepalived-pt2/
21-http://zauc.wordpress.com/2010/08/31/keepalived-conf之vrrp-instance部分解读/
22-http://interu.hatenablog.com/entry/20081024/1224784798
23-http://bbs.ywlm.net/thread-845-1-1.html
24-http://heylinux.com/archives/1942.html
25-http://www.intel.com/content/www/us/en/ethernet-controllers/82575-82576-82598-82599-ethernet-controllers-latency-appl-note.html
26-http://blog.csdn.net/turkeyzhou/article/details/7528182
27-http://www.vmware.com/files/pdf/techpaper/VMW-Tuning-Latency-Sensitive-Workloads.pdf
28-http://www.intel.com/support/cn/network/sb/cs-025829.htm
29-http://kaivanov.blogspot.kr/2015/02/keepalived-using-unicast-track-and.html
30-http://www.golinuxhub.com/2013/03/setting-up-custom-tcpip-keep-alive.html
31-https://serversforhackers.com/using-ssl-certificates-with-haproxy
32-https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-nginx-for-centos-6
33-http://man.lupaworld.com/content/manage/vi/doc/syntax.html
本文链接: http://polyresyn.immuno-online.com/view-690928.html