오늘만살자
swap 늘리기 본문
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
sudo free -m
vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
swapon /swapfile
exit 0
chmod +x /etc/rc.local
4g로 늘리기
'Linux > Ubuntu' 카테고리의 다른 글
git 생성하기 (0) | 2018.11.07 |
---|---|
내부 아피에서 매핑된 외부아이피 핑 설정하기(iptables) (0) | 2018.05.29 |
java 설치 (0) | 2018.04.17 |
pm2 startup 에러시 (0) | 2017.12.12 |
Cron log 남기기 (0) | 2015.10.23 |
Comments