Nacos supports three types of deployment modes

    • Standalone Mode - used in DEV or TEST environment.
    • Cluster Mode - used in production environment to ensure high-availability.
    • Standalone means it is non-cluster Mode. *sh startup.sh standalone
    • standalone means it is non-cluster Mode. *cmd startup.cmd standalone

    Initialize MySQL database

    application.properties configuration

    Nacos in Multi-Node Cluster Mode

    to setup a NameServer:

    • ip-address parameter can set Nacos IP directly
    • use-only-site-local-interfaces parameter allows Nacos to use LAN ip, which is useful when Nacos deploys a machine with multiple network cards
    • ignored-interfaces parameter support network card arrays, allowing Nacos to ignore multiple network cards