- 预备环境准备: - 确保是64 bit OS(推荐Linux/Unix/Mac),安装64 bit JDK 1.8+并下载&配置,安装Maven 3.2.x+并下载&配置。
 
- 下载源码或者安装包: - 从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/
- cd distribution/target/nacos-server-$version/nacos/bin
 
- 下载最新版本: - 从最新稳定版本下载nacos-server-$version.zip包,unzip nacos-server-$version.zip或者tar -xvf nacos-server-$version.tar.gz,cd nacos/bin
 
- 从最新稳定版本下载
 
- 从Github上下载源码方式: 
- 修改配置文件: - 在2.2.0.1和2.2.1版本时必须执行,其他版本建议。修改conf目录下的application.properties文件,设置其中的nacos.core.auth.plugin.nacos.token.secret.key值。
 
- 在2.2.0.1和2.2.1版本时必须执行,其他版本建议。修改
- 启动服务器: - 启动命令(standalone代表单机模式运行,非集群模式): - sh startup.sh -m standalone
- 如果使用ubuntu系统,或者运行脚本报错提示[[符号找不到,可尝试:bash startup.sh -m standalone
 
 
- 启动命令(standalone代表单机模式运行,非集群模式):