자유게시판

우분투 오라클클라우드 서버에 swap파일을 활성화하여 메모리를 원활하게 한다. Activate the swap files on the Ubuntu Oracle cloud server to facilitate memory.

작성자 정보

  • 삼둡 작성
  • 작성일

컨텐츠 정보

본문

6f84aaad12484110e79df0ea63d56a600ac57695uiqb.png

 

# 4기가 할당 # 4 Giga Allocation
sudo fallocate -l 4G /swapfile

 

#권한 수정 #AuthorityCorrection
sudo chmod 600 /swapfile

 

# /swapfile 파일이 스왑메모리로 동작하도록 만들어줍니다. Make the /swapfile file work with swap memory.
sudo mkswap /swapfile

 

# 스왑을 활성시킵니다. Activates the swap.
sudo swapon /swapfile

 

 

 

재부팅해도 유지할 수 있게 /etc/fstab을 수정한다. Modify /etc/fstab to maintain it even after rebooting.

070802fffabc3da66d928a3162da8200bea98bb37jw5.png

관련자료

댓글 0
등록된 댓글이 없습니다.

인기검색어


최근글


새댓글