架构相关报错

一、 Missing a temporary folder.

上传图片的时候提示这个报错,没有可用文件夹

解决办法:重启php-fpm服务

[root@web02 ~]# systemctl restart php-fpm

二、mount: wrong fs type, bad option,bad superblock on

[root@web02 /app/html/www/wp-content]# mount  172.16.1.31:/data/uploads /app/html/www/wp-content/uploads/
mount: wrong fs type, bad option, bad superblock on 172.16.1.31:/data/uploads,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so

报错原因:没有安装nfs
解决办法:安装nfs服务

yum install -y nfs-utils

三 、The uploaded file could not be moved to wp-content/uploads/

nfs服务器被挂载上之后,用户无法上传数据

上传报错
解决办法:

  1. 直接修改nfs服务配置文件添加参数信息- all_squash
/data/uploads 172.16.1.0/24(rw,sync,all_squash)
systemctl restart nfs    -- 重启nfs服务
  1. 修改nfs服务端存储目录权限(和nginx程序worker进程用户保持一致)
    chown -R xxxx
    可能造成root用户无法存储数据,需要修改配置文件
    /data/blog 172.16.1.0/24(rw,sync,anonuid=worker进程用户id,anongid=进程用户GID)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值