nacos部署
1.jdk配置
#安装jdk yum install java -y #配置环境变量 which java #找到jdk位置 /usr/bin/java ll /usr/bin/java vim /etc/pfrofile export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre" export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH source /etc/pfrofile
2.安装nacos
tar -xvf nacos-server-2.1.2.tar.gz cd nacos vim start.sh #添加java环境变量 JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64/jre sh bin/startup.sh -m standalone
3.访问nacos
http://your-serverip:8848/nacos 登陆用户名和密码都是nacos