Code Monkey home page Code Monkey logo

phira-mp's Introduction

phira-mp

phira-mp is a project developed with Rust. Below are the steps to deploy and run this project.

简体中文 | English Version

Environment

  • Rust 1.70 or later

Server Installation

For Linux

Dependent

First, install Rust if you haven't already. You can do so by following the instructions at https://www.rust-lang.org/tools/install

For Ubuntu or Debian users, use the following command to install curl if it isn't installed yet:

sudo apt install curl

For Fedora or CentOS users, use the following command:

sudo yum install curl

After curl is installed, install Rust with the following command:

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

Then, build the project:

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

unning the Server

You can run the application with the following command:

RUST_LOG=info target/release/phira-mp-server

Troubleshooting

If you encounter issues related to openssl, ensure that you have libssl-dev (for Ubuntu or Debian) or openssl-devel (for Fedora or CentOS) installed. If the issue persists, you can set the OPENSSL_DIR environment variable for the compilation process.

If you're compiling on Linux and targeting Linux and get a message about pkg-config being missing, you may need to install it:

# For Ubuntu or Debian
sudo apt install pkg-config libssl-dev 

# For Fedora or CentOS
sudo dnf install pkg-config openssl-devel

For other issues, please refer to the specific error messages and adjust your environment accordingly.

Monitoring

You can check the running process and the port it's listening on with:

ps -aux | grep phira-mp-server
netstat -tuln | grep 12345

image

For Windows or Android

View: https://docs.qq.com/doc/DU1dlekx3U096REdD

phira-mp's People

Contributors

mivik avatar okatu-loli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.