S
S
Sergey2016-07-08 23:47:26
PHP
Sergey, 2016-07-08 23:47:26

How to set a folder size limit in Ubuntu?

There is ubuntu 14.04 - a bunch of nginx + php + mysql server. There are several sites in the usr/share/nginx folder, each site in its own folder (All Sites on WordPress).
Is it possible to put a limit (quota) on the site folder, for example, 500mb. If the folder is more than 500mb, then the WordPress server would give an error. If possible, please tell me how to do it! Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MintTea, 2016-07-08
@goodwin74

dd if=/dev/zero of=/foobar.fs bs=1M count=500
mkfs /foobar.fs
mkdir /foobar
mount /foobar.fs /foobar

Ready
9dc963868e444515b361f675813a1065.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question