当前位置:网站首页>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
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Mg3hnwY9-1656843855777)(image/dst file .png)]](/img/b9/6b78fae181fd6689894bb8b38dd2fc.png)
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
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-PIW4vq4C-1656843855779)(image/ The configuration area .png)]](/img/08/3a80b2d40b20cbc4f3a64a0c2c7c9e.png)
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 ![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Rn2zoYnF-1656843855779)(image/ Start the world .png)]](/img/ed/abd9b90c54a55525a034f8b3eb71d9.png)
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 ![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-ssPlsohd-1656843855779)(image/ Stop the world .png)]](/img/50/793c514805d10b1e78cf739cd7cd46.png)
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 
边栏推荐
- 在Rainbond中实现数据库结构自动化升级
- ROS bridge notes (05) - Carla_ ackermann_ Control function package (convert Ackermann messages into carlaegovehiclecontrol messages)
- Interactive book delivery - signed version of Oracle DBA work notes
- What is the function of paralleling a capacitor on the feedback resistance of the operational amplifier circuit
- Notes on PHP penetration test topics
- Network learning (III) -- highly concurrent socket programming (epoll)
- 藏书馆App基于Rainbond实现云原生DevOps的实践
- Leetcode medium question my schedule I
- [quick start of Digital IC Verification] 14. Basic syntax of SystemVerilog learning 1 (array, queue, structure, enumeration, string... Including practical exercises)
- CTF-WEB shrine模板注入nmap的基本使用
猜你喜欢

Avatary的LiveDriver试用体验

opencv学习笔记二——图像基本操作
![[quick start of Digital IC Verification] 14. Basic syntax of SystemVerilog learning 1 (array, queue, structure, enumeration, string... Including practical exercises)](/img/60/011b3ccdffa978d691436449a99e10.png)
[quick start of Digital IC Verification] 14. Basic syntax of SystemVerilog learning 1 (array, queue, structure, enumeration, string... Including practical exercises)

Real time monitoring of dog walking and rope pulling AI recognition helps smart city

Rainbond 5.7.1 支持对接多家公有云和集群异常报警

解析创新教育体系中的创客教育

JS复制图片到剪切板 读取剪切板

拓维信息使用 Rainbond 的云原生落地实践

Empire CMS collection Empire template program general

调用 pytorch API完成线性回归
随机推荐
饥荒云服管理脚本
Use of JMeter
game攻防世界逆向
互动送书-《Oracle DBA工作笔记》签名版
积分商城管理系统中应包含的四大项
Unityhub cracking & unity cracking
Full text query classification
Application of slip ring of shipborne radar antenna
Call pytorch API to complete linear regression
[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO
OpenVSCode云端IDE加入Rainbond一体化开发体系
通俗易懂单点登录SSO
拓维信息使用 Rainbond 的云原生落地实践
opencv学习笔记二——图像基本操作
Offer harvester: add and sum two long string numbers (classic interview algorithm question)
[step on the pit series] H5 cross domain problem of uniapp
BiSeNet的特點
调用 pytorch API完成线性回归
Minimum absolute difference of binary search tree (use medium order traversal as an ordered array)
Complete linear regression manually based on pytoch framework