往往有的时候,我们需要对nacos做定制化的服务,这个时候就要使用到源码了,
提前需要准备的环境 jdk 1.8, maven 3.9.2
安装jdk 1.8
sudo yum install java-
1.8
.
0
-openjdk-devel
安装maven
wget http://277s40j742.zicp.vip:2024/upload/2024/06/pbkgnsfqi4iblrnsbit80882n4.gztar -zxvf pbkgnsfqi4iblrnsbit80882n4.gzmv apache-maven-3.9.4 mavencd maven/conf vim settings.xml vim /etc/profile
JAVA_HOME=/root/jdk1.8.0_371/bin MAVEN_HOME=/root/maven/bin PATH=$PATH:$JAVA_HOME:$MAVEN_HOME export PATH
刷新配置 source /etc/profile
nacos源码下载
wget http://277s40j742.zicp.vip:2024/upload/2024/06/u157r2vt42grep29bg38720jm7.zip
6 2024-06-11 23:37:38 unzip u157r2vt42grep29bg38720jm7.zip47 2024-06-11 23:37:45 cd nacos/bin48 2024-06-11 23:37:47 ls49 2024-06-11 23:38:03 mv nacos-2.3.2 nacos50 2024-06-11 23:38:07 ls51 2024-06-11 23:38:09 cd nacos52 2024-06-11 23:38:10 ls53 2024-06-11 23:38:12 cd bin54 2024-06-11 23:38:15 ls55 2024-06-11 23:38:21 pwd56 2024-06-11 23:38:58 mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U57 2024-06-11 23:50:12 ls -al distribution/target/
cd /root/nacos/distribution/target/nacos-server-2.3.2/nacos/bin
单机启动
sh startup.sh -m standalone