James Iter преди 8 години
родител
ревизия
aa172e192c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      INSTALL.sh

+ 1 - 1
INSTALL.sh

@@ -154,7 +154,7 @@ function install_Redis() {
     # 配置 Redis
     echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf
     sysctl -p
-    sed -i '@^daemonize no@daemonize yes@g' /etc/redis.conf
+    sed -i 's@^daemonize no@daemonize yes@g' /etc/redis.conf
     sed -i 's@^bind 127.0.0.1@bind 0.0.0.0@g' /etc/redis.conf
     sed -i 's@^appendonly no@appendonly yes@g' /etc/redis.conf
     echo "requirepass ${REDIS_PSWD}" >> /etc/redis.conf