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"
相关推荐
2401_8582861121 小时前
OS53.【Linux】System V 共享内存(2)
linux·运维·服务器·共享内存
REDcker1 天前
DNS技术详解
服务器·后端·计算机网络·互联网·dns·服务端
上海合宙LuatOS1 天前
LuatOS核心库API——【io】 io操作(扩展)
java·服务器·前端·网络·单片机·嵌入式硬件·物联网
她说彩礼65万1 天前
I/O密集型 CPU密集型
网络
枷锁—sha1 天前
【CTFshow-pwn系列】03_栈溢出【pwn 048】详解:Ret2Libc 之 Puts 泄露
网络·安全·网络安全
初恋叫萱萱1 天前
基于 Rust 与 DeepSeek V3.2 构建高性能插件化 LLM 应用框架深度解析
网络·人工智能·rust
能源革命1 天前
Ubuntu_24.04 安装OpenClaw教程
linux·ubuntu
laocui11 天前
树莓派Ubuntu系统安装openclow(豆包+QQ机器人)
linux·运维·ubuntu
qq_24218863321 天前
快速搭建跨环境检测服务的步骤
linux·开发语言·windows·python·macos
专业开发者1 天前
Wi-Fi 技术学习:面向 Wi-Fi 网络的抗干扰技术
网络·学习