- 论坛徽章:
- 0
|
RE: fastdfs在centos7上编译时告警,安装后运行时报错[已解决]
本帖最后由 imkunzo 于 2015-03-24 20:33 编辑
问题已解决
源代码中有这么一段:
pGroup = getgrnam(g_run_by_group);
if (pGroup == NULL)
{
result = errno != 0 ? errno : ENOENT;
logError("file: "__FILE__", line: %d, " \
"getgrnam fail, errno: %d, " \
"error info: %s", __LINE__, \
result, STRERROR(result));
return result;
}
根据这个判断可能是运行组的问题,检查配置文件:
#unix group name to run this program,
#not set (empty) means run by the group of current user
run_by_group=fastdfs
发现程序运行使用的组和用户都还没有建(因为是从老系统上复制的配置文件……)
添加完fastdfs组和用户以后就能够正常启动了。
但是编译时的警告还是不知道是什么原因,望大神指点! |
|