当前位置:网站首页>nacos安装教程
nacos安装教程
2022-07-13 18:07:00 【小阿狸啊】
下载nacos
可能需要科学上网下载工具,如果下不下来可以私信我,我帮你下载
github地址:https://github.com/alibaba/nacos/releases
选择你需要的版本进行下载

将下载好的文件上传至服务器

解压文件
tar -zxvf nacos-server-1.4.2.tar.gz
得到nacos文件夹,进入nacos文件夹
cd nacos

进入conf文件夹,将nacos-mysql.sql文件下载下来
cd conf

将nacos-mysql.sql导入数据库

修改 application.properties
vim application.properties
修改端口server.port
将mysql配置插到最后一行
分别对应数据库链接
用户名,密码
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/nacos?
characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnico
db.user=renren
db.password=123456
保存并退出 :wq
进入bin文件夹下启动
cd ../bin

启动命令:
sh startup.sh -m standalone

关闭防火墙
通过http://ip:端口号/nacos 进行访问
用户名 nacos
密码 nacos

边栏推荐
- It's so delicious. I finally understand why so many people want to switch to software testing~
- Basic introduction to flask 6 - Context
- DIY a cache
- Five years' experience: the monthly salary is 3000 to 30000, and the change of Test Engineers
- Day 7 of leetcode question brushing
- 如何将 @Transactional 事务注解运用到炉火纯青?
- 2022/7/10RHCSA
- RAID disk array
- 一次简单的 JVM 调优,拿去写到简历里
- Still using enumeration in MySQL? Pay attention to these traps!
猜你喜欢
随机推荐
快速幂求解a^b%p
网络层协议
Dynamic open point segment tree
2021-11-7 bugku question making record 25 - Post
MySQL foundation related (important)
2022/7/10RHCSA
Select / poll / epoll explanation
IDEA 注释模板,这样配置才够逼格!
Why is it said that the testing post is a giant pit? The 10-year-old tester told you not to be fooled~
2021-07-02
Thread pool and producer consumer model
"Why do you want to resign, Tencent, which broke its head?"
Longest ascending subsequence longest common subsequence maximum field and longest non repeating subsequence
Day 7 of leetcode question brushing
VLAN和Trunnk
XPath超详细总结
华为全连MGRE与星型拓扑MGRE(全网状与非全网状)
Network cabling overview
Flask基礎入門七-Cookie和Session
unittest一站式学习









