我有一个节点 Cassandra 2.0.4 启动并运行我需要在配置更改后重新启动它我厌倦了通过引用 this 重新启动它但不工作
>cassandra/bin/cassandra -p new
Error: Exception thrown by the agent :java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
java.net.BindException: Address already in use
>kill $(cat new)
-bash: kill: (10404) - No such process
我是引用this安装的
直到现在,当我必须重新启动它时,我都是通过重新启动运行 Cassandra 的服务器来完成的。
请告诉我重启 apache Cassandra 2.0.4 的正确方法是什么
最佳答案
如果它只是一个进程而不是一个服务,你可以做类似的事情
$ ps auwx | grep cassandra
$ sudo kill <pid>
哪里<pid>
是你从ps auwx | grep cassandra
得到的
这将停止进程。然后你必须重新启动它
$ cd <install_location>
$ bin/cassandra
哪里<install_location>
是你安装cassandra的地方
如果是服务:service cassandra restart
关于ubuntu - 我如何重新启动 apache cassandra 2.0.4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21433802/