일상/daily 잡담
Ubuntu.. 자꾸 나를 힘들게한다.. (MACHBASE 설치 과정)
은연일체
2021. 5. 26. 15:31
Ubuntu20.04 버전에 MACHBASE를 설치하는 과정에서 최대 열 수 있는 파일의 개수를 늘려주기 위해 정말 많은 시도를 했지만 구글링 했던 방법으로는 대부분 먹히지 않았다.
물론 약간의 환경 차이일 수 있지만 조금 답답한 마음에 조금 메모해둬야겠다.
터미널에 "ulimit -n"을 입력하면 Ubuntu에서 최대 오픈할 수 있는 파일의 개수를 알려준다.
기본값은 1024로 세팅되어있었는데 MACHBASE에서는 최소한 8192 이상의 제한을 필요로 한다.
내가 해결했던 방법은 아래와 같다.
1. vim /etc/systemd/user.conf
2. DefaultLimitNOFILE=65535
답답함이 해결됐다.
<참고 링크>
https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu
Cannot Increase open file limit past 4096 (Ubuntu)
I'm on Ubuntu 17.04. Trying to increase the open file limit, and none of the instructions I've found online are working. I can go up to 4096, but can't go past that. $ ulimit -n 1024 $ ulimit -n 4...
superuser.com