初始化提交
This commit is contained in:
45
nacos/相关命令
Normal file
45
nacos/相关命令
Normal file
@@ -0,0 +1,45 @@
|
||||
# 手动启动
|
||||
cd /data/nacos/bin
|
||||
sh startup.sh
|
||||
|
||||
# ====================================
|
||||
|
||||
# systemd启动
|
||||
vim /etc/systemd/system/nacos.service
|
||||
|
||||
[Unit]
|
||||
Description=Nacos Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Environment="JAVA_HOME=/data/jdk-21.0.7"
|
||||
Environment="PATH=/data/jdk-21.0.7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
||||
ExecStart=/data/nacos/bin/startup.sh -m cluster
|
||||
ExecStop=/data/nacos/bin/shutdown.sh
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
User=root
|
||||
LimitNOFILE=65535
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
# =====================================
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl start nacos
|
||||
systemctl status nacos
|
||||
systemctl enable nacos
|
||||
|
||||
# =====================================
|
||||
|
||||
tail -n 500 /data/nacos/logs/startup.log
|
||||
|
||||
# =====================================
|
||||
|
||||
Server 部分端口 8848
|
||||
Console 控制台 8081 http://10.0.0.8:8081/index.htm
|
||||
|
||||
集群节点列表[10.0.0.15:8848, 10.0.0.10:8848, 10.0.0.8:8848]
|
||||
Reference in New Issue
Block a user