설치 오류

install: cannot remove '/swapfile': Operation not permitted
fallocate: fallocate failed: Text file busy
mkswap: error: /swapfile is mounted; will not make swapspace
swapon: /swapfile: swapon failed: Device or resource busy
/swapfile       swap    swap    auto      0       0
vm.swappiness = 10
Failed to create swap: are you root? Are you running on real hardware, or a fully virtualized server

설치 과정에서 이러한 문제가 발생합니다. 어떻게 해결할 수 있을까요? VPS를 사용하지 않고 VDS를 사용 중입니다.

free
df -h

명령어로 확인할 수 있는 정보는 다음과 같습니다.

설치 스크립트는 RAM이 2GB 미만이고 스왑 공간도 2GB 미만인 것을 감지하여 스왑 파일을 생성하려고 시도하고 있습니다. 소스 코드에 따르면, 기존 스왑 파일이 존재하는 경우를 처리하지 않습니다. 따라서 기존 스왑 파일을 제거한 후 다시 시도하는 것이 좋습니다. 다음 명령어만으로 해결될 수 있습니다:

swapoff /swapfile && rm /swapfile
free