架构相关报错

一、 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张图片
解决办法:

  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)

你可能感兴趣的:(综合架构)