linux中安装redis报错
Posted 旭日初扬
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux中安装redis报错相关的知识,希望对你有一定的参考价值。
大爷的这都是什么鬼、脑壳痛!!!
先留着等有时间在解决
server.h:1072:5: 错误:expected specifier-qualifier-list before ‘_Atomic’
_Atomic unsigned int lruclock; /* Clock for LRU eviction */
^
server.c: 在函数‘serverLogRaw’中:
server.c:1031:31: 错误:‘struct redisServer’没有名为‘logfile’的成员
int log_to_stdout = server.logfile[0] == '\\0';
^
server.c:1034:23: 错误:‘struct redisServer’没有名为‘verbosity’的成员
if (level < server.verbosity) return;
^
server.c:1036:47: 错误:‘struct redisServer’没有名为‘logfile’的成员
fp = log_to_stdout ? stdout : fopen(server.logfile,"a");
^
server.c:1049:47: 错误:‘struct redisServer’没有名为‘timezone’的成员
nolocks_localtime(&tm,tv.tv_sec,server.timezone,server.daylight_active);
^
server.c:1049:63: 错误:‘struct redisServer’没有名为‘daylight_active’的成员
nolocks_localtime(&tm,tv.tv_sec,server.timezone,server.daylight_active);
^
server.c:1052:19: 错误:‘struct redisServer’没有名为‘sentinel_mode’的成员
if (server.sentinel_mode)
^
server.c:1057:32: 错误:‘struct redisServer’没有名为‘masterhost’的成员
role_char = (server.masterhost ? 'S':'M'); /* Slave or Master. */
^
server.c:1065:15: 错误:‘struct redisServer’没有名为‘syslog_enabled’的成员
if (server.syslog_enabled) syslog(syslogLevelMap[level], "%s", msg);
^
server.c: 在函数‘serverLog’中:
server.c:1075:30: 错误:‘struct redisServer’没有名为‘verbosity’的成员
if ((level&0xff) < server.verbosity) return;
^
server.c: 在函数‘serverLogFromHandler’中:
server.c:1092:31: 错误:‘struct redisServer’没有名为‘logfile’的成员
int log_to_stdout = server.logfile[0] == '\\0';
^
server.c:1095:30: 错误:‘struct redisServer’没有名为‘verbosity’的成员
if ((level&0xff) < server.verbosity || (log_to_stdout && server.daemonize))
^
server.c:1095:68: 错误:‘struct redisServer’没有名为‘daemonize’的成员
if ((level&0xff) < server.verbosity || (log_to_stdout && server.daemonize))
^
server.c:1098:37: 错误:‘struct redisServer’没有名为‘logfile’的成员
open(server.logfile, O_APPEND|O_CREAT|O_WRONLY, 0644);
^
server.c: 在函数‘hasActiveChildProcess’中:
server.c:1475:18: 错误:‘struct redisServer’没有名为‘rdb_child_pid’的成员
return server.rdb_child_pid != -1 ||
^
server.c:1476:18: 错误:‘struct redisServer’没有名为‘aof_child_pid’的成员
server.aof_child_pid != -1 ||
^
server.c:1477:18: 错误:‘struct redisServer’没有名为‘module_child_pid’的成员
server.module_child_pid != -1;
^
server.c: 在函数‘allPersistenceDisabled’中:
server.c:1483:18: 错误:‘struct redisServer’没有名为‘saveparamslen’的成员
return server.saveparamslen == 0 && server.aof_state == AOF_OFF;
^
server.c:1483:47: 错误:‘struct redisServer’没有名为‘aof_state’的成员
return server.saveparamslen == 0 && server.aof_state == AOF_OFF;
^
server.c: 在函数‘trackInstantaneousMetric’中:
server.c:1490:36: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
long long t = mstime() - server.inst_metric[metric].last_sample_time;
^
server.c:1492:27: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].last_sample_count;
^
server.c:1497:11: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].samples[server.inst_metric[metric].idx] =
^
server.c:1497:46: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].samples[server.inst_metric[metric].idx] =
^
server.c:1499:11: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].idx++;
^
server.c:1500:11: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].idx %= STATS_METRIC_SAMPLES;
^
server.c:1501:11: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].last_sample_time = mstime();
^
server.c:1502:11: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[metric].last_sample_count = current_reading;
^
server.c:1489:35: 警告:形参‘metric’被设定但未被使用 [-Wunused-but-set-parameter]
void trackInstantaneousMetric(int metric, long long current_reading)
^
server.c: 在函数‘getInstantaneousMetric’中:
server.c:1511:22: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
sum += server.inst_metric[metric].samples[j];
^
server.c:1506:38: 警告:形参‘metric’被设定但未被使用 [-Wunused-but-set-parameter]
long long getInstantaneousMetric(int metric)
^
server.c: 在函数‘clientsCronResizeQueryBuffer’中:
server.c:1521:29: 错误:‘struct redisServer’没有名为‘unixtime’的成员
time_t idletime = server.unixtime - c->lastinteraction;
^
server.c: 在函数‘clientsCronTrackExpansiveClients’中:
server.c:1578:19: 错误:‘struct redisServer’没有名为‘unixtime’的成员
int i = server.unixtime % CLIENTS_PEAK_MEM_USAGE_SLOTS;
^
server.c: 在函数‘clientsCronTrackClientsMemUsage’中:
server.c:1617:11: 错误:‘struct redisServer’没有名为‘stat_clients_type_memory’的成员
server.stat_clients_type_memory[c->client_cron_last_memory_type] -=
^
server.c:1619:11: 错误:‘struct redisServer’没有名为‘stat_clients_type_memory’的成员
server.stat_clients_type_memory[type] += mem;
^
In file included from server.h:63:0,
from server.c:30:
server.c: 在函数‘clientsCron’中:
server.c:1659:39: 错误:‘struct redisServer’没有名为‘clients’的成员
int numclients = listLength(server.clients);
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:1670:28: 错误:‘struct redisServer’没有名为‘clients’的成员
while(listLength(server.clients) && iterations--)
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:1677:36: 错误:‘struct redisServer’没有名为‘clients’的成员
listRotateTailToHead(server.clients);
^
In file included from server.h:63:0,
from server.c:30:
server.c:1678:32: 错误:‘struct redisServer’没有名为‘clients’的成员
head = listFirst(server.clients);
^
adlist.h:58:24: 附注:in definition of macro ‘listFirst’
#define listFirst(l) ((l)->head)
^
server.c: 在函数‘databasesCron’中:
server.c:1696:15: 错误:‘struct redisServer’没有名为‘active_expire_enabled’的成员
if (server.active_expire_enabled)
^
server.c:1720:34: 错误:‘struct redisServer’没有名为‘dbnum’的成员
if (dbs_per_call > server.dbnum) dbs_per_call = server.dbnum;
^
server.c:1720:63: 错误:‘struct redisServer’没有名为‘dbnum’的成员
if (dbs_per_call > server.dbnum) dbs_per_call = server.dbnum;
^
server.c:1724:51: 错误:‘struct redisServer’没有名为‘dbnum’的成员
tryResizeHashTables(resize_db % server.dbnum);
^
server.c:1729:19: 错误:‘struct redisServer’没有名为‘activerehashing’的成员
if (server.activerehashing)
^
server.c:1739:40: 错误:‘struct redisServer’没有名为‘dbnum’的成员
rehash_db %= server.dbnum;
^
server.c: 在函数‘updateCachedTime’中:
server.c:1757:11: 错误:‘struct redisServer’没有名为‘ustime’的成员
server.ustime = ustime();
^
server.c:1758:11: 错误:‘struct redisServer’没有名为‘mstime’的成员
server.mstime = server.ustime / 1000;
^
server.c:1758:27: 错误:‘struct redisServer’没有名为‘ustime’的成员
server.mstime = server.ustime / 1000;
^
server.c:1759:11: 错误:‘struct redisServer’没有名为‘unixtime’的成员
server.unixtime = server.mstime / 1000;
^
server.c:1759:29: 错误:‘struct redisServer’没有名为‘mstime’的成员
server.unixtime = server.mstime / 1000;
^
server.c:1768:27: 错误:‘struct redisServer’没有名为‘unixtime’的成员
time_t ut = server.unixtime;
^
server.c:1770:15: 错误:‘struct redisServer’没有名为‘daylight_active’的成员
server.daylight_active = tm.tm_isdst;
^
server.c: 在函数‘checkChildrenDone’中:
server.c:1783:15: 错误:‘struct redisServer’没有名为‘rdb_child_pid’的成员
if (server.rdb_child_pid != -1 && server.rdb_pipe_conns)
^
server.c:1783:45: 错误:‘struct redisServer’没有名为‘rdb_pipe_conns’的成员
if (server.rdb_child_pid != -1 && server.rdb_pipe_conns)
^
server.c:1806:29: 错误:‘struct redisServer’没有名为‘rdb_child_pid’的成员
(int) server.rdb_child_pid,
^
server.c:1807:29: 错误:‘struct redisServer’没有名为‘aof_child_pid’的成员
(int) server.aof_child_pid,
^
server.c:1808:29: 错误:‘struct redisServer’没有名为‘module_child_pid’的成员
(int) server.module_child_pid);
^
server.c:1809:33: 错误:‘struct redisServer’没有名为‘rdb_child_pid’的成员
else if (pid == server.rdb_child_pid)
^
server.c:1812:33: 错误:‘struct redisServer’没有名为‘aof_child_pid’的成员
else if (pid == server.aof_child_pid)
^
server.c:1815:33: 错误:‘struct redisServer’没有名为‘module_child_pid’的成员
else if (pid == server.module_child_pid)
^
server.c: 在函数‘serverCron’中:
server.c:1857:15: 错误:‘struct redisServer’没有名为‘watchdog_period’的成员
if (server.watchdog_period) watchdogScheduleSignal(server.watchdog_period);
^
server.c:1857:62: 错误:‘struct redisServer’没有名为‘watchdog_period’的成员
if (server.watchdog_period) watchdogScheduleSignal(server.watchdog_period);
^
In file included from server.h:63:0,
from server.c:30:
server.c:1866:33: 错误:‘struct redisServer’没有名为‘clients’的成员
while (listLength(server.clients) / server.hz >
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:1877:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(100)
^
server.c:1878:61: 错误:‘struct redisServer’没有名为‘stat_numcommands’的成员
trackInstantaneousMetric(STATS_METRIC_COMMAND,server.stat_numcommands);
^
server.c:1880:23: 错误:‘struct redisServer’没有名为‘stat_net_input_bytes’的成员
server.stat_net_input_bytes);
^
server.c:1882:23: 错误:‘struct redisServer’没有名为‘stat_net_output_bytes’的成员
server.stat_net_output_bytes);
^
server.c:1896:11: 错误:‘struct redisServer’没有名为‘lruclock’的成员
server.lruclock = getLRUClock();
^
server.c:1899:39: 错误:‘struct redisServer’没有名为‘stat_peak_memory’的成员
if (zmalloc_used_memory() > server.stat_peak_memory)
^
server.c:1900:15: 错误:‘struct redisServer’没有名为‘stat_peak_memory’的成员
server.stat_peak_memory = zmalloc_used_memory();
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:1902:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(100)
^
server.c:1906:15: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.process_rss = zmalloc_get_rss();
^
server.c:1907:15: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.zmalloc_used = zmalloc_used_memory();
^
server.c:1912:43: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
zmalloc_get_allocator_info(&server.cron_malloc_stats.allocator_allocated,
^
server.c:1913:43: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
&server.cron_malloc_stats.allocator_active,
^
server.c:1914:43: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
&server.cron_malloc_stats.allocator_resident);
^
server.c:1917:20: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
if (!server.cron_malloc_stats.allocator_resident)
^
server.c:1921:46: 错误:‘struct redisServer’没有名为‘lua’的成员
size_t lua_memory = lua_gc(server.lua,LUA_GCCOUNT,0)*1024LL;
^
server.c:1922:19: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.allocator_resident = server.cron_malloc_stats.process_rss - lua_memory;
^
server.c:1922:65: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.allocator_resident = server.cron_malloc_stats.process_rss - lua_memory;
^
server.c:1924:20: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
if (!server.cron_malloc_stats.allocator_active)
^
server.c:1925:19: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.allocator_active = server.cron_malloc_stats.allocator_resident;
^
server.c:1925:63: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.allocator_active = server.cron_malloc_stats.allocator_resident;
^
server.c:1926:20: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
if (!server.cron_malloc_stats.allocator_allocated)
^
server.c:1927:19: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.allocator_allocated = server.cron_malloc_stats.zmalloc_used;
^
server.c:1927:66: 错误:‘struct redisServer’没有名为‘cron_malloc_stats’的成员
server.cron_malloc_stats.allocator_allocated = server.cron_malloc_stats.zmalloc_used;
^
server.c:1932:15: 错误:‘struct redisServer’没有名为‘shutdown_asap’的成员
if (server.shutdown_asap)
^
server.c:1935:15: 错误:‘struct redisServer’没有名为‘shutdown_asap’的成员
server.shutdown_asap = 0;
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:1939:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(5000)
^
server.c:1940:31: 错误:‘struct redisServer’没有名为‘dbnum’的成员
for (j = 0; j < server.dbnum; j++)
^
server.c:1954:16: 错误:‘struct redisServer’没有名为‘sentinel_mode’的成员
if (!server.sentinel_mode)
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:1955:9: 附注:in expansion of macro ‘run_with_period’
run_with_period(5000)
^
In file included from server.h:63:0,
from server.c:30:
server.c:1958:34: 错误:‘struct redisServer’没有名为‘clients’的成员
listLength(server.clients)-listLength(server.slaves),
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:1958:61: 错误:‘struct redisServer’没有名为‘slaves’的成员
listLength(server.clients)-listLength(server.slaves),
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:1959:34: 错误:‘struct redisServer’没有名为‘slaves’的成员
listLength(server.slaves),
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:1973:15: 错误:‘struct redisServer’没有名为‘aof_rewrite_scheduled’的成员
server.aof_rewrite_scheduled)
^
server.c:1985:31: 错误:‘struct redisServer’没有名为‘saveparamslen’的成员
for (j = 0; j < server.saveparamslen; j++)
^
server.c:1986:42: 错误:‘struct redisServer’没有名为‘saveparams’的成员
struct saveparam *sp = server.saveparams+j;
^
server.c:1992:23: 错误:‘struct redisServer’没有名为‘dirty’的成员
if (server.dirty >= sp->changes &&
^
server.c:1993:23: 错误:‘struct redisServer’没有名为‘unixtime’的成员
server.unixtime-server.lastsave > sp->seconds &&
^
server.c:1993:39: 错误:‘struct redisServer’没有名为‘lastsave’的成员
server.unixtime-server.lastsave > sp->seconds &&
^
server.c:1994:24: 错误:‘struct redisServer’没有名为‘unixtime’的成员
(server.unixtime-server.lastbgsave_try >
^
server.c:1994:40: 错误:‘struct redisServer’没有名为‘lastbgsave_try’的成员
(server.unixtime-server.lastbgsave_try >
^
server.c:1996:24: 错误:‘struct redisServer’没有名为‘lastbgsave_status’的成员
server.lastbgsave_status == C_OK))
^
server.c:2002:41: 错误:‘struct redisServer’没有名为‘rdb_filename’的成员
rdbSaveBackground(server.rdb_filename,rsiptr);
^
server.c:2008:19: 错误:‘struct redisServer’没有名为‘aof_state’的成员
if (server.aof_state == AOF_ON &&
^
server.c:2010:19: 错误:‘struct redisServer’没有名为‘aof_rewrite_perc’的成员
server.aof_rewrite_perc &&
^
server.c:2011:19: 错误:‘struct redisServer’没有名为‘aof_current_size’的成员
server.aof_current_size > server.aof_rewrite_min_size)
^
server.c:2011:45: 错误:‘struct redisServer’没有名为‘aof_rewrite_min_size’的成员
server.aof_current_size > server.aof_rewrite_min_size)
^
server.c:2013:36: 错误:‘struct redisServer’没有名为‘aof_rewrite_base_size’的成员
long long base = server.aof_rewrite_base_size ?
^
server.c:2014:23: 错误:‘struct redisServer’没有名为‘aof_rewrite_base_size’的成员
server.aof_rewrite_base_size : 1;
^
server.c:2015:39: 错误:‘struct redisServer’没有名为‘aof_current_size’的成员
long long growth = (server.aof_current_size*100/base) - 100;
^
server.c:2016:33: 错误:‘struct redisServer’没有名为‘aof_rewrite_perc’的成员
if (growth >= server.aof_rewrite_perc)
^
server.c:2026:15: 错误:‘struct redisServer’没有名为‘aof_flush_postponed_start’的成员
if (server.aof_flush_postponed_start) flushAppendOnlyFile(0);
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:2032:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(1000)
^
server.c:2033:19: 错误:‘struct redisServer’没有名为‘aof_last_write_status’的成员
if (server.aof_last_write_status == C_ERR)
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:2042:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(1000) replicationCron();
^
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:2045:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(100)
^
server.c:2046:19: 错误:‘struct redisServer’没有名为‘cluster_enabled’的成员
if (server.cluster_enabled) clusterCron();
^
server.c:2050:15: 错误:‘struct redisServer’没有名为‘sentinel_mode’的成员
if (server.sentinel_mode) sentinelTimer();
^
In file included from server.c:30:0:
server.h:453:71: 错误:‘struct redisServer’没有名为‘cronloops’的成员
#define run_with_period(_ms_) if ((_ms_ <= 1000/server.hz) || !(server.cronloops%((_ms_)/(1000/server.hz))))
^
server.c:2053:5: 附注:in expansion of macro ‘run_with_period’
run_with_period(1000)
^
server.c:2064:15: 错误:‘struct redisServer’没有名为‘tracking_clients’的成员
if (server.tracking_clients) trackingLimitUsedSlots();
^
server.c:2074:15: 错误:‘struct redisServer’没有名为‘rdb_bgsave_scheduled’的成员
server.rdb_bgsave_scheduled &&
^
server.c:2075:16: 错误:‘struct redisServer’没有名为‘unixtime’的成员
(server.unixtime-server.lastbgsave_try > CONFIG_BGSAVE_RETRY_DELAY ||
^
server.c:2075:32: 错误:‘struct redisServer’没有名为‘lastbgsave_try’的成员
(server.unixtime-server.lastbgsave_try > CONFIG_BGSAVE_RETRY_DELAY ||
^
server.c:2076:16: 错误:‘struct redisServer’没有名为‘lastbgsave_status’的成员
server.lastbgsave_status == C_OK))
^
server.c:2080:37: 错误:‘struct redisServer’没有名为‘rdb_filename’的成员
if (rdbSaveBackground(server.rdb_filename,rsiptr) == C_OK)
^
server.c:2081:19: 错误:‘struct redisServer’没有名为‘rdb_bgsave_scheduled’的成员
server.rdb_bgsave_scheduled = 0;
^
server.c:2090:11: 错误:‘struct redisServer’没有名为‘cronloops’的成员
server.cronloops++;
^
server.c: 在函数‘beforeSleep’中:
server.c:2114:30: 错误:‘struct redisServer’没有名为‘stat_peak_memory’的成员
if (zmalloc_used > server.stat_peak_memory)
^
server.c:2115:15: 错误:‘struct redisServer’没有名为‘stat_peak_memory’的成员
server.stat_peak_memory = zmalloc_used;
^
server.c:2128:15: 错误:‘struct redisServer’没有名为‘events_processed_while_blocked’的成员
server.events_processed_while_blocked += processed;
^
server.c:2148:15: 错误:‘struct redisServer’没有名为‘cluster_enabled’的成员
if (server.cluster_enabled) clusterBeforeSleep();
^
server.c:2152:15: 错误:‘struct redisServer’没有名为‘active_expire_enabled’的成员
if (server.active_expire_enabled && server.masterhost == NULL)
^
server.c:2152:47: 错误:‘struct redisServer’没有名为‘masterhost’的成员
if (server.active_expire_enabled && server.masterhost == NULL)
^
In file included from server.h:63:0,
from server.c:30:
server.c:2157:26: 错误:‘struct redisServer’没有名为‘clients_waiting_acks’的成员
if (listLength(server.clients_waiting_acks))
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:2165:26: 错误:‘struct redisServer’没有名为‘unblocked_clients’的成员
if (listLength(server.unblocked_clients))
^
adlist.h:57:25: 附注:in definition of macro ‘listLength’
#define listLength(l) ((l)->len)
^
server.c:2173:15: 错误:‘struct redisServer’没有名为‘get_ack_from_slaves’的成员
if (server.get_ack_from_slaves)
^
server.c:2179:37: 错误:‘struct redisServer’没有名为‘slaves’的成员
replicationFeedSlaves(server.slaves, server.slaveseldb, argv, 3);
^
server.c:2179:52: 错误:‘struct redisServer’没有名为‘slaveseldb’的成员
replicationFeedSlaves(server.slaves, server.slaveseldb, argv, 3);
^
server.c:2183:15: 错误:‘struct redisServer’没有名为‘get_ack_from_slaves’的成员
server.get_ack_from_slaves = 0;
^
server.c: 在函数‘initServerConfig’中:
server.c:2342:29: 错误:‘struct redisServer’没有名为‘runid’的成员
getRandomHexChars(server.runid,CONFIG_RUN_ID_SIZE);
^
server.c:2343:11: 错误:‘struct redisServer’没有名为‘runid’的成员
server.runid[CONFIG_RUN_ID_SIZE] = '\\0';
^
server.c:2350:11: 错误:‘struct redisServer’没有名为‘timezone’的成员
server.timezone = getTimeZone(); /* Initialized by tzset(). */
^
server.c:2353:11: 错误:‘struct redisServer’没有名为‘arch_bits’的成员
server.arch_bits = (sizeof(long) == 8) ? 64 : 32;
^
server.c:2354:11: 错误:‘struct redisServer’没有名为‘bindaddr_count’的成员
server.bindaddr_count = 0;
^
server.c:2355:11: 错误:‘struct redisServer’没有名为‘unixsocketperm’的成员
server.unixsocketperm = CONFIG_DEFAULT_UNIX_SOCKET_PERM;
^
server.c:2356:11: 错误:‘struct redisServer’没有名为‘ipfd_count’的成员
server.ipfd_count = 0;
^
server.c:2357:11: 错误:‘struct redisServer’没有名为‘tlsfd_count’的成员
server.tlsfd_count = 0;
^
server.c:2358:11: 错误:‘struct redisServer’没有名为‘sofd’的成员
server.sofd = -1;
^
server.c:2359:11: 错误:‘struct redisServer’没有名为‘active_expire_enabled’的成员
server.active_expire_enabled = 1;
^
server.c:2360:11: 错误:‘struct redisServer’没有名为‘client_max_querybuf_len’的成员
server.client_max_querybuf_len = PROTO_MAX_QUERYBUF_LEN;
^
server.c:2361:11: 错误:‘struct redisServer’没有名为‘saveparams’的成员
server.saveparams = NULL;
^
server.c:2362:11: 错误:‘struct redisServer’没有名为‘loading’的成员
server.loading = 0;
^
server.c:2363:11: 错误:‘struct redisServer’没有名为‘logfile’的成员
server.logfile = zstrdup(CONFIG_DEFAULT_LOGFILE);
^
server.c:2364:11: 错误:‘struct redisServer’没有名为‘aof_state’的成员
server.aof_state = AOF_OFF;
^
server.c:2365:11: 错误:‘struct redisServer’没有名为‘aof_rewrite_base_size’的成员
server.aof_rewrite_base_size = 0;
^
server.c:2366:11: 错误:‘struct redisServer’没有名为‘aof_rewrite_scheduled’的成员
server.aof_rewrite_scheduled = 0;
^
server.c:2367:11: 错误:‘struct redisServer’没有名为‘aof_flush_sleep’的成员
server.aof_flush_sleep = 0;
^
server.c:2368:11: 错误:‘struct redisServer’没有名为‘aof_last_fsync’的成员
server.aof_last_fsync = time(NULL);
^
server.c:2369:11: 错误:‘struct redisServer’没有名为‘aof_rewrite_time_last’的成员
server.aof_rewrite_time_last = -1;
^
server.c:2370:11: 错误:‘struct redisServer’没有名为‘aof_rewrite_time_start’的成员
server.aof_rewrite_time_start = -1;
^
server.c:2371:11: 错误:‘struct redisServer’没有名为‘aof_lastbgrewrite_status’的成员
server.aof_lastbgrewrite_status = C_OK;
^
server.c:2372:11: 错误:‘struct redisServer’没有名为‘aof_delayed_fsync’的成员
server.aof_delayed_fsync = 0;
^
server.c:2373:11: 错误:‘struct redisServer’没有名为‘aof_fd’的成员
server.aof_fd = -1;
^
server.c:2374:11: 错误:‘struct redisServer’没有名为‘aof_selected_db’的成员
server.aof_selected_db = -1; /* Make sure the first time will not match */
^
server.c:2375:11: 错误:‘struct redisServer’没有名为‘aof_flush_postponed_start’的成员
server.aof_flush_postponed_start = 0;
^
server.c:2376:11: 错误:‘struct redisServer’没有名为‘pidfile’的成员
server.pidfile = NULL;
^
server.c:2377:11: 错误:‘struct redisServer’没有名为‘active_defrag_running’的成员
server.active_defrag_running = 0;
^
server.c:2378:11: 错误:‘struct redisServer’没有名为‘notify_keyspace_events’的成员
server.notify_keyspace_events = 0;
^
server.c:2379:11: 错误:‘struct redisServer’没有名为‘blocked_clients’的成员
server.blocked_clients = 0;
^
server.c:2380:18: 错误:‘struct redisServer’没有名为‘blocked_clients_by_type’的成员
memset(server.blocked_clients_by_type,0,
^
server.c:2381:25: 错误:‘struct redisServer’没有名为‘blocked_clients_by_type’的成员
sizeof(server.blocked_clients_by_type));
^
server.c:2382:11: 错误:‘struct redisServer’没有名为‘shutdown_asap’的成员
server.shutdown_asap = 0;
^
server.c:2383:11: 错误:‘struct redisServer’没有名为‘cluster_configfile’的成员
server.cluster_configfile = zstrdup(CONFIG_DEFAULT_CLUSTER_CONFIG_FILE);
^
server.c:2384:11: 错误:‘struct redisServer’没有名为‘cluster_module_flags’的成员
server.cluster_module_flags = CLUSTER_MODULE_FLAG_NONE;
^
server.c:2385:11: 错误:‘struct redisServer’没有名为‘migrate_cached_sockets’的成员
server.migrate_cached_sockets = dictCreate(&migrateCacheDictType,NULL);
^
server.c:2386:11: 错误:‘struct redisServer’没有名为‘next_client_id’的成员
server.next_client_id = 1; /* Client IDs, start from 1 .*/
^
server.c:2387:11: 错误:‘struct redisServer’没有名为‘loading_process_events_interval_bytes’的成员
server.loading_process_events_interval_bytes = (1024*1024*2);
^
server.c:2389:11: 错误:‘struct redisServer’没有名为‘lruclock’的成员
server.lruclock = getLRUClock();
^
server.c:2397:11: 错误:‘struct redisServer’没有名为‘masterauth’的成员
server.masterauth = NULL;
^
server.c:2398:11: 错误:‘struct redisServer’没有名为‘masterhost’的成员
server.masterhost = NULL;
^
server.c:2399:11: 错误:‘struct redisServer’没有名为‘masterport’的成员
server.masterport = 6379;
^
server.c:2400:11: 错误:‘struct redisServer’没有名为‘master’的成员
server.master = NULL;
^
server.c:2401:11: 错误:‘struct redisServer’没有名为‘cached_master’的成员
server.cached_master = NULL;
^
server.c:2402:11: 错误:‘struct redisServer’没有名为‘master_initial_offset’的成员
server.master_initial_offset = -1;
^
server.c:2403:11: 错误:‘struct redisServer’没有名为‘repl_state’的成员
server.repl_state = REPL_STATE_NONE;
^
server.c:2404:11: 错误:‘struct redisServer’没有名为‘repl_transfer_tmpfile’的成员
server.repl_transfer_tmpfile = NULL;
^
server.c:2405:11: 错误:‘struct redisServer’没有名为‘repl_transfer_fd’的成员
server.repl_transfer_fd = -1;
^
server.c:2406:11: 错误:‘struct redisServer’没有名为‘repl_transfer_s’的成员
server.repl_transfer_s = NULL;
^
server.c:2407:11: 错误:‘struct redisServer’没有名为‘repl_syncio_timeout’的成员
server.repl_syncio_timeout = CONFIG_REPL_SYNCIO_TIMEOUT;
^
server.c:2408:11: 错误:‘struct redisServer’没有名为‘repl_down_since’的成员
server.repl_down_since = 0; /* Never connected, repl is down since EVER. */
^
server.c:2409:11: 错误:‘struct redisServer’没有名为‘master_repl_offset’的成员
server.master_repl_offset = 0;
^
server.c:2412:11: 错误:‘struct redisServer’没有名为‘repl_backlog’的成员
server.repl_backlog = NULL;
^
server.c:2413:11: 错误:‘struct redisServer’没有名为‘repl_backlog_histlen’的成员
server.repl_backlog_histlen = 0;
^
server.c:2414:11: 错误:‘struct redisServer’没有名为‘repl_backlog_idx’的成员
server.repl_backlog_idx = 0;
^
server.c:2415:11: 错误:‘struct redisServer’没有名为‘repl_backlog_off’的成员
server.repl_backlog_off = 0;
^
server.c:2416:11: 错误:‘struct redisServer’没有名为‘repl_no_slaves_since’的成员
server.repl_no_slaves_since = time(NULL);
^
server.c:2420:15: 错误:‘struct redisServer’没有名为‘client_obuf_limits’的成员
server.client_obuf_limits[j] = clientBufferLimitsDefaults[j];
^
server.c:2424:15: 错误:‘struct redisServer’没有名为‘oom_score_adj_values’的成员
server.oom_score_adj_values[j] = configOOMScoreAdjValuesDefaults[j];
^
server.c:2438:11: 错误:‘struct redisServer’没有名为‘delCommand’的成员
server.delCommand = lookupCommandByCString("del");
^
server.c:2439:11: 错误:‘struct redisServer’没有名为‘multiCommand’的成员
server.multiCommand = lookupCommandByCString("multi");
^
server.c:2440:11: 错误:‘struct redisServer’没有名为‘lpushCommand’的成员
server.lpushCommand = lookupCommandByCString("lpush");
^
server.c:2441:11: 错误:‘struct redisServer’没有名为‘lpopCommand’的成员
server.lpopCommand = lookupCommandByCString("lpop");
^
server.c:2442:11: 错误:‘struct redisServer’没有名为‘rpopCommand’的成员
server.rpopCommand = lookupCommandByCString("rpop");
^
server.c:2443:11: 错误:‘struct redisServer’没有名为‘zpopminCommand’的成员
server.zpopminCommand = lookupCommandByCString("zpopmin");
^
server.c:2444:11: 错误:‘struct redisServer’没有名为‘zpopmaxCommand’的成员
server.zpopmaxCommand = lookupCommandByCString("zpopmax");
^
server.c:2445:11: 错误:‘struct redisServer’没有名为‘sremCommand’的成员
server.sremCommand = lookupCommandByCString("srem");
^
server.c:2446:11: 错误:‘struct redisServer’没有名为‘execCommand’的成员
server.execCommand = lookupCommandByCString("exec");
^
server.c:2447:11: 错误:‘struct redisServer’没有名为‘expireCommand’的成员
server.expireCommand = lookupCommandByCString("expire");
^
server.c:2448:11: 错误:‘struct redisServer’没有名为‘pexpireCommand’的成员
server.pexpireCommand = lookupCommandByCString("pexpire");
^
server.c:2449:11: 错误:‘struct redisServer’没有名为‘xclaimCommand’的成员
server.xclaimCommand = lookupCommandByCString("xclaim");
^
server.c:2450:11: 错误:‘struct redisServer’没有名为‘xgroupCommand’的成员
server.xgroupCommand = lookupCommandByCString("xgroup");
^
server.c:2451:11: 错误:‘struct redisServer’没有名为‘rpoplpushCommand’的成员
server.rpoplpushCommand = lookupCommandByCString("rpoplpush");
^
server.c:2454:11: 错误:‘struct redisServer’没有名为‘assert_failed’的成员
server.assert_failed = "<no assertion failed>";
^
server.c:2455:11: 错误:‘struct redisServer’没有名为‘assert_file’的成员
server.assert_file = "<no file>";
^
server.c:2456:11: 错误:‘struct redisServer’没有名为‘assert_line’的成员
server.assert_line = 0;
^
server.c:2457:11: 错误:‘struct redisServer’没有名为‘bug_report_start’的成员
server.bug_report_start = 0;
^
server.c:2458:11: 错误:‘struct redisServer’没有名为‘watchdog_period’的成员
server.watchdog_period = 0;
^
server.c:2464:11: 错误:‘struct redisServer’没有名为‘lua_always_replicate_commands’的成员
server.lua_always_replicate_commands = 1;
^
server.c: 在函数‘restartServer’中:
server.c:2517:32: 错误:‘struct redisServer’没有名为‘maxclients’的成员
for (j = 3; j < (int)server.maxclients + 1024; j++)
^
server.c: 在函数‘readOOMScoreAdj’中:
server.c:2542:15: 错误:‘struct redisServer’没有名为‘oom_score_adj_base’的成员
server.oom_score_adj_base = atoi(buf);
^
server.c: 在函数‘setOOMScoreAdj’中:
server.c:2556:16: 错误:‘struct redisServer’没有名为‘oom_score_adj’的成员
if (!server.oom_score_adj) return C_OK;
^
server.c:2558:32: 错误:‘struct redisServer’没有名为‘masterhost’的成员
process_class = (server.masterhost ? CONFIG_OOM_REPLICA : CONFIG_OOM_MASTER);
^
server.c:2567:17: 错误:‘struct redisServer’没有名为‘oom_score_adj_base’的成员
val = server.oom_score_adj_base + server.oom_score_adj_values[process_class];
^
server.c:2567:45: 错误:‘struct redisServer’没有名为‘oom_score_adj_values’的成员
val = server.oom_score_adj_base + server.oom_score_adj_values[process_class];
^
server.c: 在函数‘adjustOpenFilesLimit’中:
server.c:2597:29: 错误:‘struct redisServer’没有名为‘maxclients’的成员
rlim_t maxfiles = server.maxclients+CONFIG_MIN_RESERVED_FDS;
^
server.c:2603:15: 错误:‘struct redisServer’没有名为‘maxclients’的成员
server.maxclients = 1024-CONFIG_MIN_RESERVED_FDS;
^
server.c:2635:53: 错误:‘struct redisServer’没有名为‘maxclients’的成员
unsigned int old_maxclients = server.maxclients;
^
server.c:2636:23: 错误:‘struct redisServer’没有名为‘maxclients’的成员
server.maxclients = bestlimit-CONFIG_MIN_RESERVED_FDS;
^
server.c:2660:59: 错误:‘struct redisServer’没有名为‘maxclients’的成员
(unsigned long long) bestlimit, server.maxclients);
^
server.c: 在函数‘checkTcpBacklogSettings’中:
server.c:2680:48: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
if (somaxconn > 0 && somaxconn < server.tcp_backlog)
^
server.c:2681:171: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
serverLog(LL_WARNING,"WARNING: The TCP backlog setting of %d cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of %d.", server.tcp_backlog, somaxconn);
^
server.c: 在函数‘listenToPort’中:
server.c:2711:15: 错误:‘struct redisServer’没有名为‘bindaddr_count’的成员
if (server.bindaddr_count == 0) server.bindaddr[0] = NULL;
^
server.c:2711:43: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
if (server.bindaddr_count == 0) server.bindaddr[0] = NULL;
^
server.c:2712:27: 错误:‘struct redisServer’没有名为‘bindaddr_count’的成员
for (j = 0; j < server.bindaddr_count || j == 0; j++)
^
server.c:2713:19: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
if (server.bindaddr[j] == NULL)
^
server.c:2717:48: 错误:‘struct redisServer’没有名为‘neterr’的成员
fds[*count] = anetTcp6Server(server.neterr,port,NULL,
^
server.c:2718:23: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
server.tcp_backlog);
^
server.c:2729:51: 错误:‘struct redisServer’没有名为‘neterr’的成员
fds[*count] = anetTcpServer(server.neterr,port,NULL,
^
server.c:2730:27: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
server.tcp_backlog);
^
In file included from /usr/include/string.h:633:0,
from server.h:40,
from server.c:30:
server.c:2743:33: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
else if (strchr(server.bindaddr[j],':'))
^
server.c:2743:33: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
else if (strchr(server.bindaddr[j],':'))
^
server.c:2743:33: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
else if (strchr(server.bindaddr[j],':'))
^
server.c:2745:48: 错误:‘struct redisServer’没有名为‘neterr’的成员
fds[*count] = anetTcp6Server(server.neterr,port,server.bindaddr[j],
^
server.c:2745:67: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
fds[*count] = anetTcp6Server(server.neterr,port,server.bindaddr[j],
^
server.c:2746:23: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
server.tcp_backlog);
^
server.c:2749:47: 错误:‘struct redisServer’没有名为‘neterr’的成员
fds[*count] = anetTcpServer(server.neterr,port,server.bindaddr[j],
^
server.c:2749:66: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
fds[*count] = anetTcpServer(server.neterr,port,server.bindaddr[j],
^
server.c:2750:23: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
server.tcp_backlog);
^
server.c:2755:23: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
server.bindaddr[j] ? server.bindaddr[j] : "*",
^
server.c:2755:44: 错误:‘struct redisServer’没有名为‘bindaddr’的成员
server.bindaddr[j] ? server.bindaddr[j] : "*",
^
server.c:2756:29: 错误:‘struct redisServer’没有名为‘neterr’的成员
port, server.neterr);
^
server.c: 在函数‘resetServerStats’中:
server.c:2775:11: 错误:‘struct redisServer’没有名为‘stat_numcommands’的成员
server.stat_numcommands = 0;
^
server.c:2776:11: 错误:‘struct redisServer’没有名为‘stat_numconnections’的成员
server.stat_numconnections = 0;
^
server.c:2777:11: 错误:‘struct redisServer’没有名为‘stat_expiredkeys’的成员
server.stat_expiredkeys = 0;
^
server.c:2778:11: 错误:‘struct redisServer’没有名为‘stat_expired_stale_perc’的成员
server.stat_expired_stale_perc = 0;
^
server.c:2779:11: 错误:‘struct redisServer’没有名为‘stat_expired_time_cap_reached_count’的成员
server.stat_expired_time_cap_reached_count = 0;
^
server.c:2780:11: 错误:‘struct redisServer’没有名为‘stat_expire_cycle_time_used’的成员
server.stat_expire_cycle_time_used = 0;
^
server.c:2781:11: 错误:‘struct redisServer’没有名为‘stat_evictedkeys’的成员
server.stat_evictedkeys = 0;
^
server.c:2782:11: 错误:‘struct redisServer’没有名为‘stat_keyspace_misses’的成员
server.stat_keyspace_misses = 0;
^
server.c:2783:11: 错误:‘struct redisServer’没有名为‘stat_keyspace_hits’的成员
server.stat_keyspace_hits = 0;
^
server.c:2784:11: 错误:‘struct redisServer’没有名为‘stat_active_defrag_hits’的成员
server.stat_active_defrag_hits = 0;
^
server.c:2785:11: 错误:‘struct redisServer’没有名为‘stat_active_defrag_misses’的成员
server.stat_active_defrag_misses = 0;
^
server.c:2786:11: 错误:‘struct redisServer’没有名为‘stat_active_defrag_key_hits’的成员
server.stat_active_defrag_key_hits = 0;
^
server.c:2787:11: 错误:‘struct redisServer’没有名为‘stat_active_defrag_key_misses’的成员
server.stat_active_defrag_key_misses = 0;
^
server.c:2788:11: 错误:‘struct redisServer’没有名为‘stat_active_defrag_scanned’的成员
server.stat_active_defrag_scanned = 0;
^
server.c:2789:11: 错误:‘struct redisServer’没有名为‘stat_fork_time’的成员
server.stat_fork_time = 0;
^
server.c:2790:11: 错误:‘struct redisServer’没有名为‘stat_fork_rate’的成员
server.stat_fork_rate = 0;
^
server.c:2791:11: 错误:‘struct redisServer’没有名为‘stat_rejected_conn’的成员
server.stat_rejected_conn = 0;
^
server.c:2792:11: 错误:‘struct redisServer’没有名为‘stat_sync_full’的成员
server.stat_sync_full = 0;
^
server.c:2793:11: 错误:‘struct redisServer’没有名为‘stat_sync_partial_ok’的成员
server.stat_sync_partial_ok = 0;
^
server.c:2794:11: 错误:‘struct redisServer’没有名为‘stat_sync_partial_err’的成员
server.stat_sync_partial_err = 0;
^
server.c:2795:11: 错误:‘struct redisServer’没有名为‘stat_io_reads_processed’的成员
server.stat_io_reads_processed = 0;
^
server.c:2796:11: 错误:‘struct redisServer’没有名为‘stat_total_reads_processed’的成员
server.stat_total_reads_processed = 0;
^
server.c:2797:11: 错误:‘struct redisServer’没有名为‘stat_io_writes_processed’的成员
server.stat_io_writes_processed = 0;
^
server.c:2798:11: 错误:‘struct redisServer’没有名为‘stat_total_writes_processed’的成员
server.stat_total_writes_processed = 0;
^
server.c:2800:15: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[j].idx = 0;
^
server.c:2801:15: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[j].last_sample_time = mstime();
^
server.c:2802:15: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
server.inst_metric[j].last_sample_count = 0;
^
server.c:2803:22: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
memset(server.inst_metric[j].samples,0,
^
server.c:2804:26: 错误:‘struct redisServer’没有名为‘inst_metric’的成员
sizeof(server.inst_metric[j].samples));
^
server.c:2806:11: 错误:‘struct redisServer’没有名为‘stat_net_input_bytes’的成员
server.stat_net_input_bytes = 0;
^
server.c:2807:11: 错误:‘struct redisServer’没有名为‘stat_net_output_bytes’的成员
server.stat_net_output_bytes = 0;
^
server.c:2808:11: 错误:‘struct redisServer’没有名为‘stat_unexpected_error_replies’的成员
server.stat_unexpected_error_replies = 0;
^
server.c:2809:11: 错误:‘struct redisServer’没有名为‘aof_delayed_fsync’的成员
server.aof_delayed_fsync = 0;
^
server.c: 在函数‘initServer’中:
server.c:2828:15: 错误:‘struct redisServer’没有名为‘syslog_enabled’的成员
if (server.syslog_enabled)
^
server.c:2829:23: 错误:‘struct redisServer’没有名为‘syslog_ident’的成员
openlog(server.syslog_ident, LOG_PID | LOG_NDELAY | LOG_NOWAIT,
^
server.c:2830:19: 错误:‘struct redisServer’没有名为‘syslog_facility’的成员
server.syslog_facility);
^
server.c:2834:11: 错误:‘struct redisServer’没有名为‘aof_state’的成员
server.aof_state = server.aof_enabled ? AOF_ON : AOF_OFF;
^
server.c:2834:30: 错误:‘struct redisServer’没有名为‘aof_enabled’的成员
server.aof_state = server.aof_enabled ? AOF_ON : AOF_OFF;
^
server.c:2839:11: 错误:‘struct redisServer’没有名为‘current_client’的成员
server.current_client = NULL;
^
server.c:2840:11: 错误:‘struct redisServer’没有名为‘fixed_time_expire’的成员
server.fixed_time_expire = 0;
^
server.c:2841:11: 错误:‘struct redisServer’没有名为‘clients’的成员
server.clients = listCreate();
^
server.c:2842:11: 错误:‘struct redisServer’没有名为‘clients_index’的成员
server.clients_index = raxNew();
^
server.c:2843:11: 错误:‘struct redisServer’没有名为‘clients_to_close’的成员
server.clients_to_close = listCreate();
^
server.c:2844:11: 错误:‘struct redisServer’没有名为‘slaves’的成员
server.slaves = listCreate();
^
server.c:2845:11: 错误:‘struct redisServer’没有名为‘monitors’的成员
server.monitors = listCreate();
^
server.c:2846:11: 错误:‘struct redisServer’没有名为‘clients_pending_write’的成员
server.clients_pending_write = listCreate();
^
server.c:2847:11: 错误:‘struct redisServer’没有名为‘clients_pending_read’的成员
server.clients_pending_read = listCreate();
^
server.c:2848:11: 错误:‘struct redisServer’没有名为‘clients_timeout_table’的成员
server.clients_timeout_table = raxNew();
^
server.c:2849:11: 错误:‘struct redisServer’没有名为‘slaveseldb’的成员
server.slaveseldb = -1; /* Force to emit the first SELECT command. */
^
server.c:2850:11: 错误:‘struct redisServer’没有名为‘unblocked_clients’的成员
server.unblocked_clients = listCreate();
^
server.c:2851:11: 错误:‘struct redisServer’没有名为‘ready_keys’的成员
server.ready_keys = listCreate();
^
server.c:2852:11: 错误:‘struct redisServer’没有名为‘clients_waiting_acks’的成员
server.clients_waiting_acks = listCreate();
^
server.c:2853:11: 错误:‘struct redisServer’没有名为‘get_ack_from_slaves’的成员
server.get_ack_from_slaves = 0;
^
server.c:2854:11: 错误:‘struct redisServer’没有名为‘clients_paused’的成员
server.clients_paused = 0;
^
server.c:2855:11: 错误:‘struct redisServer’没有名为‘events_processed_while_blocked’的成员
server.events_processed_while_blocked = 0;
^
server.c:2856:11: 错误:‘struct redisServer’没有名为‘system_memory_size’的成员
server.system_memory_size = zmalloc_get_memory_size();
^
server.c:2858:16: 错误:‘struct redisServer’没有名为‘tls_port’的成员
if ((server.tls_port || server.tls_replication || server.tls_cluster)
^
server.c:2858:35: 错误:‘struct redisServer’没有名为‘tls_replication’的成员
if ((server.tls_port || server.tls_replication || server.tls_cluster)
^
server.c:2858:61: 错误:‘struct redisServer’没有名为‘tls_cluster’的成员
if ((server.tls_port || server.tls_replication || server.tls_cluster)
^
server.c:2859:40: 错误:‘struct redisServer’没有名为‘tls_ctx_config’的成员
&& tlsConfigure(&server.tls_ctx_config) == C_ERR)
^
server.c:2866:41: 错误:‘struct redisServer’没有名为‘maxclients’的成员
server.el = aeCreateEventLoop(server.maxclients+CONFIG_FDSET_INCR);
^
server.c:2873:47: 错误:‘struct redisServer’没有名为‘dbnum’的成员
server.db = zmalloc(sizeof(redisDb)*server.dbnum);
^
server.c:2876:15: 错误:‘struct redisServer’没有名为‘port’的成员
if (server.port != 0 &&
^
server.c:2877:28: 错误:‘struct redisServer’没有名为‘port’的成员
listenToPort(server.port,server.ipfd,&server.ipfd_count) == C_ERR)
^
server.c:2877:40: 错误:‘struct redisServer’没有名为‘ipfd’的成员
listenToPort(server.port,server.ipfd,&server.ipfd_count) == C_ERR)
^
server.c:2877:53: 错误:‘struct redisServer’没有名为‘ipfd_count’的成员
listenToPort(server.port,server.ipfd,&server.ipfd_count) == C_ERR)
^
server.c:2879:15: 错误:‘struct redisServer’没有名为‘tls_port’的成员
if (server.tls_port != 0 &&
^
server.c:2880:28: 错误:‘struct redisServer’没有名为‘tls_port’的成员
listenToPort(server.tls_port,server.tlsfd,&server.tlsfd_count) == C_ERR)
^
server.c:2880:44: 错误:‘struct redisServer’没有名为‘tlsfd’的成员
listenToPort(server.tls_port,server.tlsfd,&server.tlsfd_count) == C_ERR)
^
server.c:2880:58: 错误:‘struct redisServer’没有名为‘tlsfd_count’的成员
listenToPort(server.tls_port,server.tlsfd,&server.tlsfd_count) == C_ERR)
^
server.c:2884:15: 错误:‘struct redisServer’没有名为‘unixsocket’的成员
if (server.unixsocket != NULL)
^
server.c:2885:22: 错误:‘struct redisServer’没有名为‘unixsocket’的成员
unlink(server.unixsocket); /* don't care if this fails */
^
server.c:2886:15: 错误:‘struct redisServer’没有名为‘sofd’的成员
server.sofd = anetUnixServer(server.neterr,server.unixsocket,
^
server.c:2886:44: 错误:‘struct redisServer’没有名为‘neterr’的成员
server.sofd = anetUnixServer(server.neterr,server.unixsocket,
^
server.c:2886:58: 错误:‘struct redisServer’没有名为‘unixsocket’的成员
server.sofd = anetUnixServer(server.neterr,server.unixsocket,
^
server.c:2887:19: 错误:‘struct redisServer’没有名为‘unixsocketperm’的成员
server.unixsocketperm, server.tcp_backlog);
^
server.c:2887:42: 错误:‘struct redisServer’没有名为‘tcp_backlog’的成员
server.unixsocketperm, server.tcp_backlog);
^
server.c:2888:19: 错误:‘struct redisServer’没有名为‘sofd’的成员
if (server.sofd == ANET_ERR)
^
server.c:2889:68: 错误:‘struct redisServer’没有名为‘neterr’的成员
serverLog(LL_WARNING, "Opening Unix socket: %s", server.neterr);
^
server.c:2892:33: 错以上是关于linux中安装redis报错的主要内容,如果未能解决你的问题,请参考以下文章