
Linux下Nacos环境配置(单机版)
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
一、Nacos概述
- 官方链接: https://nacos.io/zh-cn/docs/what-is-nacos.html
二、Nacos环境搭建(单节点)
- 准备资源
#上传资源包至Linux目录
#解压
tar -zxvf nacos-server-1.1.4.tar.gz -C /opt/module/
#切换目录bin查看
cd /opt/module/ && ll
- 配置自启j脚本
#编辑命令
vim /usr/lib/systemd/system/nacos.service
#加入内容
[Unit]
Description=nacos
After=network.target
[Service]
Type=forking
#单节点方式启动
ExecStart=/opt/module/nacos/bin/startup.sh -m standalone
# 集群方式启动
# ExecStart=/opt/module/nacos/bin/startup.sh
ExecReload=/opt/module/nacos/bin/shutdown.sh
ExecStop=/opt/module/nacos/bin/shutdown.sh
PrivateTmp=true
[Install]
WantedBy=multi-user.target
#刷新配置
systemctl daemon-reload
systemctl enable nacos.service
- 配置Nacos JDK目录
#切换目录
cd /opt/module/nacos/bin/
#编辑
vim startup.sh
#获取JAVA_HOME
echo $JAVA_HOME
/opt/module/jdk1.8.0_171
- 相关启停命令
#启停相关
systemctl start|reload|stop nacos
#查看
ps -ef|grep nacos
- 访问测试
- 访问地址: http://您的主机IP:8848/nacos
- 默认账户:nacos
- 默认密码:nacos
三、Nacos集群搭建




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)