F
F
firemark_s2015-01-27 11:44:00
CentOS
firemark_s, 2015-01-27 11:44:00

How to clear the cache on CENTOS?

Worth vestaCP.
on centos.
I log in as root via ssh
and enter:
echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches
writes:
[[email protected] ~]# echo 1 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
[[email protected] ~]# echo 2 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm /drop_caches: Permission denied
[[email protected] ~]# echo 3 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
L
ldv, 2015-01-27
@ldvldv

Not in a container. Use kvm or xen to access the kernel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question