七牛文件上传 报错579(status)17-03-23
七牛文件上传,报错579(status)Request URL:http://up-z1.qiniu.com/
Request Method:POST
Status Code:579 status code 579 源代码$policy = array(
'callbackUrl' => 'http://pekingpiao.com/callback.php',
'callbackBody' => '{"fname":"$(fname)", "fkey":"$(key)", "desc":"$(x:desc)", "uid":' . $uid . '}'
);
$qiniu = new Auth(self::$ak, self::$sk);
$token = $qiniu->uploadToken(self::$bucket, null, 3600, $policy);因为文件确实上传成功,说明这以上都没有错,而是错在了ca
....
....
继续redis17-02-14
1.重启服务pkill redis-server然后再启动服务和客户端连接/usr/local/redis/bin/redis-server
/usr/local/redis/etc/redis.conf
/usr/local/redis/bin/redis-cli或者登录的时候直接输入密码 (登陆授权)/usr/local/redis/bin/redis-cli -a pekingpiao2.主从复制: 配置主从服务器: 配置slave服务器很简单,只需要在slave的配置文件中假如以下配置:slaveof 192.168.17.108 6379 #指定master的ip和端口
masterauth pekingpiao #这是主
....
....