Pterodactyl 翼龙面板 Daemon 安装教程

frankniubi

大佬在此
管理成员
安装完面板之后,是没有任何作用的,你还需要安装后端程序(Daemon)。
安装步骤很简单,总结起来无非是:
  1. 安装 Docker 和 NodeJs
  2. 下载并安装 Daemon 主程序
  3. 修改配置文件并启动 Daemon
一、安装 Docker 和 NodeJs
首先我们要卸载系统自带旧的 Docker
yum remove docker docker-client docker-common -y
然后安装新的 Docker,在执行第三条命令的时候要比较长时间,请耐心等待。
yum install -y yum-utils device-mapper-persistent-data lvm2
yum install docker-ce -y
systemctl start docker
接着安装 NodeJs 和必要的依赖程序
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum -y install nodejs
yum -y install tar unzip make gcc gcc-c++ python
(此处为node6.x,而nodejs官方长期支持(LTS)版为8.x。经实测,后端在nodejs8.x正常运行)

二、下载并安装 Daemon 主程序
首先创建 Daemon 工作目录和数据保存目录,这里就默认存在 /data 下
mkdir -p /data/daemon /data/daemon-data
cd /data/daemon
然后需要下载、解压并安装 Daemon 主程序,安装大约需要 1 分钟左右
curl -Lo daemon.tar.gz https://github.com/pterodactyl/daemon/releases/download/v0.5.6/daemon.tar.gz
tar --strip-components=1 -xzvf daemon.tar.gz
npm install --only=production

三、修改配置并启动 Daemon
然后我们进入面板 》右上角 Admin Control 》Location,点击右上角按钮创建一个新的可用区

这里可以自己随意填,符合规范就行。
然后转到左侧 Nodes,添加一个新的节点,按照以下图片说明来填,看不清可以右键在新窗口打开图片。

创建好节点以后,点击节点的名字,进入 Configuration,里面会有一个 json 格式的配置文件。

复制这些配置文件,回到 SSH,编辑 /data/daemon/config/core.json
vim /data/daemon/config/core.json
按 A 进入 INSERT 模式,粘贴。
然后保存并退出。
接着尝试启动后端
npm start
如果一切正常,你将会看到如下输出

接下来你可以选择两种运行 Daemon 的方法
第一种是用 screen 来运行 daemon,好处是可以实时看到日志输出,方便调试
另一种是通过服务的方式来运行,好处是可以随开机自动运行,更加方便
通过 screen 运行的方法:
screen -S daemon
npm start
然后按下 Ctrl + A + D 就可以让 Daemon 在后台运行,当你想要切换回去看日志的时候,输入
screen -r daemon
要停止运行 Daemon,直接 Ctrl + C 结束就行了。
通过服务运行的方法:
vim /etc/systemd/system/wings.service
然后按 A 进入 INSERT 模式,粘贴以下内容
[Unit]
Description=Pterodactyl Wings Daemon
After=docker.service

[Service]
User=root
#Group=some_group
WorkingDirectory=/srv/daemon
LimitNOFILE=4096
PIDFile=/var/run/wings/daemon.pid
ExecStart=/usr/bin/node /data/daemon/src/index.js
Restart=on-failure
StartLimitInterval=600
[Install]
WantedBy=multi-user.target

接着执行以下命令
systemctl daemon-reload
systemctl enable wings
systemctl start wings
你的 Daemon 就会随着开机自动运行了,若要查看运行状态,只需要输入
service wings status
停止 Daemon 的方法
systemctl stop wings
启动 Daemon 的方法
systemctl start wings
禁止 Daemon 开机启动的方法
systemctl disable wings
至此,你已经完成了 Daemon 的安装、配置和运行,可以开始使用了
 
最后编辑:

A775566

New member
翼龙支持ubuntu18.04吗?
 

yaxipcooh

New member
Psychopathology vvp.rbcg.mcbar.cn.ygj.qi fill online pills retin-a buy levolin inhaler without prescription buy levolin inhaler without prescription dexona solutab without dr prescription plendil dubai buying renova overnight lasix buy cheap isotretinoin generic tadalafil for sale on internet ritomune lowest cialis prices generic cialis uk hytrin prednisone buying clomid in israel buy legal fda approved tropicamet cheap doxycycline cheap epivir-hbv online usa generic nizagara at walmart celexa capsules walmart probalan cost ddavp skelaxin eryc internet search prednisone without prescription costi terramycin order semenax generic online albenza movfor online pharmacy movfor websites mexico rumalaya-fort no prescription flucinar gel walmart i pill price cytotec pills canada isentress mobic by perscription nizagara.com viagra en ligne 5mg zyrtec pills secure tabs clonil-sr priligy nexium online usa wrong, <a href="https://airportcarservicesandiego.com/retin-a-generic/">retin a</a> <a href="https://darlenesgiftshop.com/levolin-inhaler/">online pharmacy no prescription levolin-inhaler</a> <a href="https://lilliputsurgery.com/dexona-solutab/">pharmacy dexona-solutab online</a> <a href="https://airportcarservicesandiego.com/plendil/">plendil 5mg tb</a> <a href="https://weddingadviceuk.com/item/renova/">renova in canada online</a> buy renova online canada <a href="https://fontanellabenevento.com/buy-lasix-without-prescription/">lasix</a> <a href="https://fontanellabenevento.com/pill/isotretinoin/">pharmacy australia isotretinoin</a> <a href="https://mychik.com/item/calcort/">calcort generic</a> <a href="https://flowerpopular.com/ritomune/">ritomune on line</a> <a href="https://heavenlyhappyhour.com/lowest-cialis-prices/">cialis</a> <a href="https://andrealangforddesigns.com/hytrin/">hytrin</a> <a href="https://happytrailsforever.com/prednisone-without-dr-prescription/">prednisone</a> <a href="https://driverstestingmi.com/clomid/">clomid</a> <a href="https://sjsbrookfield.org/tropicamet/">best price tropicamet</a> <a href="https://petralovecoach.com/no-prescription-doxycycline/">no prescription doxycycline</a> <a href="https://andrealangforddesigns.com/drugs/epivir-hbv/">purchasing 100 mg epivir-hbv on line</a> <a href="https://nizagaraonline.com/">nizagara without pres</a> <a href="https://darlenesgiftshop.com/item/celexa/">celexa capsules for sale</a> <a href="https://reso-nation.org/probalan/">purchase probalan with debit card</a> <a href="https://tacticaltrappingservices.com/ddavp/">ddavp best price</a> <a href="https://thecultivarte.com/skelaxin/">acheter skelaxin montreal</a> <a href="https://thecultivarte.com/eryc/">eryc online no script</a> <a href="https://damcf.org/prednisone/">prednisone online</a> <a href="https://darlenesgiftshop.com/item/terramycin/">terramycin buy in canada</a> <a href="https://smnet1.org/product/semenax/">low cost semenax</a> <a href="https://mywyomingstore.com/albenza/">order albenza online</a> canadian albenza <a href="https://tacticaltrappingservices.com/movfor/">movfor</a> <a href="https://mplseye.com/item/rumalaya-fort/">rumalaya fort price walmart</a> <a href="https://lilliputsurgery.com/flucinar-gel/">online generic flucinar gel</a> <a href="https://endmedicaldebt.com/i-pill/">i pill price walmart</a> <a href="https://petermillerfineart.com/cytotec/">cytotec online no script</a> <a href="https://fairbusinessgoodwillappraisal.com/product/isentress/">isentress</a> <a href="https://cubscoutpack152.org/mobic/">mobic</a> <a href="https://endmedicaldebt.com/nizagara/">buy nizagara</a> <a href="https://driverstestingmi.com/viagra/">viagra without dr prescription usa</a> <a href="https://petralovecoach.com/zyrtec/">price of zyrtec</a> <a href="https://darlenesgiftshop.com/item/clonil-sr/">canadian mail order clonil-sr</a> <a href="https://driverstestingmi.com/priligy/">priligy online</a> <a href="https://fontanellabenevento.com/pill/nexium/">buying nexium online</a> has, well-demarcated https://airportcarservicesandiego.com/retin-a-generic/ purchase retin a https://darlenesgiftshop.com/levolin-inhaler/ online generic levolin-inhaler https://lilliputsurgery.com/dexona-solutab/ dexona-solutab sold in the us only https://airportcarservicesandiego.com/plendil/ plendil no prescription plendil price walmart https://weddingadviceuk.com/item/renova/ purchasing renova on the internet https://fontanellabenevento.com/buy-lasix-without-prescription/ lasix price https://fontanellabenevento.com/pill/isotretinoin/ pharmacy australia isotretinoin https://mychik.com/item/calcort/ calcort generic https://flowerpopular.com/ritomune/ ritomune https://heavenlyhappyhour.com/lowest-cialis-prices/ best price cialis https://andrealangforddesigns.com/hytrin/ hytrin www.hytrin.com https://happytrailsforever.com/prednisone-without-dr-prescription/ prednisone without dr prescription https://driverstestingmi.com/clomid/ order clomid online https://sjsbrookfield.org/tropicamet/ best price 5ml generic tropicamet on line https://petralovecoach.com/no-prescription-doxycycline/ discount doxycycline https://andrealangforddesigns.com/drugs/epivir-hbv/ epivir-hbv cialis online order https://nizagaraonline.com/ nizagara for sale https://darlenesgiftshop.com/item/celexa/ celexa capsules for sale https://reso-nation.org/probalan/ generic probalan with international shipping https://tacticaltrappingservices.com/ddavp/ ddavp uk https://thecultivarte.com/skelaxin/ skelaxin https://thecultivarte.com/eryc/ eryc capsules for sale https://damcf.org/prednisone/ prednisone https://darlenesgiftshop.com/item/terramycin/ terramycin buy in canada https://smnet1.org/product/semenax/ walmart semenax https://mywyomingstore.com/albenza/ albenza buy online https://tacticaltrappingservices.com/movfor/ buy movfor on line movfor at discount price https://mplseye.com/item/rumalaya-fort/ generico do rumalaya-fort https://lilliputsurgery.com/flucinar-gel/ order flucinar gel flucinar gel https://endmedicaldebt.com/i-pill/ best price i pill https://petermillerfineart.com/cytotec/ online generic cytotec https://fairbusinessgoodwillappraisal.com/product/isentress/ isentressn sin receta en us https://cubscoutpack152.org/mobic/ mobic https://endmedicaldebt.com/nizagara/ cheapest nizagara https://driverstestingmi.com/viagra/ viagra generic https://petralovecoach.com/zyrtec/ price of zyrtec https://darlenesgiftshop.com/item/clonil-sr/ clonil-sr for sale in usa stores https://driverstestingmi.com/priligy/ priligy best price usa https://fontanellabenevento.com/pill/nexium/ buy nexium online cheap disrupt probable.
 
顶部