HAProxy HAProxy是免费 高效 可靠的高可用及负载均衡解决方案,该软件非常适合于处理高负载站点的七层数据请求,HAProxy的工作模式使其可以非常容易且安全地集成到我们现有的站点架构中。使用类似的代理软件还可以对外屏蔽内部真实Web服务器,防止内部服务器遭受外部攻击 Haproxy有8种 ...
分类:
其他好文 时间:
2016-12-04 20:11:37
阅读次数:
380
mysql:5.6.29xtrabackup:2.2.10mysql数据目录:/data/mysqlmysql备份目录:/data/dbbak/full #确保有足够的磁盘空间 1、安装依赖 2、安装xtrabackup 3、在数据库创建备份账号 4、使用xbstream备份 5、使用tar备份 6 ...
分类:
其他好文 时间:
2016-12-04 19:43:52
阅读次数:
179
新安装的centos 7 发现有些程序端口是关闭的,想到了防火墙和selinux selinx 好关闭 /etc/sysconfig/selinux 中 追加 SELINUX=disabled 防火墙以为也是很好弄,按照以前的老规矩,service iptables stop 或者 chkconfi... ...
分类:
其他好文 时间:
2016-12-03 23:52:00
阅读次数:
319
1. Two Sum --No Bug Free Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that ...
分类:
其他好文 时间:
2016-12-02 03:25:03
阅读次数:
205
今天在nginx重新加载配置文件的时候报错提示无效的PID,打开nginx.pid文件,发现里面是空的,在网上找了下,有的说sudo可以解决,但是又一次失望了12[root@XR_23_56conf]#sudo/usr/local/nginx/sbin/nginx-sreloadnginx:[error]invalidPIDnumber""in"/usr/local/nginx/logs/ngi..
分类:
其他好文 时间:
2016-12-01 15:09:13
阅读次数:
246
一、简介 一般情况下,动态库加载顺序为LD_PRELOAD>LD_LIBRARY_PATH>/etc/ld.so.cache>/lib>/usr/lib。 二、常用环境变量 1)LD_LIBRARY_PATH 2)LD_PRELOAD http://www.tuicool.com/articles/... ...
分类:
其他好文 时间:
2016-11-27 22:39:42
阅读次数:
168
CentOS 可以通过 yum 安装: yum -y install httpd php php-mysql mysql-serverservice httpd status|start|stop|restart|reload service mysqld status|start|stop|res ...
分类:
数据库 时间:
2016-11-27 22:26:50
阅读次数:
209
chrome firefox 都有 vimium (firefox 中为vimfx), 快捷键也差不多 下边是chrome中快捷键示意图: G = shift + g (其他同理) c+e = ctrl +e(其他同理) 常用的几个快捷键: gg 滚动到顶部 G 滚动到底部 j 向下滚动 k 向上滚 ...
分类:
系统相关 时间:
2016-11-27 20:13:41
阅读次数:
281
$('form').submit(); // 表单提交 window.parent.location.reload(); // 子窗口刷新父页面 window.location.reload(); // 刷新当前页面 $('input').blur(function () {...... }) // ...
分类:
Web程序 时间:
2016-11-25 11:48:44
阅读次数:
257