添加 完善latest参数行为与无参默认行为
This commit is contained in:
39
README.md
39
README.md
@@ -1,23 +1,52 @@
|
||||
# 泰拉瑞亚服务端安装脚本
|
||||
此脚本可用于泰拉瑞亚服务端不同版本的安装、启动、卸载
|
||||
>⚠️注意!脚本目前仅适用于Ubuntu/Debian等使用apt作为包管理器的Linux发行版
|
||||
>⚠️注意!脚本目前仅适用于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
|
||||
install 1456 # 安装1.4.5.6
|
||||
bash install 1456 # 安装1.4.5.6
|
||||
```
|
||||
|
||||
### 2.删除
|
||||
使用`remove`加版本号即可删除泰拉瑞亚服务端
|
||||
```shell
|
||||
remove 1456 # 卸载1.4.5.6
|
||||
bash remove 1456 # 卸载1.4.5.6
|
||||
```
|
||||
|
||||
### 3.启动
|
||||
使用`run`加版本号即可删除泰拉瑞亚服务端
|
||||
```shell
|
||||
run 1456 # 启动1.4.5.6
|
||||
bash run 1456 # 启动1.4.5.6
|
||||
```
|
||||
>还可以使用`latest`参数直接安装、删除、启动最新版本 (尚未实现)
|
||||
>还可以使用`latest`参数直接安装、删除、启动最新版本 ~~(尚未实现)~~
|
||||
如果未填入参数,则直接按最新版本安装
|
||||
Reference in New Issue
Block a user