搭建 FileRun 个人网盘

FileRun——一款简洁、漂亮且功能强大的个人网盘。 优点: 美 可直接访问本地目录 传输文件速度快(原因不明,但是比 NextCloud 快) 缺点: 没有手机端客户端 环境:CentOS 7 需求:Nginx,PHP 7.1-7.3,MySQL 安装 FileRun # 创建安装目录 mkdir -p /var/www/filerun && cd /var/www/filerun # 下载并解压安装包 wget -O FileRun.zip http://www.filerun.com/download-latest && unzip FileRun.zip # 更改安装目录权限 chmod -Rf 777 /var/www/filerun 配置 Nginx 修改 /etc/nginx/nginx.conf 中的 server 段。 # /etc/nginx/nginx.conf -> server{ } server { listen 80; server_name _; root /var/www/filerun; # 修改上传文件大小上限 client_max_body_size 10240m; # Load configuration files for the default server block. # 此处表示导入组件 include /etc/nginx/default.d/*.conf; location / { index index.php index.html index.htm; try_files $uri $uri/ /index.php index.php; } } 导入 php-fpm 组件 上方配置文件中已存在「导入额外组件」的代码,现在我们只要在目录中添加「组件文件」即可。 ...

三月 6, 2020  |  174 字  |  总阅读

搭建 Ghost 个人博客

安装必要的环境 安装 Nginx 安装 MySQL 安装 Nodejs 创建非 root 用户,以下默认该用户名为 ghostuser 安装 Ghost Ghost-cli 是专为 Ghost 开发的一款安装工具,它使得安装 Ghost 变得非常容易。 # 全局安装 Ghost-cli npm install ghost-cli@latest -g 选择一个目录作为 Ghost 的安装目录,个人建议将其放在 /var/www 中。 # 创建目录 mkdir /var/www/ghost -p && cd /var/www/ghost # 修改权限 chown ghostuser:ghostuser /var/www/ghost # 切换用户 su ghostuser # 安装 Ghost ghost install local # 登出 exit 特别注意:/var/www/ghost 及其下所有文件的所属为 ghostuser:ghostuser,请勿随意修改! Ghost 的所有操作必须由 非 root 用户 进行,若使用 root 用户 执行上述操作将会报错: gyp ERR! stack Error: EACCES: permission denied, mkdir 'xxx' 好心点的话,会给你一点提示: ...

三月 6, 2020  |  569 字  |  总阅读