网站首页技术博客
easywechat报错:Failed to cache access token
摘要overtrue/wechat 默认使用的是 symfony/cache 来进行缓存操作,ubuntu中,symfony/cache会在/tmp目录下建立symfony_cache来储存临时缓存。
ps:如果不是/tmp目录,可以使用 sys_get_temp_dir() 方法获取你的临时文件目录。
easywechat报错:Failed to cache access token
overtrue/wechat 默认使用的是 symfony/cache 来进行缓存操作,ubuntu中,symfony/cache会在/tmp目录下建立symfony_cache来储存临时缓存。
ps:如果不是/tmp目录,可以使用 sys_get_temp_dir() 方法获取你的临时文件目录。
这里遇到问题是因为symfony目录所属用户组并非程序运行的用户组,程序没有对该目录的写权限,所以导致无法缓存access_token
修改/tmp/symfony的目录所属用户即可
上一篇:mysql General error: 1267 Illegal mix of collations错误
下一篇:Access denied; you need (at least one of) the SUPER privilege(s) for this operatio
相关文章
- easywechat报错:Failed to cache access token
- 【MySQL系列文章】4、索引的优点
- Redis的下载安装配置启动
- Uncaught RedisException: protocol error, got '2' as reply type b
- H3C 无线控制器关闭信号认证
- Can't connect to local MySQL server through socket '/tmp/mysqld
- Layer与DatetimePicker层叠顺寻Z-index冲突解决方案
- supervisor unix:///tmp/supervisor.sock no such file
- linux tail命令的使用方法详解
- 竟然成功啦,centos成功搭建vpn