Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercai committed Jan 24, 2024
1 parent a45fbbf commit 29a56ea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@

幻兽帕鲁服务端搭建

# 帕鲁 · 启动!

以下内容保存为脚本,可用于快速启动服务端。存档文件位于`saved_game`文件夹内,便于备份。

```bash
#!/bin/bash
file_path=`readlink -f $0`
dir_path=`dirname $file_path`

sudo docker stop palworld_server
sudo docker rm palworld_server

sudo docker pull dextercai/palworld_server:x86_latest

sudo docker run -it \
--name palworld_server --restart always \
-p 8211:8211/udp \
-v ${dir_path}/saved_game/:/home/steam/Steam/steamapps/common/PalServer/Pal/Saved/ \
-d dextercai/palworld_server:x86_latest \
/home/steam/Steam/steamapps/common/PalServer/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS

```

# 以下内容适用于具有一定运维能力的用户

## x86 Image

服务端启动:`/home/steam/Steam/steamapps/common/PalServer/PalServer.sh`
Expand Down
4 changes: 2 additions & 2 deletions run_x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ dir_path=`dirname $file_path`
sudo docker stop palworld_server
sudo docker rm palworld_server

sudo docker pull dextercai/palworld_server:latest
sudo docker pull dextercai/palworld_server:x86_latest

sudo docker run -it \
--name palworld_server --restart always \
-p 8211:8211/udp \
-v ${dir_path}/saved_game/:/home/steam/Steam/steamapps/common/PalServer/Pal/Saved/ \
-d dextercai/palworld_server:latest \
-d dextercai/palworld_server:x86_latest \
/home/steam/Steam/steamapps/common/PalServer/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS

0 comments on commit 29a56ea

Please sign in to comment.