Deploy Nacos on Linux/Mac (stand-alone/high availability mode)

Table of contents

1. Download and decompress Nacos

2. Start Nacos

1. Enter the bin directory

2. Start nacos on a single machine

3. Visit nacos address: http://localhost:8848/nacos

3. Persistence Configuration

1. Edit the application.properties file in the conf folder​Edit

 2. nacos stand-alone startup

3. Access address: http://localhost:8848/nacos 

4. Open permission control (application.properties file in the conf folder)

4. Start Nacos in high availability mode

1. The local test copied the three-point nacos, and modified the port numbers of the application.properties file in the conf folder to 8848, 8858, and 8858.

2. Enter the conf folder to create a new cluster.conf file and write the address and port of each nacos instance

 3. Start command

 4. Access address

5. View cluster nodes 


1. Download and decompress Nacos

Download address: Releases alibaba/nacos GitHub

2. Start Nacos

1. Enter the bin directory

cd bin

2. Start nacos on a single machine

./startup.sh -m standalone

3. Visit nacos address: http://localhost:8848/nacos

3. Persistence Configuration

1. Edit the application.properties file in the conf folder

 2. nacos stand-alone startup

./startup.sh -m standalone

3. Access address: http://localhost:8848/nacos 

4. Open permission control (application.properties file in the conf folder)

4. Start Nacos in high availability mode

1. The local test copied the three-point nacos, and modified the port numbers of the application.properties file in the conf folder to 8848, 8858, and 8858.

2. Enter the conf folder to create a new cluster.conf file and write the address and port of each nacos instance

 3. Start command

sh nacos-8848/bin/startup.sh
sh nacos-8858/bin/startup.sh
sh nacos-8868/bin/startup.sh

 4. Access address

http://localhost:8848/nacos

 http://localhost:8858/nacos

 http://localhost:8868/nacos

5. View cluster nodes 

Guess you like

Origin blog.csdn.net/m0_52208135/article/details/128829137