BackEnd
[EC2] nohup: ignoring input and appending output to 'nohup.out' nohup: failed to run command 'java': No such file or directory
mingg123
2023. 9. 3. 21:18
EC2 배포 ci/cd Actions를 구현하고 있던 와중에 아래와 같은 명령어가 발생했다.
nohup: failed to run command 'java': No such file or directory
원인은 사실 너무 간단했다.
우분투 환경에 java가 설치되어 있지 않았던 것.
해결 방법
$ sudo apt-get update
$ sudo apt-get install openjdk-17-jdk
난 17버전을 설치했다.
java -version 으로 확인이 가능하다.