Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

48.4. Cluster

48.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

48.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

48.4.3. nodetool

nodeprobe -host 172.16.0.1 ring