How to install Apache Cassandra 3.11 on AlmaLinux 8
Apache Cassandra is a highly scalable open source NoSQL database system.
In this tutorial, you’ll learn how to install and use it to run a single-node cluster on AlmaLinux 8.
Create bash script with the following content:
vi /root/cassandra-install.sh
#!/bin/bash
dnf check-update
dnf install java-1.8.0-openjdk-devel -y
java -version
cat <<'EOT' > /etc/yum.repos.d/cassandra.repo
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
EOT
dnf install python2 -y
dnf install cassandra -y
ln -s /usr/lib/python3.6/site-packages/cqlshlib /usr/lib/python2.7/site-packages/
/etc/init.d/cassandra start
nodetool status
Make the script executable:
chmod u+x /root/cassandra-install.sh
Run the script:
/root/cassandra-install.sh
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
Комментарии
Принудительное обновление сертификата:
certbot certonly --force-renew -d newsite.com
certbot certonly --force-renew -d newsite.com
Получаем SSL сертификат с помощью плагина nginx:
certbot certonly --nginx -d newsite.com -d www.newsite.com
certbot certonly --nginx -d newsite.com -d www.newsite.com
Можно, но я решил описать процесс копирования ключей более подробно.
Или можно просто командой ssh-copy-id [email protected]_host добавить публичный ключ на удалённый сервер.
Какой дистрибутив Linux вы часто используете?
Реклама

Гости1