Coder Social home page Coder Social logo

p-manager's Introduction

P-Manager

Documentation

Installation

  1. Install the requirements
apt -y update && apt-get -y upgrade
apt -y install make wget curl vim git openssl cron
  1. Install BBR (Optional)
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
  1. Install P-Manager
git clone https://github.com/miladrahimi/p-manager.git
cd p-manager
make setup

Admin Panel

Access the admin panel at the default port 8080.

Default credentials

  • Username: admin
  • Password: password

Tabs

  • Users: Manage users and view their public profiles
  • Servers: Manage P-Nodes
  • Settings: Modify general settings
  • Exit: Sign out of the admin panel

Configuration

You can customize the web panel port and additional settings by modifying the configuration file found at:

configs/main.json

It requires systemctl restart p-manager to apply changes.

Update

Automatic updates are set up through cron jobs by default. For earlier updates, run the command below:

make update

Status and Logs

The application service is named after its directory, with p-manager as the default in systemd. It allows running multiple instances on a single server by placing the application in different directories with different names (like p-manager-2 and p-manager-3).

To check the status of the application, execute the following command:

systemctl status p-manager

To view the application's standard outputs, execute the command below:

journalctl -f -u p-manager

The application logs will be stored in the following directory:

./storage/logs

Backups and Recovery

The application performs hourly database backups and saves them to the path below.

./storage/database/backup-%weekday-%hour.json

It creates a total of 168 backup files (7 days x 24 hours), covering a full week. Backups older than one week are unavailable due to the file path structure.

To restore the most recent backup, execute the following command:

make recover

You can manually stop the application service, replace the backup file with ./storage/database/app.json, and start the service again.

Requirements

  • Operating systems: Debian or Ubuntu
  • Architecture: amd64
  • RAM: 1 GB or more
  • CPU: 1 Core or more

Links

License

This project is governed by the terms of the LICENSE.

p-manager's People

Contributors

miladrahimi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

p-manager's Issues

-

Hi. I was searching github and encountered your projects.
haven't read much of p-node but I think I've got the idea of what it's been planned to do.
I have a similar idea implemented that you may be interested in.
You are more than welcome to contact me on telegram.

sorry for the inconvenience of leaving a message in issues.

happy new year, dawsh

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.