셋팅 변경

main
박성영 3 weeks ago
parent 86b5c6047d
commit 69d93f29f4

@ -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]

@ -9,7 +9,7 @@ spring:
on-profile: prd
datasource:
driver-class-name: org.mariadb.jdbc.Driver
url: jdbc:mariadb://localhost:53306/vips?characterEncoding=UTF-8&allowMultiQueries=true
url: jdbc:mariadb://localhost:53306/vips?characterEncoding=UTF-8&allowMultiQueries=true # 실서버 IP : 105.19.10.124
username: vips
password: xit5811807
hikari:
@ -61,6 +61,7 @@ spring:
# Server configuration
server:
port: 18080
servlet:
session:
timeout: 60m # 세션 타임아웃을 60분으로 증가
@ -168,7 +169,7 @@ vmis:
external:
api:
url:
base: "http://211.119.124.47:8081/api/v1/vehicles" # VMIS-interface 서버 URL (운영), 105.19.10.135
base: "http://211.119.124.47:18080/api/v1/vehicles" # VMIS-interface 서버 URL (운영), 105.19.10.135
basic:
old-or-new: "old" # 과거 신규 API 선택
old-url: "/old-basic" # 자동차기본정보

Loading…
Cancel
Save