【茶馆闲聊】MCSM面板搭建教学
版权类型:原创
中文名称:面板搭建
英文名称:MCSM
原帖地址:发表帖子 - 茶馆闲聊 - 我的世界南瓜中文论坛 - 我的世界南瓜中文论坛 (ppbbs.top)
支持的核心(服务端):全核心
支持语言:中文&英文
适配版本(Java):全版本
环境要求
Linux服务器 MCSM面板
安装MCSM面板
浏览器访问MCSM官网:mcsm官网点击立刻下载按钮
复制Linux的安装脚本到服务器中
执行脚本
等待MCSM面板安装相关依赖以及本体
随后根据提示 启动mcsm的web服务以及daemon服务
# systemctl start mcsm-web // 启动web服务
# systemctl start mcsm-daemon // 启动daemon服务
根据要求放通23333 24444端口或关闭防火墙(我直接关闭了)
关闭防火墙:systemctl stop firewalld
关闭SELinux : setenforce 0
浏览器访问MCSM面板后台 http://服务器的IP:23333
到此MCSM面板安装完成
MCSM面板配置
Docker环境安装部署
1、Linux中安装docker环境
进入linux的ssh输入docker安装命令
yum install -y docker // Centos系统中使用yum安装docker
其他操作系统请自行百度查阅
启动docker
systemctl start docker // 启动docker
2、mcsm中新建docker镜像
打开mcsm面板后台 左侧导航栏依次选择 【环境镜像】 - 【远程节点列表中的节点右侧环境镜像管理】
新建镜像
根据需求安装对应镜像 也可以全部都安装一遍
以openjdk 8 演示
稍等片刻 等待提示构架完成
提示构建完毕即可
获取MCSM-API密钥
打开mcsm面板 右上角用户名 - 个人资料
选择生成API密钥即可
Linux 安装脚本由于需要注册到系统服务,因此安装脚本必须以 root 运行。sudo su -c "wget -qO- https://script.mcsmanager.com/setup_cn.sh | bash"启动方法# Start the panel daemon first.
# This is a service process used for process control and terminal management.
systemctl start mcsm-daemon.service
# Start the panel web service again.
# This is used to implement services that support web page access and user management.
systemctl start mcsm-web.service
# Restart panel command
systemctl restart mcsm-daemon.service
systemctl restart mcsm-web.service
# Stop panel command
systemctl stop mcsm-web.service
systemctl stop mcsm-daemon.service提示
如果命令无法启动面板,您可以参考下面的 来启动 MCSManager。但这需要你使用其他后台运行的程序来接管,否则当你的终端断开连接时,手动启动的 MCSManager 面板也会被系统强行终止。systemctlStartup MethodManual installationSSH
面板 Web 服务是提供用户管理和网页访问功能的服务,守护进程是提供进程管理和容器管理的服务。两者都是必不可少的。如果某个功能无法正常工作,您可以只重新启动这部分服务来热修复问题。Linux 手动安装# Switch to the installation directory, you can also change to other directories.
cd /opt/
# Download Node.js 20.11. If you already have Node.js 16+ installed, ignore this step.
wget https://nodejs.org/dist/v20.11.0/node-v20.11.0-linux-x64.tar.xz
tar -xvf node-v20.11.0-linux-x64.tar.xz
# Add NodeJS to system PATH
ln -s /opt/node-v20.11.0-linux-x64/bin/node /usr/bin/node
ln -s /opt/node-v20.11.0-linux-x64/bin/npm /usr/bin/npm
# Prepare MCSM's installation directory
mkdir /opt/mcsmanager/
cd /opt/mcsmanager/
# Download MCSManager
wget https://github.com/MCSManager/MCSManager/releases/latest/download/mcsmanager_linux_release.tar.gz
# Unzip to the installation directory
tar -zxf mcsmanager_linux_release.tar.gz启动方法#Install dependent libraries
./install.sh
# Please use the Screen program to open two terminal windows (or other takeover programs)
# Start the node program first
./start-daemon.sh
# Start the Web panel service in the second terminal
./start-web.sh
# Access http://localhost:23333/ for the web interface
# Generally speaking, network applications will automatically scan and connect to the local daemon.
# Default ports that need to be opened: 23333 and 24444
页:
[1]