标签: centos7

dockerfile定制tomcat镜像,你需要的都在这

首先准备好一个文件夹,名字随便,把你想加进去的东东发在这里面。比如:jdk1.8   tomcat8,根据需求来 https://github.com/zhangdiandong 下面重点dockerfile FROM centos:7.7.1908 MAINTAINER zhangdd LABEL Description=”基于CentOS 7,安装了jre 8和tomcat8.5″ Version=”1.0″ #定义root密码 RUN echo “root:123456” | chpasswd RUN /bin/cp

继续阅读 >>

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. 原因分析: 这是由于网络问题导致集群出现了脑裂临时解决办法: 在 相对不怎么信任的分区里,对那个分区的节点实

继续阅读 >>