Skip to content

关于宝塔面板

宝塔面板是一款简单好用的服务器运维管理面板,支持中文,有较好的中文社区支持。

安装宝塔面板

访问宝塔官网,选择适合自己服务器系统的宝塔面板安装命令,按照宝塔面板官方文档进行安装

Centos安装脚本
shell
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
Ubuntu/Deepin安装脚本
shell
wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
Debian安装脚本
shell
wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec

宝塔 IYUU 运行环境

环境要求版本
php^8.3
MYSQL^5.7
Nginx^1.22
进程守护管理器*

警告!

必须启用的PHP扩展 fileinfo

安装流程

环境准备

第一步安装所需环境

首次登录会提示你进行环境安装 如下图 提示 选择修改极速安装 如果没有弹出

第二步安装所需扩展

  • 导航栏-软件商店->已安装
  • 点击PHP8.3 设置
  • 选择安装扩展选择安装扩展 等待安装完成

注意

以下方法通过git库源代码安装

拉取代码库

  • ssh终端执行
shell
cd /www/wwwroot && git clone https://gitee.com/ledc/iyuuplus-dev.git
  • 添加进程守护

打开进程守护管理器复制启动命令按照如下图添加 复制启动命令

sh
php83 /www/wwwroot/iyuuplus-dev/start.php start

查看日志确认启动成功查看日志确认启动成功

第三步 创建网站

  • 左侧导航栏->网站 选择PHP项目
  • 点击添加站点站点
  • 点击新添加的站点设置设置
ini
location ^~ / {
    proxy_set_header Host 127.0.0.1;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_http_version 1.1;

    location /app/d9422b72cffad23098ad301eea0f8419 {
        proxy_pass http://127.0.0.1:3131;
    }

    location / {
        proxy_pass http://127.0.0.1:8787;
    }

    add_header X-Cache $upstream_cache_status;

    set $static_fileKAQhbIyC 0;
    if ($uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$") {
        set $static_fileKAQhbIyC 1;
        expires 1m;
    }
    if ($static_fileKAQhbIyC = 0) {
        add_header Cache-Control no-cache;
    }
}

安装向导

您可以访问WEBUI安装界面,从而进行下一步;输入刚才新建站点中的ip或者域名

安装截图

填写数据库信息和爱语飞飞token

  • 数据库信息在左侧导航栏->数据库 安装数据库

设置管理员用户名和密码,请勿使用弱密码

创建管理员账户

点击进入后台

完成安装

输入用户名和密码,点击 登入

登陆

登录成功后

登陆成功

长链接断线


定时更新IYUU

  • 左侧导航栏->计划任务
  • 添加任务添加任务
sh
  cd /www/wwwroot/iyuuplus-dev && sh gg.sh && git pull >> /tmp/iyuuplus_update.log