소스 검색

修正安装脚本bug

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