安装mysql 8
参考文章
centos7搭建mysql5.6 && mysql 8.0_centos7 mysql5.6-CSDN博客
安装 jdk 17
官网下载 对应的版本
Java Downloads | Oracle
wget https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz
解压
tar -zxvf jdk-17_linux-x64_bin.tar.gz
cp jdk-17.0.11/ /usr/local/ -r
配置环境变量
vim /etc/profile
#JDK
unset -f pathmunge
export JAVA_HOME=/usr/local/jdk-17.0.11
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
生成jre
cd /usr/local/jdk-17.0.11/bin
jlink --module-path jmods --add-modules java.desktop --output jre
安装 nacos Release 2.2.3 (May 25th, 2023) · alibaba/nacos · GitHub
数据库创建 nacos 账户
CREATE user 'nacos'@'%' identified by 'Diel%8';
grant all privileges on *.* to 'nacos'@'%' with grant option;
CREATE DATABASE nacos;
初始化 nacos
source /root/nacos/conf/mysql-schema.sql
配置nacos
vim /usr/local/nacos/conf/application.properties
启停nacos
cd /usr/local/nacos/bin
sh startup.sh -m standalone
sh shutdown.sh
nacos 报404 错误
访问url http://192.168.217.135:8848/nacos