访问控制面板
控制面板地址: http://<server-ip>
创建第一个管理员账户
使用控制面板前,需先创建一个管理员账户:
cd /var/www/pterodactyl
php artisan p:user:make
备份加密密钥
应用密钥(APP_KEY)是访问加密用户数据的必要凭证。
Retrieve it:
grep APP_KEY /var/www/pterodactyl/.env
请妥善备份此密钥。一旦丢失,与加密值相关的数据(API 密钥、OAuth 令牌等)将无法恢复。
配置邮件发送
密码重置和账户验证均需要邮件功能。
运行邮件配置向导:
php artisan p:environment:mail
确保此服务器允许 SMTP 连接(如需开启,请联系支持团队启用 SMTP 访问权限)。
维护模式命令
在升级或修改配置时,请使用维护模式。
Enable:
php artisan down
Disable:
php artisan up
启用 Wings(如已安装)
If wings.service 若启动失败,完成完整配置后通常可以正常启动。
使用生成的令牌(面板 → 管理 → 节点 → 选择节点 → 配置 → 自动部署 → 生成令牌)来配置 Wings:
配置完成后,重启 Wings:
sudo systemctl restart wings
重要文件与目录
- 面板应用文件:
/var/www/pterodactyl - Environment configuration:
/var/www/pterodactyl/.env - Nginx configuration:
/etc/nginx/sites-available/pterodactyl.conf - Credentials file:
/root/.cloudzy-creds - Wings 配置文件(如已安装):
/etc/pterodactyl/