Solve the problem of slow download speed in Nacos domestic

Preface

Nacos's GitHub address: Portal . Due to various known reasons (force majeure), the download speed in China is too slow. Record and share the solution.

Overall idea : Use the mirror portal on the domestic Gitee to download the source code for compilation

Reach out for the party welfare: here is a zip package I compiled for everyone to download

Insert picture description here
Follow my public account [ Java Interviewer ], reply: nacos can download

Program

1. Select the corresponding version to download the source code

The current stable version is 1.4.0, the nacos address on Gitee is as follows:

1.1 Click 1, 2, 3 in turn to select our latest stable version 1.4.0

Insert picture description here

1.2 Click to download ZIP, or clone, you can do it here

Note: Choose whether you want the version, as shown in the figure1.4.0

Insert picture description here

2. Local compilation

2.1 Preparation of the environment

If you already have a JDK, Maven environment, skip this step

Nacos relies on the Java environment to run. If you build and run Nacos from the code, you also need to configure the Maven environment for this , please make sure to install and use in the following version environment:

  1. 64 bit OS, supports Linux/Unix/Mac/Windows, Linux/Unix/Mac is recommended.
  2. 64 bit JDK 1.8+; download & configuration .
  3. Maven 3.2.x+; download & configuration .

2.2 Unzip and compile

  • 1. Unzip the downloaded compressed package, as shown below:
    Insert picture description here
  • 2. Enter the Nacosfolder and compile the
    command as follows:
mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U  

Insert picture description here

  • 3. The compilation results are as follows

The compilation process is very slow, please wait patiently . At the end of the article , we will put the compiled ones and download them directly.

Insert picture description here

Here you can see that the compilation has been successful, and the location of the package has been printed out.

Insert picture description here

3. Start verification

3.1 Unzip

nacos-server.zipCopy the above to server verification here.

 unzip nacos-server-$version.zip 或者 tar -xvf nacos-server-$version.tar.gz
 cd nacos/bin

3.2 Start the server

  • Linux/Unix/Mac
    startup commands (standalone represents stand-alone mode operation, non-cluster mode):
sh startup.sh -m standalone

If you are using the ubuntu system, or the running script reports an error message [[ symbol not found, you can try to run as follows:

bash startup.sh -m standalone
  • Windows
    startup command (standalone represents stand-alone mode operation, non-cluster mode):
cmd startup.cmd -m standalone

3.3 Login to the nacos service console to verify

Enter in the browser: http://ip:8848/nacos
username/password The default is: nacos/nacos
Insert picture description here
reference:

Catalog of this series

Guess you like

Origin blog.csdn.net/abu935009066/article/details/112647445