标签: linux

nginx新增stream模块负载ftp请求

nginx 1.9版本之后直接使用Stream 安装stream模块: 1.nginx 增加tcp ./configure –with-stream (新增配置,其余根据自己需求不变) 2.配置nginx.conf stream { upstream ftp { hash $remote_addr consistent; server 192.168.1.2:21 max_fails=3 fail_timeout=30s; server 192.168.1.3:21 max_fails=3 fail_timeout=30s; } server { listen 2121; prox

继续阅读 >>

etcd集群安装配置

ETC集群配置 yum install etcd 安装 etcd每台安装步骤都一样,所以etcd2、etcd3都以etcd1步骤一样 安装只需一条命令即可: yum -y install etcd 修改配置文件 ETCD_DATA_DIR=”/var/lib/etcd/etcd01″ ETCD_LISTEN_PEER_URLS=”http://192.168.15.1:2380″ ETCD_LISTEN_CLIENT_URLS=”http://127.0.0.1:2379,http://192.168.15.1:2379″

继续阅读 >>

RabbitMQ脑裂问题解决方案调查

现象: RabbitMQ GUI上显示 Network partition detected Mnesia reports that this RabbitMQ cluster has experienced a network partition. There is a risk of losing data. Please read RabbitMQ documentation about network partitions and the possible solutions. 原因分析: 这是由于网络问题导致集群出现了脑裂临时解决办法: 在 相对不怎么信任的分区里,对那个分区的节点实

继续阅读 >>

解决:umount取消挂载时提示/home: device is busy问题

有时需要取消挂载/home或/data数据盘,但执行 umount -a 时出现umount: /home: device is busy,是什么原因呢?怎样解决umount:device is busy的报错 之所以会出现device is busy的报错,是因为有程序在使用/home或/data目录,我们可以使用fuser查看那些程序的进程, 然后杀掉就可以了。 [root@localhost home]# fuser -m /home /home: 10278c 10279c 10280c 10281c 10282c 10295 10365 18222c 命令:kill -9 pid 其

继续阅读 >>