nacos单机安装

  1. 安装包准备

1.1 安装包直接下载

https://github.com/alibaba/nacos/releases

1.2 安装包编译

git clone https://github.com/alibaba/nacos.git
cd nacos
git checkout nacos-2.2.0
# 或者下载zip包
wget https://codeload.github.com/alibaba/nacos/zip/refs/heads/nacos-2.2.0

mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U  
[centos@localhost nacos-2.2.0]$ cd distribution/target/
[centos@localhost target]$ ll
total 203272
drwxrwxr-x. 2 centos centos         6 Mar  9 02:33 archive-tmp
-rw-rw-r--. 1 centos centos        87 Mar  9 02:33 checkstyle-cachefile
-rw-rw-r--. 1 centos centos      9837 Mar  9 02:33 checkstyle-checker.xml
-rw-rw-r--. 1 centos centos        81 Mar  9 02:33 checkstyle-result.xml
drwxrwxr-x. 3 centos centos        19 Mar  9 02:33 nacos-server-2.2.0
-rw-rw-r--. 1 centos centos 104056222 Mar  9 02:33 nacos-server-2.2.0.tar.gz
-rw-rw-r--. 1 centos centos 104065714 Mar  9 02:33 nacos-server-2.2.0.zip
-rw-rw-r--. 1 centos centos      2162 Mar  9 02:33 rat.txtc

  1. 安装部署

[centos@localhost target]$ cp nacos-server-2.2.0.zip /home/centos/space
[centos@localhost target]$ unzip nacos-server-2.2.0.zip
[centos@localhost space]$ cd nacos/bin/
[centos@localhost bin]$ ls
derby.log  logs  shutdown.cmd  shutdown.sh  startup.cmd  startup.sh  work

# 启动单机运行
[centos@localhost bin]$ bash startup.sh -m standalone

  1. 访问验证

http://192.168.232.135:8848/nacos/ 默认账号 nacos/nacos

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值