Skip to content

宝塔安装步骤

上传并解压代码

上传并解压代码
上传并解压代码

新建异步项目

启动命令:php start.php start

新建异步项目
新建异步项目

配置站点

配置站点
配置站点

设置运行目录

设置运行目录
设置运行目录

设置伪静态

设置伪静态
设置伪静态
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/;
}

启动并访问首页进行后续安装

安装向导
安装向导

常见问题

通过宝塔安装云管家后如果访问首页并不是显示安装界面而是欢迎页面,是因为设置public目录时,宝塔会自动创建index.html,把云管家的覆盖了,重新上传index.html覆盖掉。