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
Download Source Code
git clone https://github.com/alibaba/nacos.gitProtocol 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.
mvn clean install -Dcheckstyle.skip -Dmaven.test.skip -T 4Note: 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:
System.setProperty("nacos.standalone","true");Original Source
Signed-in readers can open the original source through BestHub's protected redirect.
Republication Notice
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Reader feedback
How this landed with the community
Rate this article
Was this worth your time?
Discussion
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
