Backend Development 2 min read

How to Compile and Run Nacos Console in Standalone Mode

This guide walks you through cloning the Nacos repository, compiling it with Maven (including special handling for Mac M‑series chips), explains the role of Protocol Buffers, and shows how to configure and run the Nacos console in standalone mode.

Java Architecture Diary
Java Architecture Diary
Java Architecture Diary
How to Compile and Run Nacos Console in Standalone Mode

Download Source Code

<code>git clone https://github.com/alibaba/nacos.git</code>
Protocol Buffer is a language‑independent, platform‑independent, extensible method for serializing structured data, useful for communication protocols and data storage. The protobuf‑maven‑plugin automatically generates the corresponding Java files from .proto files.
<code>mvn clean install -Dcheckstyle.skip -Dmaven.test.skip -T 4</code>
Note: When compiling on a Mac with an M‑series chip, replace the global ${os.detected.classifier} with osx‑x86_64.

Run Console Module

Add the following code to enable standalone mode:

<code>System.setProperty("nacos.standalone","true");</code>
JavaCompilationMavenNacosProtocol BuffersStandalone Mode
Java Architecture Diary
Written by

Java Architecture Diary

Committed to sharing original, high‑quality technical articles; no fluff or promotional content.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.