服务器2c8g,ubuntu 22.04 阿里云竞价实例
先参考此文档安装steam环境 https://developer.valvesoftware.com/wiki/SteamCMD#Linux_Scripts
我这里没有完全参考文档,是按照root权限安装的,所有后面运行幻兽帕鲁的时候,会提示无法在root环境下运行,但是可以做函数拦截来规避☺️
安装完成steam环境之后,参考这篇文档 https://docs.palworldgame.com/getting-started/about-server 安装游戏服务端,运行的时候会提示root无法运行,解决方案如下:
创建一个fakeuid.c 内容为
#define _GNU_SOURCE
#include <unistd.h>
uid_t geteuid(void)
{
return 1000;
}
uid_t getuid(void)
{
return 1000;
}
执行gcc -shared -fPIC fakeuid.c -o fakeuid.so进行编译
编译完成后启动参数添加上变量 即可
LD_PRELOAD=/fakeuid.so ./PalServer.sh -port=8888 -publiclobby -players=4 -NumberOfWorkerThreadsServer=2
接下来创建systemd进行纳管
vim /etc/systemd/system/palserver.service
[Unit]
Description=Palworld Dedicated Server
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/Steam/steamapps/common/PalServer
Environment="LD_PRELOAD=/fakeuid.so"
ExecStart=/root/Steam/steamapps/common/PalServer/PalServer.sh \
-port=8888 \
-publiclobby \
-players=4 \
-NumberOfWorkerThreadsServer=X
Restart=always
RestartSec=5
LimitNOFILE=1048576
LimitNPROC=1048576
KillSignal=SIGINT
TimeoutStopSec=120
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
This guide is helpful, but I’m cautious about relying solely on platform descriptions. Understanding the why behind the odds, not just the what, is key. Check out 1bmw tournaments for more context.
This platform seems comprehensive, especially the focus on local payments. Remember to check the fine print on any bonus-it’s crucial for managing expectations! For more insights, check out bet 888 casino.