Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

46.4. Cluster

46.4.1. Running a cluster

			
<Seed>127.0.0.1</Seed>
			
			

改为

			
<Seed>172.16.0.1</Seed>
			
			
			

			
			

			
  <ListenAddress>localhost</ListenAddress>
改为:
  <ListenAddress>172.16.0.1</ListenAddress>
  			
    		
			
    <ThriftAddress>localhost</ThriftAddress>
改为:
    <ThriftAddress>0.0.0.0</ThriftAddress>
    		
    		
$ bin/cassandra

46.4.2. Running a single node

			
<Seed>127.0.0.1</Seed>
			
			

改为

			
<Seed>172.16.0.2</Seed>
			
			
			
  <Seeds>
      <Seed>172.16.0.1</Seed>
      <Seed>172.16.0.2</Seed>
      <Seed>172.16.0.3</Seed>
      <Seed>172.16.0.4</Seed>
      <Seed>172.16.0.5</Seed>
  </Seeds>
			
			

			
  <ListenAddress>localhost</ListenAddress>
改为:
  <ListenAddress>172.16.0.2</ListenAddress>
  			
    		
			
    <ThriftAddress>localhost</ThriftAddress>
改为:
    <ThriftAddress>0.0.0.0</ThriftAddress>
    		
    		
$ bin/cassandra

46.4.3. nodetool

nodeprobe -host 172.16.0.1 ring