Tongweb7049+TongRDS2214-2216+THS6010-6012 开机自启动(by lqw)

原理

配置rc.local(这个网上有很多示范,为了方便使用,在这里总结一下各个产品的配置)

Tongweb7049

Tongweb7049 本身自带开机自启动脚本(bin目录下的installxxx.sh),但是有时执行失败的话,可以参考这个。

bash 复制代码
chmod +x /etc/rc.d/rc.local
chmod 755 /etc/rc.d/rc.local

su - root -c "cd tongweb安装目录的bin目录;./startservernohup.sh",例如:

注意:

1.把root替换为tongweb安装目录所属用户。

2.startservernohup.sh这个脚本记得给执行权限。

TongRDS2214-2216

bash 复制代码
在/etc/rc.d/rc.local文件中加入TongRDS的启动命令,rc.local要有x权限,相关安装目录请自行替换并测试。

chmod +x /etc/rc.d/rc.local
chmod 755 /etc/rc.d/rc.local
#启动管理控制台(如果没有可以不添加)
su - root -c  "cd /home/tongweb/TongRDS/console/bin;nohup ./console.sh start >/dev/null &"
#启动节点管理器,(如果没有可以不添加)
su - root -c  "cd /home/tongweb/TongRDS/node-mgr;nohup ./probe.sh start >/dev/null &"
#启动中心服务
su - root -c  "cd /home/tongweb/TongRDS/console/apps/center89/bin; nohup ./StartCenter.sh >/dev/null &"
#启动节点
su - root -c  "cd /home/tongweb/TongRDS/node-mgr/apps/node1/bin;nohup ./StartServer.sh >/dev/null &"
#启动哨兵节点,如果没有可以不添加
su - root -c  "cd /home/tongweb/TongRDS/console/apps/sb01/bin;nohup ./StartServer.sh >/dev/null &"

注意:

1.把root替换为trds安装目录所属用户。

2.上述涉及的脚本记得给执行权限。

THS6010-6012

bash 复制代码
chmod +x /etc/rc.d/rc.local
chmod 755 /etc/rc.d/rc.local

#启动节点
su - root -c  "cd /opt/THS/bin; ./start.sh"
#启动agent(没有的话可以不用配)
su - root -c  "cd /opt/THS/bin; ./startAgent.sh"
#启动HA(没有的话可以不用配)
su - root -c  "cd /opt/THS/bin; ./startHA.sh"
相关推荐
江公望4 分钟前
Linux kernel regcache_cache_only()函数详解
linux
Andy杨12 分钟前
20250710-2-Kubernetes 集群部署、配置和验证-网络组件存在的意义?_笔记
网络·笔记·kubernetes
沫儿笙24 分钟前
弧焊机器人气体全方位节能指南
网络·人工智能·机器人
liuyunluoxiao35 分钟前
基于生产者消费者模型的线程池【Linux操作系统】
linux
程序员黄老师2 小时前
Ubuntu 24.04上安装 Intelligent Pinyin 中文输入法
linux·运维·ubuntu
HONG_YANG2 小时前
ERPNext 介绍、安装和维护建议
linux
HONG_YANG2 小时前
ERPNext 搭建教程:Linux 一键部署与维护
linux
执笔诉情殇〆2 小时前
前后端分离(java) 和 Nginx在服务器上的完整部署方案(redis、minio)
java·服务器·redis·nginx·minio
Enti7c2 小时前
什么是void,什么时候使用void类型?never和void的区别
linux·运维·ubuntu
宇钶宇夕3 小时前
S7-1200 系列 PLC 中 SCL 语言的 PEEK 和 POKE 指令使用详解
运维·服务器·数据库·程序人生·自动化