NEW

lvs+keepalived (openstack)

2019-03-06

LVS vi /etc/keepalived/keepalived.conf global_defs { router_id LVS_DEVEL } vrrp_instance VI_1 { state MASTER interface em1 virtual_router_id 51 priority 100 advert_int 1 authentic ...

NEW

rsync+inotify

2019-03-06

yum install inotify-tools #!/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin /usr/bin/inotifywait -mrq --timefmt '%Y%m%d-%H:%M' --format '%T %e %w%f' -e close_write,modify, ...

NEW

nodejs yum源

2019-03-06

NodeJS 11.x curl -sL https://rpm.nodesource.com/setup_11.x | bash - NodeJS 10.x curl -sL https://rpm.nodesource.com/setup_10.x | bash - NodeJS 8.x curl -sL https://rpm.nodesource.com/setup_8.x | bas ...

NEW

rsync to envs

2019-03-06

cat rsync-all.sh #!/bin/bash ex="--exclude=conf/ --exclude=fg/gamelist/public/global/app/ --exclude=fg/lobby/public/global/app/ --exclude=fg/platform/backend/phpScript/file/ --exclude=fg/platform/bac ...

NEW

Prometheus

2019-03-06

基于saltstack配置管理方式:prometheus的自启动配置 cat init.sls /usr/local/prometheus/prometheus.yml: file.managed: - source: salt://200_111/prometheus/prometheus.yml prometheus_server_service_script: file ...