Redis in Docker

连接redis

  • docker redis-cli连接redis
1
2
3
4
[root@localhost redis]# docker inspect redis_redis_1 |grep net
"NetworkMode": "redis_localnet",
"SandboxKey": "/var/run/docker/netns/a498b7651db0",
"redis_localnet": {
阅读更多
清理ELK的旧索引

安装elasticsearch-curator

1
2
3
4
5
6
7
pip install elasticsearch-curator

如果报错"ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed ..."

pip install pip==8.0.3
pip uninstall pyyaml
pip install elasticsearch-curator
阅读更多
Consul ACL

systemd service

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=consul agent
Requires=network-online.target
After=network-online.target

[Service]
EnvironmentFile=-/etc/sysconfig/consul
Environment=GOMAXPROCS=2
Restart=on-failure
ExecStart=/usr/local/bin/consul agent -config-dir=/opt/consul/conf -rejoin
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM

[Install]
WantedBy=multi-user.target
阅读更多
yum安装MySQL-5.7

系统:CentOS 7.6

阅读更多
yum安装rabbitmq

系统:CentOS 7.6

阅读更多
PMM数据库性能监控

Percona Monitoring and Management (PMM)是一款开源的MySQL、MongoDB性能监控工具,PMM客户端负责收集DB监控数据,PMM服务端从已连接的客户端拉取数据,并通过第三方软件Grafana展示图表。

阅读更多
Nginx + Consul-template

通过registrator自动发现容器内的服务,注册到consul,通过consul -template动态修改nginx配置文件实现动态负载。

阅读更多