Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large amounts of data across many commodity servers. In this guide, we will walk through the steps to install Apache Cassandra on Debian 11.

Step 1: Update Your System

Start by ensuring your system is up to date:

sudo apt update && sudo apt upgrade -y

Step 2: Install Java

Apache Cassandra requires Java to run. Install the OpenJDK package:

sudo apt install -y openjdk-11-jdk

Step 3: Add the Apache Cassandra Repository

Add the Apache Cassandra repository to your system:

echo "deb https://apache.mirrors.spacedump.net/cassandra/debian 311x main" | sudo tee /etc/apt/sources.list.d/cassandra.sources.list

Step 4: Add the GPG Key

Add the GPG key for the Apache Cassandra repository:

curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add -

Step 5: Update Package List

Update the package list to include the new Cassandra repository:

sudo apt update

Step 6: Install Apache Cassandra

Now, install Apache Cassandra using the following command:

sudo apt install -y cassandra

Step 7: Start and Enable Cassandra

After installation, start the Cassandra service and enable it to run at boot:

sudo systemctl start cassandra
sudo systemctl enable cassandra

Step 8: Verify Cassandra Installation

Check if Cassandra is running by using the following command:

sudo systemctl status cassandra

You should see that the service is active and running.

Step 9: Access Cassandra Shell

Open the Cassandra shell using the following command:

cqlsh

You can now start executing CQL (Cassandra Query Language) commands.

Conclusion

You have successfully installed Apache Cassandra on Debian 11. This database system will help you manage large datasets efficiently.

If you're looking for a reliable hosting solution for your Apache Cassandra database, consider using Windows VPS UK. With Windows VPS, you can efficiently host your applications and ensure high performance. Whether you need VPS UK Windows or Windows Virtual Private Servers, you'll find a solution that fits your requirements.

For larger deployments or enterprise needs, explore Windows Virtual Dedicated Server Hosting or Virtual Private Server Hosting Windows. Whether you're located in the UK, Italy, or elsewhere, Windows VPS Italy and UK VPS Windows offer reliable hosting options. Visit Windows VPS Hosting UK to discover the best hosting solutions for your needs.

¿Fue útil la respuesta? 0 Los Usuarios han Encontrado Esto Útil (0 Votos)