步骤

Step 1

安装 1Panel 面板

Step 2

创建 PHP运行环境(这次我安装的是 8.4.6,安装 7 以后的版本都行),并安装扩展(扩展模板选择默认,然后再添加 fileinfoimagick,这两个是主要的)

Step 3

下载 ImgURL 压缩包,下载地址:https://github.com/helloxz/imgurl/releases

Step 4

新建 PHP站点,然后把 ImgURL 压缩包上传到站点根目录并解压

Step 5

关闭 防盗链

Step 6

设置 伪静态

BASH
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.(db3|json)$ {
  deny all;
}
location ~* ^/(temp|upload|imgs|data|application|static|system)/.*.(php|php5)$ {
    return 403;
}
点击展开查看更多

Step 7

访问自己的域名安装 ImgURL ,如果正常会看到 ImgURL 安装界面

参考

  1. ImgUrl Github项目

版权声明

作者: Donghai Gong

链接: https://mgrowup.com/posts/website/1panel-imgurl/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

评论

Current Language: zh-cn

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键