فهرست منبع

install redis

oubo 5 سال پیش
والد
کامیت
ca7ae0aecd
2فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 7 0
      data/upgrade/v2.0.0/v2.0.0.sh
  2. 7 0
      data/upgrade/v3.0.0/v3.0.0.sh

+ 7 - 0
data/upgrade/v2.0.0/v2.0.0.sh

@@ -57,3 +57,10 @@ if [ ! -x "$(command -v wkhtmltopdf)"  ]; then
 fi
 
 sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf
+
+if [ ! -f /etc/init.d/redis ];then
+    wget -O /etc/init.d/redis http://mi.lacecdn.com/docker/init.d.redis
+    chmod +x /etc/init.d/redis
+    service redis start
+    chkconfig redis on
+fi

+ 7 - 0
data/upgrade/v3.0.0/v3.0.0.sh

@@ -23,3 +23,10 @@ curl -s http://${domain}:${port}/v2/tools/init?key=rule
 
 
 sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf
+
+if [ ! -f /etc/init.d/redis ];then
+    wget -O /etc/init.d/redis http://mi.lacecdn.com/docker/init.d.redis
+    chmod +x /etc/init.d/redis
+    service redis start
+    chkconfig redis on
+fi