Skip to content

Commit

Permalink
⚙ Setting: 메모리 스왑 설정 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong authored Apr 13, 2024
1 parent 54664c4 commit fb73dd3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .ebextensions-dev/01-setup-swap.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
commands:
01setup_swap:
test: test ! -e /var/swapfile
command: |
/bin/dd if=/dev/zero of=/var/swapfile bs=128M count=16
/bin/chmod 600 /var/swapfile
/sbin/mkswap /var/swapfile
/sbin/swapon /var/swapfile
8 changes: 8 additions & 0 deletions .ebextensions-prod/01-setup-swap.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
commands:
01setup_swap:
test: test ! -e /var/swapfile
command: |
/bin/dd if=/dev/zero of=/var/swapfile bs=128M count=16
/bin/chmod 600 /var/swapfile
/sbin/mkswap /var/swapfile
/sbin/swapon /var/swapfile

0 comments on commit fb73dd3

Please sign in to comment.