Use the tmpfs file system to accelerate LINUX-general Linux technology-Linux technology and application information. The following is a detailed description. The system will load/dev/shm by default. You can use df to check whether it is tmpfs.
Like a virtual disk, tmpfs can use RAM or SWAP
It is a file system, not a block device.
Advantages:
1. Dynamic File System
2tmpfs is very fast, because it is completely resident in RAM
Note: when the machine is restarted, it will disappear.
Now let's start: Create a tmp folder in/dev/shm, and then bind it with the actual
Mkdir/dev/shm/tmp
Chmod 1777/dev/shm/tmp
Mount -- bind/dev/shm/tmp
Note: If you have content in tmp, the/tmp file will be cleared in the previous step. If you have installed mysql, the mysql. sock file will be lost. So put the above steps in/
Usr/local/mysql/bin/mysqld_safe -- user = mysql & the execution is OK.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.