Authored by root

redis 重启handlers

@@ -2,11 +2,11 @@ @@ -2,11 +2,11 @@
2 # handlers file for redis 2 # handlers file for redis
3 3
4 - name: stop redis 4 - name: stop redis
5 - shell: /Data/local/redis/bin/redis-cli -h "{{ ansible_default_ipv4['address'] }}" -p 6379 shutdown 5 + shell: /Data/local/redis/bin/redis-cli -h "{{ ansible_default_ipv4['address'] }}" -p 16379 shutdown
6 ignore_errors: True 6 ignore_errors: True
7 7
8 - name: start redis 8 - name: start redis
9 shell: /Data/local/redis/bin/redis-server /Data/local/redis/conf/redis.conf 9 shell: /Data/local/redis/bin/redis-server /Data/local/redis/conf/redis.conf
10 10
11 - name: start nutcracker 11 - name: start nutcracker
12 - shell: /Data/local/twemproxy/sbin/nutcracker -d -c /Data/local/twemproxy/conf/nutcracker.yml 12 + shell: killall -9 nutcracker; /Data/local/twemproxy/sbin/nutcracker -d -c /Data/local/twemproxy/conf/nutcracker.yml
@@ -40,6 +40,7 @@ @@ -40,6 +40,7 @@
40 src: "redis.conf.j2" 40 src: "redis.conf.j2"
41 dest: "/Data/local/redis/conf/redis.conf" 41 dest: "/Data/local/redis/conf/redis.conf"
42 notify: 42 notify:
  43 + - stop redis
43 - start redis 44 - start redis
44 45
45 - name: Make sure autoconf268 utils installed 46 - name: Make sure autoconf268 utils installed