【问题标题】:Starting/Stop Couchbase Server on CentOS 6.6 failing在 CentOS 6.6 上启动/停止 Couchbase 服务器失败
【发布时间】:2016-07-03 08:38:46
【问题描述】:

我在 6.7 上安装了 couchbase 2.2.0 版,它运行良好。 但是当我将 centos 版本从 6.7 更改为 6.6 时,couchbase 根本没有启动。

couchbase 在 centos 6.6 上有问题吗?在https://issues.couchbase.com/browse/MB-12536https://issues.couchbase.com/browse/MB-12849 注意到一些问题

但是用 centos 6.6 无法解决。

如果有人遇到这个问题,如果你能告诉我如何用 centos 6.6 制作 couchbase 2.2.0 会很有帮助

 [root@localhost ~]# service couchbase-server start
 Starting couchbase-server/usr/bin/dirname: extra operand `2>&1.pid'
 Try `/usr/bin/dirname --help' for more information.
                                                       [  OK  ]

[root@localhost ~]# service couchbase-server restart
Stopping couchbase-serverNOTE: shutdown failed
{badrpc,nodedown}

 Starting couchbase-server/usr/bin/dirname: extra operand `2>&1.pid'
 Try `/usr/bin/dirname --help' for more information.                                                              [  OK  ]

谢谢。

【问题讨论】:

    标签: couchbase centos6


    【解决方案1】:

    我相信以下内容将解决您的问题。编辑 /etc/init.d 中的 couchbase-server 文件,如下所示。变化:

    daemon --user couchbase "$DAEMON -- -noinput -detached > /opt/couchbase/var/lib/couchbase/logs/start.log 2>&1"
    

    到:

    daemon --user couchbase "$DAEMON" -- -noinput -detached > /opt/couchbase/var/lib/couchbase/logs/start.log 2>&1
    

    即不要只用 DAEMON env var 将整个命令括起来。也改一下:

    daemon "$DAEMON: -k"
    

    到:

    daemon "$DAEMON" -k
    

    所以它也停止了。那应该这样做。如果没有,请告诉我。

    【讨论】:

      猜你喜欢
      • 2015-07-06
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      • 2016-10-11
      • 1970-01-01
      相关资源
      最近更新 更多