当前位置:网站首页>Famine cloud service management script
Famine cloud service management script
2022-07-07 08:15:00 【tough is tough】
DST
Don’t Starve Together Famine online management script
Specific content moves GitHub see :
Some basic management of cloud service archiving and opening , It aims to simplify cloud service management operations , Reduce management costs .
One 、 function
Currently supported function items :
- Start the world
- Stop the world
- Restart the world
- State of the query
- Sending notice
- Reset the world
- Retreated
Two 、 Quick start
Download script
GitHub link :https://github.com/clcaod/DoNotStarveTogether/blob/main/ Famine cloud service management script /dst.sh
Upload files to the server
Can pass FileZillaWinSCP etc. FTP Upload the file transfer tool to /tmp Catalog
1. Modify file group permissions
The file needs to belong to the same user as the famine file .
For example, I use steam Users are :
sudo chown steam:steam /tmp/dst.sh
2. The directory of the configuration file
There are two ways to store files
The first method is recommended ( By default, there is no need to modify the script ), Just put the script in the specified directory .
Enable 64 Place in position bin64 Under the table of contents
Enable 32 Place in position bin Under the table of contents
3. The script supports some customized configuration information
- Custom duration
- Custom prompt statement
- Custom port range
Script description
Grammar format
bash dst.sh <command> <cluster_name> <option>
Input parameters -h perhaps -help Check out the complete command syntax
[[email protected] tmp]$ sh dst.sh
Usage:
bash dst.sh <command> <cluster_name> <option>
Try 'bash dst.sh <start|stop|restart|status|send|-r|rollback|-h|--help> <cluster_name> [option]'
Try 'bash dst.sh -h perhaps bash dst.sh --help See more
Start the world
# usage :
bash dst.sh start <cluster_name> [Master|Caves]
# give an example
# This command will start archiving Cluster_1
bash dst.sh start Cluster_1
# Support only starting the world or cave , You need to add parameter assignment
# If only the world is specified :
bash dst.sh start Cluster_1 Master
Echo effect
Stop the world
# usage :
bash dst.sh stop <cluster_name> [Master|Caves]
# give an example
# This command will close the archive Cluster_1
bash dst.sh stop Cluster_1
# Support only closing the world or cave , You need to add parameter assignment
# If only the world is specified :
bash dst.sh stop Cluster_1 Master
Echo effect
Restart the world
# usage
bash dst.sh restart <cluster_name>
# give an example
# This command will restart the archive Cluster_1
bash dst.sh restart Cluster_1
# explain : Restart to shutdown and restart
State of the query
# usage
bash dst.sh status <cluster_name>
# give an example
# This command will archive the query Cluster_1 Operating state
bash dst.sh status Cluster_1
Echo effect
Sending notice
# usage
bash dst.sh send <cluster_name> [message]
# give an example
# This command will be archived Cluster_1 Send a message ' Welcome players to play famine !'
bash dst.sh send Cluster_1 ' Welcome players to play famine !'
Echo effect
Reset the world
# usage
bash dst.sh -r <cluster_name>
# give an example
# The reset command requires secondary confirmation
# This command will reset the archive Cluster_1
bash dst.sh -r Cluster_1
Echo effect
Retreated
# usage
bash dst.sh rollback <cluster_name> [option]
# give an example
# The number of times of returning files is not specified, and the default is 1 Time
# Specifying the number of returns requires adding parameters
bash dst.sh rollback Cluster_1 # Default return 1 Time
bash dst.sh rollback Cluster_1 3 # Specify fallback 3 Time
Echo effect
边栏推荐
- Register of assembly language by Wang Shuang
- Network learning (II) -- Introduction to socket
- OpenJudge NOI 2.1 1752:鸡兔同笼
- Application of slip ring of shipborne radar antenna
- 轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
- CDC (change data capture technology), a powerful tool for real-time database synchronization
- 在 Rainbond 中一键安装高可用 Nacos 集群
- ZCMU--1492: Problem D(C语言)
- Merging binary trees by recursion
- 解读创客思维与数学课程的实际运用
猜你喜欢
【踩坑系列】uniapp之h5 跨域的问题
快解析内网穿透助力外贸管理行业应对多种挑战
机器人教育在动手实践中的真理
Avatary的LiveDriver试用体验
Interactive book delivery - signed version of Oracle DBA work notes
Uniapp mobile terminal forced update function
eBPF Cilium实战(2) - 底层网络可观测性
云原生存储解决方案Rook-Ceph与Rainbond结合的实践
Network learning (III) -- highly concurrent socket programming (epoll)
Register of assembly language by Wang Shuang
随机推荐
Rainbond 5.6 版本发布,增加多种安装方式,优化拓扑图操作体验
Openjudge noi 2.1 1752: chicken and rabbit in the same cage
青龙面板--整理能用脚本
opencv学习笔记四——膨胀/腐蚀/开运算/闭运算
在 Rainbond 中一键安装高可用 Nacos 集群
JS copy picture to clipboard read clipboard
JS cross browser parsing XML application
互动送书-《Oracle DBA工作笔记》签名版
Game attack and defense world reverse
Dedecms collects content without writing rules
The reified keyword in kotlin is used for generics
Complex network modeling (III)
王爽 《汇编语言》之寄存器
Excel import function of jeesite form page
Réplication de vulnérabilité - désrialisation fastjson
opencv学习笔记三——图像平滑/去噪处理
Offer harvester: add and sum two long string numbers (classic interview algorithm question)
Pytoch (VI) -- model tuning tricks
uniapp 移动端强制更新功能
Myabtis_Plus