Skip to content

普通安装

环境要求

php:8.2.x

mysql:>=5.7

安装步骤

1. 下载代码上传至服务器并解压

2. 新建网站指向 public 目录

3. nginx中添加请求转发

# 将下方的a8sZ7kP2替换为你的安全码,
# 访问需要带安全码,例如 https://yourdomain.com/a8sZ7kP2
location = /a8sZ7kP2 {
    add_header Set-Cookie "safe_front=1; Path=/; HttpOnly; Max-Age=604800; Secure; SameSite=Lax";
    return 302 https://$host/;
}

location = / {
    if ($cookie_safe_front != "1") {
        return 404;
    }
}

location /prod/ {
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_http_version 1.1;
    proxy_set_header Connection "";
    proxy_pass http://127.0.0.1:8989/;
}

4. 在根目录运行 php start.php start -d

5. 访问系统首页进行安装

安装向导
安装向导