# nacos **Repository Path**: Cairo-SR8/nacos ## Basic Information - **Project Name**: nacos - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-09-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ------------------------------------------------------------------------------------------------------------- #数据库在:db #需要配置:Redis #需要在Nacos Server中配置项目中几个 bootstrap.properties中注释的 ![输入图片说明](https://images.gitee.com/uploads/images/2019/0915/023716_a1c5c273_915722.png "1.png") ----------------------------------------搭建Nacos------------------------------------------------------------ spring cloud 集成 nacos 官方文档:https://nacos.io/zh-cn/docs/what-is-nacos.html](https://nacos.io/zh-cn/docs/what-is-nacos.html 1.git克隆项目 git clone https://github.com/alibaba/nacos.git 2.进入解压的根目录 cd nacos/ 3.maven编译 apache-maven-3.6.1/conf/settings修改以下 确保你的私库包够全 nacos的包主要来源于阿里私库上! alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central 然后maven编译 mvn -Prelease-nacos clean install -U 3.进入目录 cd distribution/target/nacos-server-${version}/nacos/bin 4.启动服务 Linux/Unix/Mac环境: $ sh startup.sh -m standalone win环境:运行 startup.cmd http://localhost:8848/nacos/index.html 默认账号:nacos 默认密码:nacos ---------------------------------linux------------------------------------------------------- 查看yum库中的Java安装包 $ yum -y list java* 使用yum安装Java环境 $ yum -y install java-1.8.0-openjdk* $ java -version 可查看Java版本: openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) 上传nacos-server-1.0.0.tar.gz // 解压压缩包 $ tar -zxv -f nacos-server-1.0.0.tar.gz $ cd /nacos/bin 启动命令(standalone代表着单机模式运行,非集群模式): sh startup.sh -m standalone 后台运行: nohup sh startup.sh -m standalone & 安装redis $ yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel https://redis.io/download 安装https://www.cnblogs.com/codersay/p/4301677.html 下载,提取和编译Redis: Linux wget是一个下载文件的工具命令如下: $ yum -y install wget $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz $ tar xzf redis-2.8.3.tar.gz $ cd redis-2.8.3 $ 编译: make && make install $ cd redis-2.8.3/src $ ./redis-server