我刚刚在 Windows Server 2012(它是一个 VM)上安装了 Apache Casandra 1.2.1。我双击了 cassandra.bat 并且它没有错误地工作。
如何将 Cassandra.bat 作为 Windows 服务运行,以便我可以从 cumputer 注销?
最佳答案
cassandra.bat 文件还可以帮助您将 Cassandra 作为 Windows 服务运行。您只需要 Commons Daemon Service Runner Windows 二进制文件。
您需要在 bin 目录下创建一个名为 daemon 的文件夹,并将正确版本(32/64 位)的 prunsrv.exe 解压到此目录 ( bin\daemon )。
运行命令提示符并将目录更改为 bin。类型;
cassandra.bat 安装
然后运行 services.msc 命令以将 cassandra(是的,小写)视为 Windows 服务。
你也可以下载
Datastax Community Edition
或者
Cassandrows
它可以轻松安装、配置和运行 Apache Cassandra 作为 Windows 服务。
关于windows - Cassandra 作为 Windows 服务,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14684922/