Spring Cloud Alibaba Version | Sentinel Version | Nacos Version | RocketMQ Version | Dubbo Version | Seata Version |
---|---|---|---|---|---|
2.2.1.RELEASE | 1.7.1 | 1.2.1 | 4.4.0 | 2.7.6 | 1.1.0 |
2.2.0.RELEASE | 1.7.1 | 1.1.4 | 4.4.0 | 2.7.4.1 | 1.0.0 |
2.1.2.RELEASE or 2.0.2.RELEASE | 1.7.1 | 1.2.1 | 4.4.0 | 2.7.6 | 1.1.0 |
2.1.1.RELEASE or 2.0.1.RELEASE or 1.5.1.RELEASE | 1.7.0 | 1.1.4 | 4.4.0 | 2.7.3 | 0.9.0 |
2.1.0.RELEASE or 2.0.0.RELEASE or 1.5.0.RELEASE | 1.6.3 | 1.1.1 | 4.4.0 | 2.7.3 | 0.7.1 |
Spring Cloud Version | Spring Cloud Alibaba Version | Spring Boot Version |
---|---|---|
Spring Cloud Hoxton.SR3 | 2.2.1.RELEASE | 2.2.5.RELEASE |
Spring Cloud Hoxton.RELEASE | 2.2.0.RELEASE | 2.2.X.RELEASE |
Spring Cloud Greenwich | 2.1.2.RELEASE | 2.1.X.RELEASE |
Spring Cloud Finchley | 2.0.2.RELEASE | 2.0.X.RELEASE |
Spring Cloud Edgware | 1.5.1.RELEASE | 1.5.X.RELEASE |
此次項目中咱們用的alibaba版本是2.2.1.REALEASE,所以各組件的版本與之對應,在實際應用中請務必使用與Spring Cloud Alibaba版本相對應的Spring Cloud版本和Spring Boot版本。html
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)下載編譯後的壓縮包方式git
//解壓安裝包 unzip nacos-server-$version.zip 或者 tar -xvf nacos-server-$version.tar.gz cd nacos/bin
安裝nacosgithub
nacos支持的三種模式:spring
單機模式 - 用於測試和單機試用。ubuntu
集羣模式 - 用於生產環境,確保高可用。windows
多集羣模式 - 用於多數據中心場景。bash
如下選擇使用單機模式(standalone)進行安裝。服務器
(1)安裝nacos,啓動nacos服務器markdown
先解壓下載包,而後選擇一下一種啓動nacos服務器的方式。負載均衡
sh startup.sh -m standalone #若是您使用的是ubuntu系統,或者運行腳本報錯提示[[符號找不到,可嘗試以下運行: bash startup.sh -m standalone
Windows下啓動命令:
cmd startup.cmd -m standalone
Windows下點擊啓動文件啓動:下載完成後解壓,咱們發現bin目錄下有兩個啓動文件,stratup.cmd 和 startup.sh。打開這兩個文件咱們發現startup.cmd默認支持的是單機模式,startup.sh默認支持的是集羣模式。咱們雙擊運行startup.cmd。
普通用戶運行會出現以下錯誤,致使啓動失敗。
若是啓動失敗,能夠從nacos按照目錄/logs/nacos.log文件查看具體錯誤。
nacos默認端口是:8848
默認用戶名:nacos
默認密碼:nacos