Deploy Minecraft Servers on Linux(3)Install Management Panel

This article has been included in the column of this site
Minecraft Server

0. Preface

Through the first two articles, the configuration of the server part is basically completed, and everything is ready. The last step is the most critical step, which is the installation and use of the Minecraft server panel.

1, MCSManager panel

What is the MCSManager panel?

MCSManager panel (referred to as: MCSM panel) is an all-Chinese, lightweight, out-of-the-box, multi-instance and Docker-supported Minecraft server management panel.

This control panel has gained a certain popularity in the Minecraft and other gaming communities, it can help you centrally manage multiple servers, or assign accounts to others without worrying too much about security, and it is also useful for commercial activities. basic function.

What copyright restrictions does MCSManager have?

The product is free to use, subject to the user agreement.

permitted
Modify, copy and distribute the software source code.
Use the software for commercial use and make a profit.

Required
If you have modified code, you must unconditionally disclose your modified source code.
Retain copyright notices in code files, interface.

Prohibited
It is prohibited to sell the software itself or its parts, apply for patents, copyrights, etc.

GitHub repository address:

MCSManager official GitHub account
https://github.com/MCSManager

2, installation

MCSManager supports multiple installation methods.

2.1, One-click installation

Install script:

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

Precautions:

  1. The script is only for AMD64 architecture (Ubuntu/Centos/Debian/Archlinux)
  2. After the execution is complete, use systemctl start mcsm-{web,daemon} to start the panel service.
  3. The panel code and operating environment are automatically installed in the /opt/mcsmanager/ directory.

2.2, manual installation

Installation instructions:

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

You need to access GitHub to download resources during installation. If the server has difficulty accessing GitHub, you can refer to the article on this site:

Build a GitHub mirror site
https://blog.tsinbei.com/archives/152/

2.3, set the boot to start

There are two methods for pro-testing. It is recommended for beginners to use the Supervisor manager and the Bt Linux panel for management, which is convenient and fast.

Bt server panel, one-click all-round deployment and management, give you a gift package of 3188 yuan, click me to receive
https://www.bt.cn/?invite_code=MV93cm1wcGQ=

Veterans or those who don't like to use the Bt are recommended to use Systemctl management.

For more Bt-related tutorials, please refer to this column

Play Bt Linux Panel

2.3.1, Systemctl

If you use one-click installation, you can directly use systemctl to manage and skip this step.

Create and edit files

/lib/systemd/system/mcsm.service

enter

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

implement

Bash
1
2
systemctl daemon-reload
systemctl enable mcsm

Save and set to auto-start at boot.

Common commands:

Bash
1
2
3
4
5
systemctl start mcsm # start
systemctl stop mcsm # close
systemctl status mcsm # View status
systemctl disable mcsm # Turn off auto-start
rm - rf /lib/systemd/system/mcsm.service && systemctl daemon-reload # delete service

2.3.2, Supervisor

In the Bt panel, install the free plugin Supervisor Manager and add the daemon:

add daemon

Text
1
2
3
4
5
Name: MCSManager
Start user: root
Run directory: /opt/MCSManager/
Start command: /usr/bin/node /opt/MCSManager/app.js
Number of processes: 1

Configuration page

Most of them can be left as default.

If you find that the status is FATAL or BACKOFF after startup, you can go to the log page to view the error log.

3. Use

3.1, open ports

First, you need to open the server port.

Open the server console, take Tencent Cloud as an example:

https://console.cloud.tencent.com

Add the port, the Minecraft server defaults to TCP/25565. If you need to open multiple servers, it is recommended to open the port segment: TCP / 25500-25600

Passport

Open the Bt panel, install the system firewall plug-in, and open the specified port or all ports:

pass port

If it still doesn't open, try disabling the firewall:

Bash
1
2
3
4
5
# Turn off the firewall and execute in sequence
systemctl stop firewalld
systemctl disable firewalld
systemctl mask firewalld
service iptables stop

Or try changing the port.

3.2, configure reverse proxy

Tip: Before configuring the reverse proxy, please install NGINX using the Bt Linux panel.

The purpose of a reverse proxy is usually to pass all traffic through Nginx for further optimization, etc.

And due to the stricter control, using HTTP to access non-80 ports may be accidentally injured and hijacked to the undocumented prompt page.

Add a website to the website list, for example:

mc-console.com

Apply for an SSL certificate, or use a self-signed certificate.

Configure SSL

Add reverse proxy:

Add reverse proxy

The name is MCSManager and the target is http://127.0.0.1:23333.

Select the configuration file and change to

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

Most of them are default configurations, the key lies in the part after location /websocket/ws.

3.3, change the MCSManager configuration

Revise

/opt/MCSManager/public\common\URL.js

for

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

Effect picture:

4. Login

Old version default account password:

Account: #master
Password: 123456

The new version of the default account password:

Account: root
Password: 123456

To ensure server security, please change your password after the first login!

Deploy Minecraft Servers on Linux(3)Install Management Panel

https://blog.tsinbei.com/en/archives/435/

Author
Hsukqi Lee
Posted on

2022-06-03

Edited on

2022-07-28

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
1 条

Namigus

Namigus

I really need this

  回复