最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

scale - Change wordpress wp-contentuploads paths to load from 2 different hard disk in the same server

programmeradmin2浏览0评论

Change wordpress wp-content/uploads/ paths to load from 2 different hard disk in the same server

So basically there only 1 machine with 2 hard drives

Filesystem           Size  Used Avail Use% Mounted on
devtmpfs              16G     0   16G   0% /dev
tmpfs                 16G     0   16G   0% /dev/shm
tmpfs                 16G  586M   16G   4% /run
tmpfs                 16G     0   16G   0% /sys/fs/cgroup
/dev/mapper/vg-root   98G   92G  592M 100% /
/dev/sda2           1008M  229M  729M  24% /boot
/dev/sdb1            224G  121G  103G  55% /backup
tmpfs                3.2G     0  3.2G   0% /run/user/0

now my dev/mapper is full with images /wp-content/uploads how i make wordpress save to the other hard drive from now on but still be able to use the old images from old hard drive

Change wordpress wp-content/uploads/ paths to load from 2 different hard disk in the same server

So basically there only 1 machine with 2 hard drives

Filesystem           Size  Used Avail Use% Mounted on
devtmpfs              16G     0   16G   0% /dev
tmpfs                 16G     0   16G   0% /dev/shm
tmpfs                 16G  586M   16G   4% /run
tmpfs                 16G     0   16G   0% /sys/fs/cgroup
/dev/mapper/vg-root   98G   92G  592M 100% /
/dev/sda2           1008M  229M  729M  24% /boot
/dev/sdb1            224G  121G  103G  55% /backup
tmpfs                3.2G     0  3.2G   0% /run/user/0

now my dev/mapper is full with images /wp-content/uploads how i make wordpress save to the other hard drive from now on but still be able to use the old images from old hard drive

Share Improve this question asked Sep 23, 2020 at 11:58 WedWed 154 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I don't think there is a reliable way you can do this as to access your pictures via the web they need to be within in your websites root director, however you could probably work with symbolic links to the other hard drive but I would not recommend this

发布评论

评论列表(0)

  1. 暂无评论