(一)Nacos安裝與啓動

一、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運行文件。

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章