nacos安装

图片[1]-nacos安装-晴天生活分享日志

https://www.oracle.com/java/technologies/downloads/
cat /proc/version
java archive , java 档案
https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html
Linux x64 RPM软件包 137.79兆字节 jdk-8u401-linux-x64.rpm
cd ~
root@lavm-x04s4kv7q3:~# mkdir java && cd java
mkdir jdk && cd jdk
sudo apt install lrzsz -y
rz -E
ls
rpm -ivh jdk-8u401-linux-x64.rpm
cd /usr
vim /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0-x64
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
java -version
[root@iZbp1cr1sgiqi6r6qlygx9Z jdk1.8.0-x64]# java -version
java version “1.8.0_401”
Java(TM) SE Runtime Environment (build 1.8.0_401-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.401-b10, mixed mode)

https://github.com/alibaba/nacos
mkdir -p /soft/nacos && cd /soft/nacos
wget https://github.com/alibaba/nacos/releases/download/2.3.1/nacos-server-2.3.1.tar.gz
tar -zxvf nacos-server-2.3.1.tar.gz
ll
drwxr-xr-x 5 root root 4096 Jun 29 14:40 nacos
配置文件nacos/conf/application.properties

Copyright 1999-2021 Alibaba Group Holding Ltd.
#

Licensed under the Apache License, Version 2.0 (the “License”);

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

#

http://www.apache.org/licenses/LICENSE-2.0

#

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an “AS IS” BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

#

* Spring Boot Related Configurations *

Default web context path:

server.servlet.contextPath=/nacos

Include message field

server.error.include-message=ALWAYS

Default web server port:

server.port=8848

* Network Related Configurations *

                                                                          12,1          Top

添加 mysql 数据源的 url、用户名和密码,MySql 数据库中执行 mysql-schema.sql
鉴权之前
esc
/nacos.core.auth.enabled

If turn on auth system:

nacos.core.auth.enabled=false
鉴权之后
true
自定义生成 JWT 令牌的密钥

nacos.core.auth.plugin.nacos.token.secret.key=
单机模式运行
./startsh -m standalone,sh startup.sh -m standalone
nacos is starting, you can check the /soft/nacos/nacos/logs/start.out

cat /soft/nacos/nacos/logs/start.out
http://ip:8848/nacos/index.html
nacos,nacos
netstat -tunlp | grep 8848
/bin目录下
sh shutdown.sh

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容