|
[iyunv@iZ23arpt7f0Z data]# mkdir /swapfile
[iyunv@iZ23arpt7f0Z data]# cd
/swapfile
[iyunv@iZ23arpt7f0Z swapfile]#
dd if=/dev/zero of=swap bs=1024 count=2000000
2000000+0 records in
2000000+0 records out
2048000000 bytes (2.0 GB) copied, 36.5222 s, 56.1 MB/s
[iyunv@iZ23arpt7f0Z swapfile]# mkswap -f swap
Setting up swapspace version 1,>
no label, UUID=fd976699-b7e4-471f-82fb-8d784793d82f
[iyunv@iZ23arpt7f0Z swapfile]# swapon swap
swapon: /swapfile/swap: insecure permissions 0644, 0600 suggested.
[iyunv@iZ23arpt7f0Z swapfile]# free -h
total used free shared buff/cache available
Mem: 1.8G 1.5G 62M 14M 263M 159M
Swap: 1.9G 0B 1.9G |
|
|