ArchiSteamFarm安装教程【Ubuntu】
项目简介:
项目地址:ArchiSteamFarm
1.环境准备
(1)更新软件包列表
sudo apt update
(2)安装 .NET SDK 或运行时: 根据需求选择安装 .NET SDK 或 .NET Runtime
安装 .NET SDK(开发环境,包含运行时):
sudo apt install dotnet-sdk-8.0
仅安装 .NET 运行时(适用于运行程序):
sudo apt install dotnet-host-8.0
(3)验证安装是否成功
dotnet --version
2.安装步骤
(1)创建一个名为 ASF 的目录,用于存放 ASF 的文件。
①wget https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/6.1.0.3/ASF-linux-x64.zip
②unzip ASF-linux-x64.zip -d ASF
③cd ASF
④./ArchiSteamFarm
3.后台维护
(1)创建一个 systemd 服务文件:
①sudo nano /usr/lib/systemd/system/asf.service
②【文件】asf.service
[Unit]
Description=ASF Service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=1
WorkingDirectory=/home/ubuntu/ASF
ExecStart=/home/ubuntu/ASF/ArchiSteamFarm
User=ubuntu
Group=ubuntu
[Install]
WantedBy=multi-user.target
Ctrl+o保存
(2)//操作
sudo systemctl daemon-reload
sudo systemctl enable ASF
sudo systemctl start ASF
sudo systemctl stop ASF
//
(3)配置文件
【文件1】ASF.json
{
"IPCPassword": "135331QAZwsx@asf"
}
【文件2】IPC.config
{
"Kestrel": {
"Endpoints": {
"HTTP": {
"Url": "http://*:1242"
}
}
}
}

评论
发表评论