skill/Linux 5

nohup 으로 jar 파일 실행 (spring, java 환경변수 추가, 실행/backup sh)

nohup으로 jar 파일 실행 nohup java -jar project-0.0.1-SNAPSHOT.jar nohup 실행 시, spring 환경 변수 추가 nohup java -jar -Dspring.profiles.active=publish project-0.0.1-SNAPSHOT.jar nohup 실행 시, java 환경 변수 추가 nohup java -jar -Dspring.profiles.active=publish -Djava.net.preferIPv4Stack=true project-0.0.1-SNAPSHOT.jar nohup 실행 sh #!/bin/bash PID=`ps -ef | grep jar | grep -v grep | awk '{print $2}'` echo $PID if [ -n..

skill/Linux 2023.03.31

AWS 서버 Jenkins pipeline 연결 시, codedeploy-agent 설치 및 IAM 연동

[CodeDeploy error] : ApplicationStop : [error] CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. + 배포되는 서버에 CodeDeploy 에이전트가 실행 중인 지 확인 $ sudo service codedeploy-agent status (비정상) Redirecting to /bin/systemctl status codedeploy-agent.service (정상) The AWS CodeDepl..

skill/Linux 2022.06.16