浏览代码

install redis

oubo 5 年之前
父节点
当前提交
337caf868d
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      data/upgrade/v2.0.0/v2.0.0.sh

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

@@ -61,3 +61,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