Files
terraria-server-installer/README.md

52 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 泰拉瑞亚服务端安装脚本
此脚本可用于泰拉瑞亚服务端不同版本的安装、启动、卸载
>⚠注意脚本目前仅适用于Linux发行版
## 使用指南
### 前置条件
**脚本用到了`curl` `wget` `unzip`三个工具,脚本内置了工具是否安装的检查步骤**
如未安装,请使用操作系统对应的包管理器安装
#### Ubuntu / Debian 系
使用apt包管理器安装
```shell
sudo apt install curl wget unzip
```
#### Arch 系
使用pacman包管理器安装
```shell
sudo pacman -S curl wget unzip
```
#### RedHat 系
使用yum或dnf包管理器安装
```shell
sudo dnf install curl wget unzip
```
#### Apple Mac OS X
使用brew包管理器安装
```shell
brew install curl wget unzip
```
### 1.安装
使用`install`加版本号即可安装泰拉瑞亚服务端
```shell
bash install 1456 # 安装1.4.5.6
```
### 2.删除
使用`remove`加版本号即可删除泰拉瑞亚服务端
```shell
bash remove 1456 # 卸载1.4.5.6
```
### 3.启动
使用`run`加版本号即可删除泰拉瑞亚服务端
```shell
bash run 1456 # 启动1.4.5.6
```
>还可以使用`latest`参数直接安装、删除、启动最新版本 ~~(尚未实现)~~
如果未填入参数,则直接按最新版本安装