小编use*_*750的帖子

不可达/健康的副本集

我正在尝试在现有集合中再添加一个副本集,但在可达性方面遇到问题。我们得到Notreachable/healthy replica set的原因是什么?

    "name" : "IP ADDRESS",
    "health" : 0,
    "state" : 8,
    "stateStr" : "(not reachable/healthy)",
    "uptime" : 0,
    "optime" : {
        "t" : 0,
        "i" : 0
    },
    "optimeDate" : ISODate("1970-01-01T00:00:00Z"),
    "lastHeartbeat" : ISODate("2013-06-18T10:52:50Z"),
    "lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
    "pingMs" : 0
Run Code Online (Sandbox Code Playgroud)

replication sharding mongodb

5
推荐指数
1
解决办法
1万
查看次数

Php扩展错误:

我正在尝试创建php扩展.

这是config.m4文件

PHP_ARG_ENABLE(hello, whether to enable Hello
World support,
[ --enable-hello   Enable Hello World support])
if test "$PHP_HELLO" = "yes"; then
  AC_DEFINE(HAVE_HELLO, 1, [Whether you have Hello World])
  PHP_NEW_EXTENSION(hello, hello.c, $ext_shared)
fi
Run Code Online (Sandbox Code Playgroud)

这是php_hello.h文件.

#ifndef PHP_HELLO_H
#define PHP_HELLO_H 1
#define PHP_HELLO_WORLD_VERSION "1.0"
#define PHP_HELLO_WORLD_EXTNAME "hello"

PHP_FUNCTION(hello_world);

extern zend_module_entry hello_module_entry;
#define phpext_hello_ptr &hello_module_entry

#endif
Run Code Online (Sandbox Code Playgroud)

这是hello.c文件

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "php_hello.h"

static function_entry hello_functions[] = {
    PHP_FE(hello_world, NULL)
    {NULL, NULL, NULL}
};

zend_module_entry hello_module_entry = {
#if ZEND_MODULE_API_NO >= …
Run Code Online (Sandbox Code Playgroud)

php c php-extension

2
推荐指数
1
解决办法
451
查看次数

标签 统计

c ×1

mongodb ×1

php ×1

php-extension ×1

replication ×1

sharding ×1