本文最后更新于 2024-02-10,文章内容可能已经过时!

Github:https://github.com/MCSManager/MCSManager

一键脚本

国内用户

wget -qO- https://gitee.com/mcsmanager/script/raw/master/setup_cn.sh | bash

原始源(科学上网)

wget -qO- https://raw.githubusercontent.com/mcsmanager/Script/master/setup.sh | bash

手动安装

更新系统

sudo apt-get update && sudo apt upgrade -y

安装node 18(Node 14.17.0+)

curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
apt-get install -y nodejs

创建目录并进入

mkdir /root/mcsmanager/ && cd /root/mcsmanager/

下载面板端(Web)程序

git clone https://github.com/MCSManager/MCSManager-Web-Production.git web && cd web

安装依赖库

npm install --production --registry\=https://registry.npmmirror.com/

下载守护进程(Daemon)程序

git clone https://github.com/MCSManager/MCSManager-Daemon-Production.git daemon && cd daemon

安装依赖库

npm install --production --registry=https://registry.npmmirror.com/

守护进程

安装screen

apt install screen -y

命令大全

screen -S xxx   //创建窗口
screen -R xxx   //打开窗口
screen -ls xxx  //查看窗口