[Build Nacos in Linux environment]

foreword

Recently, I am working on my own project with my colleagues. From zero to one, the technology selection framework uses SpringCloud Alibaba, so it is inevitable to use Nacos as the registration center and configuration center.

Nacos needs to rely on jdk, so make sure there is jdk on the server, if you don't have it, you can configure it on Baidu.

Download Nacos

Official website address: Nacos official website address
Click the document, find Nacos on the left menu bar, and scroll down to find the location as shown below.
insert image description here
insert image description here

Install Nacos

Use Xshell to connect to your own server

  • create folder
mkdir -p /usr/local/nacos
  • Drag the Nacos compressed package into Xshell
  • Unzip the Nacos compressed package
tar -zxvf nacos-server-2.1.0.tar.gz -C /usr/local/nacos

insert image description here

  • Enter the bin file and start Nacos in stand-alone mode
sh startup.sh -m standalone
  • Enter the pagoda page and open port 8848
    insert image description here
  • Test access
    Browser access: http://XXX.XXX.X.XXX:8848/nacos
    login account password is nacos
    insert image description here

Guess you like

Origin blog.csdn.net/zhang0305/article/details/125612164