centos6.8安装启动nacos

不建议大家直接在官网git 源码,然后自己编译,非常慢,我大概等了有半小时,编译,下载jar包很久。
所以大家直接下编译好的源码,直接启动就好。
给大家走一遍流程。

  • nacos依赖jdk和maven,默认大家已经装了
  • 下载源码或者下周编译好的压缩包

1.下载源码

git clone https://github.com/alibaba/nacos.git
cd nacos/
mvn -Prelease-nacos clean install -U  
ls -al distribution/target/

// change the $version to your actual path
cd distribution/target/nacos-server-$version/nacos/bin

2.下载压缩包并且解压

unzip nacos-server-$version.zip 或者 tar -xvf nacos-server-$version.tar.gz
cd nacos/bin

以上方式二选一,推荐第二种。
下载压缩包地址 https://github.com/alibaba/nacos/releases

  • 启动,进入bin目录执行以下命令
  • 启动命令(standalone代表着单机模式运行,非集群模式):
sh startup.sh -m standalone

然后登录查看
http://106.53.84.104:8848/nacos/index.html
账号密码 nacos
在这里插入图片描述

官方文档 https://nacos.io/zh-cn/docs/quick-start.html

发布了84 篇原创文章 · 获赞 10 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/yidou120/article/details/103107326
今日推荐