浏览代码

fix something

stanley-king 4 年之前
父节点
当前提交
87e4de5787
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      conf/redis/6379.conf
  2. 1 1
      public/index.php

+ 2 - 2
conf/redis/6379.conf

@@ -106,7 +106,7 @@ loglevel notice
 # Specify the log file name. Also the empty string can be used to force
 # Redis to log on the standard output. Note that if you use standard
 # output for logging but daemonize, logs will be sent to /dev/null
-#logfile /var/redis.log
+logfile ./redis.log
 
 # To enable logging to the system logger, just set 'syslog-enabled' to yes,
 # and optionally update the other syslog parameters to suit your needs.
@@ -190,7 +190,7 @@ dbfilename dump.rdb
 # The Append Only File will also be created inside this directory.
 #
 # Note that you must specify a directory here, not a file name.
-dir ./
+dir /var/redis
 
 ################################# REPLICATION #################################
 

+ 1 - 1
public/index.php

@@ -13,7 +13,7 @@
 namespace think;
 
 header("Access-Control-Allow-Origin: http://172.22.45.193");
-header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");
+header("Access-Control-Allow-Methods:GET, POST");
 header("Access-Control-Allow-Credentials: true");
 header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding");