一、Nacos簡介
官網介紹:Nacos
致力於幫助您發現、配置和管理微服務。
https://nacos.io/zh-cn/index.html
Nacos 提供了一組簡單易用的特性集,幫助您快速實現動態服務發現、服務配置、服務元數據及流量管理。
Nacos 幫助您更敏捷和容易地構建、交付和管理微服務平臺。 Nacos 是構建以“服務”爲中心的現代應用架構 (例如微服務範式、雲原生範式) 的服務基礎設施。
二、安裝和啓動
1、安裝
1)官網下載壓縮包
https://github.com/alibaba/nacos/releases
2)Github下載
git clone https://github.com/alibaba/nacos.git
cd nacos/
mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U
ls -al distribution/target/
// change the $version to your actual path
cd distribution/target/nacos-server-$version/nacos/bin
2、啓動
Linux/Unix/Mac
啓動命令(standalone代表着單機模式運行,非集羣模式):
sh startup.sh -m standalone
如果您使用的是ubuntu系統,或者運行腳本報錯提示[[符號找不到,可嘗試如下運行:
bash startup.sh -m standalone
Windows
啓動命令:
cmd startup.cmd
或者雙擊startup.cmd運行文件。