Cassandra公用IP无法连接 [英] Cassandra public IP not connecting
问题描述
我在ubuntu服务器中使用cassandra.当我尝试使用带有公共IP地址的CLI进行连接时,它返回拒绝连接.反之,如果我尝试使用localhost,则可以正常工作.我在cassandra.yaml和storage-conf.xml中进行了配置更改.但我仍然有问题.应该做些什么改变?
I'm using cassandra in ubuntu server. when I try to connect using CLI with public IP address, It returns connection refused. whereas If I tried with localhost, its working fine. I made the configuration changes in cassandra.yaml and storage-conf.xml. but still I have the problem. What change should be done ?
先谢谢了.
s ..我已使用ssh连接服务器.
s..I have connecting the server using ssh.
推荐答案
在cassandra.yaml中将localhost更改为0.0.0.0并不总是可行.如果JVM实现不同,它将无法正常工作
Changing localhost to 0.0.0.0 in cassandra.yaml is not always work. In case of JVM Implementation is different ,it wont work
检查 cassandra-env.sh
文件,并最后与 JVM_OPTS
选项一起输入此项
Checkcassandra-env.sh
file and make this entry at last along with JVM_OPTS
options
JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=here your IP"
这篇关于Cassandra公用IP无法连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!