|
Linux服务器 MCSM面板
浏览器访问MCSM官网: mcsm官网 点击立刻下载按钮
复制Linux的安装脚本到服务器中
执行脚本
等待MCSM面板安装相关依赖以及本体
随后根据提示 启动mcsm的web服务以及daemon服务
- [root@iKuaiOS opt]# systemctl start mcsm-web // 启动web服务
- [root@iKuaiOS opt]# systemctl start mcsm-daemon // 启动daemon服务
复制代码
根据要求放通23333 24444端口或关闭防火墙(我直接关闭了)
- 关闭防火墙:systemctl stop firewalld
- 关闭SELinux : setenforce 0
复制代码
浏览器访问MCSM面板后台 http://服务器的IP:23333
到此MCSM面板安装完成
进入linux的ssh输入docker安装命令
- yum install -y docker // Centos系统中使用yum安装docker
- 其他操作系统请自行百度查阅
复制代码
启动docker
- systemctl start docker // 启动docker
复制代码
打开mcsm面板后台 左侧导航栏依次选择 【环境镜像】 - 【远程节点列表中的节点右侧环境镜像管理】
新建镜像
根据需求安装对应镜像 也可以全部都安装一遍
以openjdk 8 演示
稍等片刻 等待提示构架完成
[zd-plane title="查看构建进度方法"]
[/zd-plane]
提示构建完毕即可
打开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 服务是提供用户管理和网页访问功能的服务,守护进程是提供进程管理和容器管理的服务。两者都是必不可少的。如果某个功能无法正常工作,您可以只重新启动这部分服务来热修复问题。 - # 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
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|