Chinaunix

标题: 通过php客户端 上传时,权限不够。 [打印本页]

作者: 8634129    时间: 2015-07-28 17:06
标题: 通过php客户端 上传时,权限不够。
服务器断电之后出现的问题

fdfs_upload_file /etc/fdfs/client.conf test.jpg 上传没有问题,


构造函数中
$this->fdfs = new FastDFS();
// get a connected tracker server
$this->tracker = $this->fdfs->tracker_get_connection();//此处连接不成功
if (!$this->tracker) {
       throw new Exception('cannot connect to tracker server:[' .  $this->fdfs->get_last_error_no() . '] ' . $this->fdfs->get_last_error_info());
}
抛出异常显示,错误2,权限不够

查看日志发现权限不够。
error - file: ../common/connection_pool.c, line:84, connect





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2