Cassandra as a Windows Service

2019-05-17 17:28发布

问题:

I just installed Apache Casandra 1.2.1 on Windows Server 2012 (It's a VM). I double clicked cassandra.bat and it worked without an error.

How can I run Cassandra.bat as a Windows Service, so I can sign out from cumputer?

回答1:

cassandra.bat file also helps you to run Cassandra as a Windows Service. You just need Commons Daemon Service Runner Windows binaries.

You will need to create a folder named daemon under the bin directory and extract the correct version (32/64 bit) of prunsrv.exe to this directory (bin\daemon).

Run command prompt and change directory to the bin. Type;

cassandra.bat install

Then run services.msc command to see cassandra(yes, lowercased) as a Windows Service.

You can also download

Datastax Community Edition

or

Cassandrows

which easily install, configure and run Apache Cassandra as a Windows Service.