二叉树树

二叉树树

瞎几吧写

Phira Multi-Player Online Server Setup Tutorial

Directly Download Server Files and Run#

Here are some server files automatically built by Github Action, covering the following systems and architectures
358f810c21412b5dfd50dfd843b82b42

You can also go to Multiplayer Server | Dmocken's Phira Download Station to find them yourself.

Look for files suitable for your system, download them, and execute. The default server will open on port 12346 of your host. If you need to customize the port, please use the --port parameter to specify the port. Then you can use Phira to fill in IP/domain to connect.


Since phira-mp uses the Log module that comes with Rust, if you need logs, please install Rust yourself. After ensuring that you have installed the Rust environment, you can use RUST_LOG=info phira-mp server to obtain logs.

Build Yourself (Advanced)#

Since phira-mp is written in Rust, if you want to build it yourself, you need to install the Rust environment on your operating system.

For Windows#

Go to Rust Download Page and download Rust.
81a5e915f8b7ed064f9f4001b8a9a2fe

After opening, a CMD window will pop up. Enter 1 (Quick Install) and press Enter, then wait for Visual Studio to install (if this step is slow, you can also download manually).

0bd00b28ccdf4f4b56e257a9cecb361e
In Visual Studio, check Desktop development with C++, and then install.

61e36899a682e46191e4941de8b8fb58

For Linux#

Execute: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Select 1 and press Enter.

Execute: source $HOME/.cargo/env

Use Rust to Build phira-mp#

Clone the repository: git clone https://github.com/TeamFlos/phira-mp.git (IPv6 not supported) or git clone https://github.com/afoim/phira-mp-autobuild.git (IPv6 supported).

cd phira-mp or cd phira-mp-autobuild

Update dependencies: cargo update

Build: cargo build --release -p phira-mp-server

Run the program and print logs to the terminal, which will show the port you are listening to: RUST_LOG=info target/release/phira-mp-server
(If you need to specify the port number: RUST_LOG=info target/release/phira-mp-server --port 8080)

924ac457e571183e86562a42f1c249e7

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.