查看: 2796|回复: 0

[技巧知识] 【茶馆闲聊】MCSM面板搭建教学

[复制链接] 主动推送
回帖奖励 20 个金粒 回复本帖可获得 1 个金粒奖励! 每人限 1 次
  • TA的每日心情

    7 天前
  • 签到天数: 400 天

    [LV.9]以坛为家II

     成长值: 3480

    577

    帖子

    2万

    金粒

    83

    绿宝石

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    56054

    精华能手金粒多多大V专属插件元老南瓜新人活跃会员信誉南瓜推广达人宣传达人灌水之王贡献元老优秀版主荣誉管理论坛元老

    发表于 2024-8-29 16:33:14 | 显示全部楼层 |阅读模式
    版权类型:原创
    中文名称:面板搭建
    英文名称:MCSM
    原帖地址:发表帖子 - 茶馆闲聊 - 我的世界南瓜中文论坛 - 我的世界南瓜中文论坛 (ppbbs.top)
    支持的核心(服务端):全核心
    支持语言:中文&英文
    适配版本(Java):全版本
    环境要求

    Linux服务器 MCSM面板
    安装MCSM面板

    浏览器访问MCSM官网:  mcsm官网  点击立刻下载按钮

    复制Linux的安装脚本到服务器中

    执行脚本

    等待MCSM面板安装相关依赖以及本体



    随后根据提示 启动mcsm的web服务以及daemon服务
    1. [root@iKuaiOS opt]# systemctl start mcsm-web // 启动web服务
    2. [root@iKuaiOS opt]# systemctl start mcsm-daemon // 启动daemon服务
    复制代码

    根据要求放通23333 24444端口或关闭防火墙(我直接关闭了)
    1. 关闭防火墙:systemctl stop firewalld
    2. 关闭SELinux : setenforce 0
    复制代码

    浏览器访问MCSM面板后台 http://服务器的IP:23333



    到此MCSM面板安装完成
    MCSM面板配置
    Docker环境安装部署
    1、Linux中安装docker环境

    进入linux的ssh输入docker安装命令
    1. yum install -y docker // Centos系统中使用yum安装docker
    2. 其他操作系统请自行百度查阅
    复制代码

    启动docker
    1. systemctl start docker // 启动docker
    复制代码
    2、mcsm中新建docker镜像

    打开mcsm面板后台 左侧导航栏依次选择 【环境镜像】 - 【远程节点列表中的节点右侧环境镜像管理】

    新建镜像

    根据需求安装对应镜像 也可以全部都安装一遍

    以openjdk 8 演示


    稍等片刻 等待提示构架完成

    [zd-plane title="查看构建进度方法"]

    [/zd-plane]
    提示构建完毕即可

    获取MCSM-API密钥

    打开mcsm面板 右上角用户名 - 个人资料

    选择生成API密钥即可

    Linux 安装脚本由于需要注册到系统服务,因此安装脚本必须以 root 运行。
    1. sudo su -c "wget -qO- https://script.mcsmanager.com/setup_cn.sh | bash"
    复制代码
    启动方法
    1. # Start the panel daemon first.
    2. # This is a service process used for process control and terminal management.
    3. systemctl start mcsm-daemon.service
    4. # Start the panel web service again.
    5. # This is used to implement services that support web page access and user management.
    6. systemctl start mcsm-web.service

    7. # Restart panel command
    8. systemctl restart mcsm-daemon.service
    9. systemctl restart mcsm-web.service

    10. # Stop panel command
    11. systemctl stop mcsm-web.service
    12. systemctl stop mcsm-daemon.service
    复制代码
    提示
    如果命令无法启动面板,您可以参考下面的 来启动 MCSManager。但这需要你使用其他后台运行的程序来接管,否则当你的终端断开连接时,手动启动的 MCSManager 面板也会被系统强行终止。systemctlStartup MethodManual installationSSH
    面板 Web 服务是提供用户管理和网页访问功能的服务,守护进程是提供进程管理和容器管理的服务。两者都是必不可少的。如果某个功能无法正常工作,您可以只重新启动这部分服务来热修复问题。
    Linux 手动安装
    1. # Switch to the installation directory, you can also change to other directories.
    2. cd /opt/

    3. # Download Node.js 20.11. If you already have Node.js 16+ installed, ignore this step.
    4. wget https://nodejs.org/dist/v20.11.0/node-v20.11.0-linux-x64.tar.xz
    5. tar -xvf node-v20.11.0-linux-x64.tar.xz

    6. # Add NodeJS to system PATH
    7. ln -s /opt/node-v20.11.0-linux-x64/bin/node /usr/bin/node
    8. ln -s /opt/node-v20.11.0-linux-x64/bin/npm /usr/bin/npm

    9. # Prepare MCSM's installation directory
    10. mkdir /opt/mcsmanager/
    11. cd /opt/mcsmanager/

    12. # Download MCSManager
    13. wget https://github.com/MCSManager/MCSManager/releases/latest/download/mcsmanager_linux_release.tar.gz

    14. # Unzip to the installation directory
    15. tar -zxf mcsmanager_linux_release.tar.gz
    复制代码
    启动方法
    1. #Install dependent libraries
    2. ./install.sh

    3. # Please use the Screen program to open two terminal windows (or other takeover programs)

    4. # Start the node program first
    5. ./start-daemon.sh

    6. # Start the Web panel service in the second terminal
    7. ./start-web.sh

    8. # Access http://localhost:23333/ for the web interface
    9. # Generally speaking, network applications will automatically scan and connect to the local daemon.
    10. # Default ports that need to be opened: 23333 and 24444
    复制代码


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Powered by CloudCatc

    © 2024-2025 CloudCatc Team.

    快速回复 返回顶部 返回列表