1、Docker、Docker-Compose安装
https://www.cnblogs.com/a120608yby/p/9883175.html https://www.cnblogs.com/a120608yby/p/14582853.html
2、基于Docker-Compose部署Cassandra
# vim docker-compose.yml version: '3' services: cassandra: image: cassandra:latest container_name: cassandra restart: always ports: - 7000:7000 - 9042:9042 networks: - ops_default volumes: # - ./cassandra.conf:/etc/cassandra/cassandra.yaml - ./cassandra:/var/lib/cassandra environment: - CASSANDRA_PASSWORD_SEEDER=yes - CASSANDRA_PASSWORD=my_secret_password networks: ops_default: external: true
3、启动服务
docker compose up -d
4、查看服务启动状态
docker compose ps
5、访问
工具:TablePlus、DBeaver
参考:
https://cassandra.apache.org/doc/latest/cassandra/getting-started/cassandra-quickstart.html
标签:compose,部署,html,https,Docker,Cassandra,docker,cassandra From: https://www.cnblogs.com/a120608yby/p/17902960.html