赞
踩
cd /usr/local
$ wget https://github.com/alibaba/nacos/releases/download/2.1.0/nacos-server-2.1.0.tar.gz
$ tar -zxvf nacos-server-2.1.0.tar.gz
$ cd nacos
初始化数据库
cd /conf
nacos-mysql.sql
安装驱动
mkdir -p plugins/mysql
$ cd plugins/mysql
$ wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.19/mysql-connector-java-8.0.19.jar
修改数据库连接
vi application.properties
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://ip:3306/nacos-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=root
db.password= 不能填特殊符号如@
单机启动
bin
sh startup.sh -m standalone
需要安装jdk
vi /etc/profile
source /etc/profile
JAVA_HOME=/usr/local/jdk1.8.0_331
JRE_HOME=
J
A
V
A
H
O
M
E
/
j
r
e
C
L
A
S
S
P
A
T
H
=
.
:
JAVA_HOME/jre CLASSPATH=.:
JAVAHOME/jreCLASSPATH=.:JAVA_HOME/lib:
J
R
E
H
O
M
E
/
l
i
b
:
JRE_HOME/lib:
JREHOME/lib:CALSSPATH
PATH=
J
A
V
A
H
O
M
E
/
b
i
n
:
JAVA_HOME/bin:
JAVAHOME/bin:JRE_HOME/bin:$PATH
export JAVA_HOME JRE_HOME CLASSPATH PATH
访问路径
ip:8848(阿里云安全组添加端口)
登录账户密码
nacos/nacos
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。