|
|
|
|
@ -355,10 +355,10 @@ ps -ef | grep VIPS-BOOT.war
|
|
|
|
|
# Java 프로세스 확인
|
|
|
|
|
ps -ef | grep java
|
|
|
|
|
|
|
|
|
|
# 특정 포트 확인 (예: 8080)
|
|
|
|
|
ss -tlnp | grep 8080
|
|
|
|
|
# 특정 포트 확인 (예: 18080)
|
|
|
|
|
ss -tlnp | grep 18080
|
|
|
|
|
# 또는
|
|
|
|
|
netstat -tlnp | grep 8080
|
|
|
|
|
netstat -tlnp | grep 18080
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 7.2 로그 확인
|
|
|
|
|
@ -376,19 +376,19 @@ grep -i exception /app/VIPS/logs/app.log
|
|
|
|
|
|
|
|
|
|
### 7.3 애플리케이션 응답 테스트
|
|
|
|
|
```bash
|
|
|
|
|
# HTTP 응답 확인 (포트 8080 예시)
|
|
|
|
|
curl -I http://localhost:8080
|
|
|
|
|
# HTTP 응답 확인 (포트 18080 예시)
|
|
|
|
|
curl -I http://localhost:18080
|
|
|
|
|
|
|
|
|
|
# API 엔드포인트 테스트
|
|
|
|
|
curl http://localhost:8080/actuator/health
|
|
|
|
|
curl http://localhost:8080/api/test
|
|
|
|
|
curl http://localhost:18080/actuator/health
|
|
|
|
|
curl http://localhost:18080/api/test
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 7.4 방화벽 설정 (외부 접속 허용)
|
|
|
|
|
```bash
|
|
|
|
|
# root 계정으로 실행
|
|
|
|
|
# 포트 8080 방화벽 허용
|
|
|
|
|
firewall-cmd --permanent --add-port=8080/tcp
|
|
|
|
|
# 포트 18080 방화벽 허용
|
|
|
|
|
firewall-cmd --permanent --add-port=18080/tcp
|
|
|
|
|
firewall-cmd --reload
|
|
|
|
|
|
|
|
|
|
# 방화벽 상태 확인
|
|
|
|
|
@ -589,7 +589,7 @@ nohup java -jar VIPS-BOOT.war > /app/VIPS/logs/app.log 2>&1 &
|
|
|
|
|
# 7. 실행 확인
|
|
|
|
|
ps -ef | grep java
|
|
|
|
|
tail -f /app/VIPS/logs/app.log
|
|
|
|
|
curl http://localhost:8080/actuator/health
|
|
|
|
|
curl http://localhost:18080/actuator/health
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
@ -610,8 +610,8 @@ echo $PATH
|
|
|
|
|
### 포트가 이미 사용 중인 경우
|
|
|
|
|
```bash
|
|
|
|
|
# 포트 사용 프로세스 확인
|
|
|
|
|
ss -tlnp | grep 8080
|
|
|
|
|
lsof -i :8080
|
|
|
|
|
ss -tlnp | grep 18080
|
|
|
|
|
lsof -i :18080
|
|
|
|
|
|
|
|
|
|
# 해당 프로세스 종료
|
|
|
|
|
kill [PID]
|
|
|
|
|
|