LINUXTNT Telegram 4498
🛠 افزایش حافظه Swap در لینوکس

غیر فعال کردن swap فعلی
sudo swapoff /swapfile



1️⃣ تغییر اندازه فایل Swap (اینجا 10 گیگ):

sudo fallocate -l 10G /swapfile



2️⃣ تغییر سطح دسترسی (خیلی مهم!):

sudo chmod 600 /swapfile



3️⃣ فرمت کردن فایل به Swap:

sudo mkswap /swapfile



4️⃣ فعال‌کردن Swap:

sudo swapon /swapfile



5️⃣ بررسی وضعیت Swap:

swapon --show

free -h

اگر می‌خواید بعد از ریبوت هم فعال بمونه، این خط رو به /etc/fstab اضافه کنید:

/swapfile none swap sw 0 0

نویسنده: حسین سیلانی
http://learninghive.ir
8👍1



tgoop.com/linuxtnt/4498
Create:
Last Update:

🛠 افزایش حافظه Swap در لینوکس

غیر فعال کردن swap فعلی

sudo swapoff /swapfile



1️⃣ تغییر اندازه فایل Swap (اینجا 10 گیگ):

sudo fallocate -l 10G /swapfile



2️⃣ تغییر سطح دسترسی (خیلی مهم!):

sudo chmod 600 /swapfile



3️⃣ فرمت کردن فایل به Swap:

sudo mkswap /swapfile



4️⃣ فعال‌کردن Swap:

sudo swapon /swapfile



5️⃣ بررسی وضعیت Swap:

swapon --show

free -h

اگر می‌خواید بعد از ریبوت هم فعال بمونه، این خط رو به /etc/fstab اضافه کنید:

/swapfile none swap sw 0 0

نویسنده: حسین سیلانی
http://learninghive.ir

BY linuxtnt(linux tips and tricks)


Share with your friend now:
tgoop.com/linuxtnt/4498

View MORE
Open in Telegram


Telegram News

Date: |

With the administration mulling over limiting access to doxxing groups, a prominent Telegram doxxing group apparently went on a "revenge spree." The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said. Matt Hussey, editorial director of NEAR Protocol (and former editor-in-chief of Decrypt) responded to the news of the Telegram group with “#meIRL.” Each account can create up to 10 public channels Content is editable within two days of publishing
from us


Telegram linuxtnt(linux tips and tricks)
FROM American