安装包准备
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
安装部署
[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
访问验证
http://192.168.232.135:8848/nacos/ 默认账号 nacos/nacos