fallocate -l 2048M /swapfile
dd if=/dev/zero of=/swapfile count=2048 bs=1MiB
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
위 명령어 입력후
/etc/fstab 에 가서
swap /swapfile swap defaults 0 0
이거 추가.
이후
top -c 명령어 또는 free -m 명령어로 스왑 메모리 확인.
'I T > Linux' 카테고리의 다른 글
Centos 6.X yum Error [ Error: Cannot find a valid baseurl for repo: base ] (0) | 2021.11.09 |
---|---|
mysql: [Warning] Using a password on the command line interface can be insecure. (0) | 2019.11.05 |
CentOS6에서 SSH 접근 시도 차단하기 (0) | 2017.10.01 |
무료 SSL발급 & 자동갱신, Letsencrypt 설치 및 운용 (CentOS 6.X) (0) | 2017.04.13 |
ssh-keygen rsa [ 암호 없이 ssh 접속 ] (0) | 2016.01.13 |