본문 바로가기

Server

code-server java springboot maven(ing)

docker 

#Java install

code-server - terminal

$ sudo su

root@[Current Path]# apt-get update

root@[Current Path]# apt-get install wget

 

path
root@[Current Path]# sudo nano /etc/profile

최 하단에

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin/:$PATH
export CLASS_PATH=$JAVA_HOME/lib:$CLASS_PATH

 

저장 - ctrl+w 
저장형식(mac) - alt + m
닫기 - ctrl + x

path 수정사항 적용

root@[Current Path]#source /etc/profile

 

 

ERROR:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-09 17:39:45.568 ERROR 1434 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Web server failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

 

8080 프로세스를 사용하고 있는 경우 해당 프로세스 확인하고 종료(kill)

netstat -tulpn

kill -9 [pid]

예) 

kill -9 812

 

참고
vscode java spring boot build test - www.youtube.com/watch?v=3p1JHQWslho
docker 컨테이너 Java 설치 - devham76.github.io/etc/docker_3hangle/
docker java openJdk 설치 및 path 설정 - lsjsj92.tistory.com/394
apt-get install wget error - itzone.tistory.com/610

nano 편집기 사용방법 - websetnet.net/ko/%EC%B4%88%EB%B3%B4%EC%9E%90%EB%A5%BC%EC%9C%84%ED%95%9C-%EB%A6%AC%EB%88%85%EC%8A%A4-%EB%82%98%EB%85%B8-%ED%8E%B8%EC%A7%91%EA%B8%B0-%EC%84%A4%EB%AA%85-10-%EA%B0%9C-%EC%98%88%EC%8B%9C/