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"
相关推荐
忧虑的乌龟蛋3 分钟前
嵌入式Linux I2C驱动开发详解
linux·驱动开发·嵌入式·iic·i2c·读数据·写数据
I_Scholar1 小时前
OPENSSL-1.1.1的使用及注意事项
linux·ssl
firshman_start1 小时前
第十五章,SSL VPN
网络
Johnstons1 小时前
AnaTraf:深度解析网络性能分析(NPM)
前端·网络·安全·web安全·npm·网络流量监控·网络流量分析
落——枫1 小时前
路由交换实验
网络
Johny_Zhao1 小时前
K8S+nginx+MYSQL+TOMCAT高可用架构企业自建网站
linux·网络·mysql·nginx·网络安全·信息安全·tomcat·云计算·shell·yum源·系统运维·itsm
小诸葛的博客1 小时前
华为ensp实现跨vlan通信
网络·华为·智能路由器
稳联技术1 小时前
Ethercat转Profinet网关如何用“协议翻译术“打通自动化产线任督二脉
linux·服务器·网络
烟雨迷1 小时前
Linux环境基础开发工具的使用(yum、vim、gcc、g++、gdb、make/Makefile)
linux·服务器·学习·编辑器·vim
Bruk.Liu2 小时前
Linux 上安装RabbitMQ
linux·服务器·rabbitmq