下载
https://mirrors.tuna.tsinghua…
下载到你须要的中央
wget https://mirrors.tuna.tsinghua.edu.cn/apache/cassandra/3.11.11/apache-cassandra-3.11.11-bin.tar.gz
而后解压
而后间接输出上面的启动命令是不行的
./bin/cassandra -f
会报错
expr: 语法错误:未预期的参数“2”expr: 语法错误:未预期的参数“2”./cassandra: 59: [: Illegal number:
./cassandra: 63: [: Illegal number:
./cassandra: 67: [: Illegal number:
expr: 语法错误:未预期的参数“4”./cassandra: 81: [: Illegal number:
Invalid initial heap size: -XmsM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
那怎么办呢?
编辑 cassandra/conf/cassandra-env.sh
脚本,勾销正文即可。
#MAX_HEAP_SIZE="4G"
#HEAP_NEWSIZE="800M"