Article Directory
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.
Reach out for the party welfare: here is a zip package I compiled for everyone to downloadOverall idea : Use the mirror portal on the domestic Gitee to download the source code for compilation
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
1.2 Click to download ZIP, or clone, you can do it here
Note: Choose whether you want the version, as shown in the figure
1.4.0
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:
- 64 bit OS, supports Linux/Unix/Mac/Windows, Linux/Unix/Mac is recommended.
- 64 bit JDK 1.8+; download & configuration .
- Maven 3.2.x+; download & configuration .
2.2 Unzip and compile
- 1. Unzip the downloaded compressed package, as shown below:
- 2. Enter the
Nacos
folder and compile the
command as follows:
mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U
- 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.
Here you can see that the compilation has been successful, and the location of the package has been printed out.
3. Start verification
3.1 Unzip
nacos-server.zip
Copy 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
reference:
Catalog of this series