Starting and Stopping Cassandra Services (Using Command Line and Service Management Tools)

Command Line Method

Starting the Cassandra Service

1. Start the Cassandra service by entering the following command:

sudo systemctl start cassandra

2. However, if you are on an Ubuntu or Debian system, you will need to execute:

sudo service cassandra start

3. If you are on a Fedora system, you can use:

sudo systemctl start cassandra

Stopping the Cassandra Service

1. Find the command to start the Cassandra service:

systemctl status cassandra

2. To stop it, add the following line to your init.d/cassandra script and restart the system:

sudo service cassandra stop

Service Management Tool Method

1. Command list:

*

sudo systemctl start cassandra

*

sudo systemctl stop cassandra

*

sudo systemctl restart cassandra

*



2. Command list:
*

sudo service cassandra start

*

sudo service cassandra stop

*

Important Notes

  • Before using the command line or service management tools, ensure the Cassandra service has been stopped.
  • If you are on an Ubuntu or Debian system, you will need to manually modify the service cassandra startup script to start the Cassandra service at boot.

Reference Resources