yum install -y xinetd
0 i4 v3 Q: _7 {( {安装xinted服务,配置mysqlchk文档:
2 d: O, q# {9 ?' f
3 W# z4 y8 m5 x& P0 O vim /etc/xinetd.d/mysqlchk #default: on
% {0 V3 l0 |! g5 u v$ Y9 B #description: mysqlchk % L- M4 v3 J, n* [& c
service mysqlchk
/ R0 V& B! ~# ~4 e( ^ {
9 v0 O1 j7 H7 B; E& D disable = no 9 u. a' [: t! }9 \6 y. b/ t
flags = REUSE * e* `7 R8 D/ J8 ]
socket_type = stream
' m# B6 W- D1 J port = 9200 ) Y! M& g, p& M& ~9 ]: o, Y6 P
wait = no
8 g; a: }. { ]# t, c( W user = nobody
# O, t4 L, T1 @$ ` server =/opt/scripts/wsrep/mysqlcheck_status.sh / l t& j0 ^: S( P9 F
log_on_failure += USERID 1 M$ V) ?$ A: r9 p+ V: T6 }
only_from = 192.168.1.12 192.168.1.13 192.168.1.11 2 b( o# F" d2 Y6 K0 e' `5 l0 C& ~
per_source = UNLIMITED + D( y# m5 X; }) |; P* w' v
} & ~3 K; f9 H+ U- ~
0 q: e" X) [8 P# D: l
! f: |! p" s) H5 m
' ]1 l- @* E1 i$ U. m: [6 M6 ~6 }; _ |