1. preliminary environmental preparation
Make sure that is installed in the environment:
- 64 bit OS Linux / Unix / Mac, Linux systems are recommended.
- 64 bit JDK 1.8+; download . Configuration .
- Maven 3.2.x +; download . Configuration .
- Three or more than three Nacos nodes in order to constitute a cluster.
2. Source download or installation package
You can get Nacos in two ways.
Download the source code from Github way
After downloading the archive compiled mode
download link
3. Configure the cluster configuration file
In Nacos of conf
a directory cluster.conf.example
, you can directly example
extensions removed to use, you can also create a separate cluster.conf
file and then open Nacos instance address the follow-up configurations to deploy here, please each row configured ip: port. (3 configure three or more nodes)
4. Configure MySQL database
Production using the recommended at least standby mode, or employs a highly available database.
MySQL database initialization
application.properties Configuration
Additional profile database in the configuration file
The reverse proxy configuration nginx
6. Start the server
Linux/Unix/Mac
Start command (no parameter model, the cluster model): each started service on each server.
cd nacos/bin
sh startup.sh