shjung 1 year ago
parent
commit
22b62cfedd

BIN
running/application.png


+ 61 - 0
running/application.yml

@@ -0,0 +1,61 @@
+application:
+  process:
+    id: EXT01
+    name: Weather(Open API) Communication Server
+    history: true
+  user:
+    id: admin
+    pswd: 1234
+
+  atmp:
+    enabled: true
+    crontab: 30 0/15 * * * *
+    api-key: 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+    api-ver: 1.3
+    start-hour: 0
+    end-hour: 23
+
+  frcs:
+    enabled: true
+    crontab: 10 0/15 * * * *
+    api-key: 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+    start-hour: 0
+    end-hour: 23
+
+server:
+  port: 9873
+  shutdown: graceful
+  error:
+    whitelabel:
+      enabled: true
+    include-exception: false
+    include-stacktrace: never
+  servlet:
+    session:
+      timeout: 300
+
+spring:
+  application:
+    name: wthr-comm-server
+  main:
+    banner-mode: off
+  mvc:
+    view:
+      prefix: /WEB-INF/jsp/
+      suffix: .jsp
+
+  config:
+    import: file:.\conf\application.properties
+  datasource:
+    hikari:
+      driver-class-name: com.tmax.tibero.jdbc.TbDriver
+      #jdbc-url: jdbc:tibero:thin:@172.16.11.52:8800:new_yiitsdb
+      jdbc-url: jdbc:tibero:thin:@(DESCRIPTION=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS_LIST=(ADDRESS=(HOST=172.16.11.52)(PORT=8800))(ADDRESS=(HOST=172.16.11.62)(PORT=8800)))(DATABASE_NAME=new_yiitsdb))
+      username: yiits
+      password: yiits
+      minimumIdle: 5
+      maximumIdle: 10
+      maximumPoolSize: 20
+      idleTimeout: 30000
+      connectTimeout: 10000
+

+ 83 - 0
running/application.yml.backup

@@ -0,0 +1,83 @@
+application:
+  process:
+    id: EXT01
+    name: Weather(Open API) Communication Server
+    history: true
+  user:
+    id: admin
+    pswd: 1234
+
+  atmp:
+    enabled: true
+    crontab: 30 0/15 * * * *
+    api-key: 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+    api-ver: 1.3
+    start-hour: 0
+    end-hour: 23
+
+  frcs:
+    enabled: true
+    crontab: 10 0/15 * * * *
+    api-key: 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+    start-hour: 0
+    end-hour: 23
+
+server:
+  port: 9873
+  shutdown: graceful
+  error:
+    whitelabel:
+      enabled: true
+    include-exception: false
+    include-stacktrace: never
+  servlet:
+    session:
+      timeout: 300
+
+spring:
+  application:
+    name: wthr-comm-server
+  profiles:
+    active: prod
+  main:
+    banner-mode: off
+  mvc:
+    view:
+      prefix: /WEB-INF/jsp/
+      suffix: .jsp
+
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+  datasource:
+    hikari:
+      driver-class-name: com.tmax.tibero.jdbc.TbDriver
+      jdbc-url: jdbc:tibero:thin:@115.91.94.42:8629:tibero
+      username: yiits
+      password: yiits
+      minimumIdle: 5
+      maximumIdle: 10
+      maximumPoolSize: 20
+      idleTimeout: 30000
+      connectTimeout: 10000
+
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+  datasource:
+    hikari:
+      driver-class-name: com.tmax.tibero.jdbc.TbDriver
+      #jdbc-url: jdbc:tibero:thin:@172.16.11.52:8800:new_yiitsdb
+      jdbc-url: jdbc:tibero:thin:@(DESCRIPTION=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS_LIST=(ADDRESS=(HOST=172.16.11.52)(PORT=8800))(ADDRESS=(HOST=172.16.11.62)(PORT=8800)))(DATABASE_NAME=new_yiitsdb))
+      username: yiits
+      password: yiits
+      minimumIdle: 5
+      maximumIdle: 10
+      maximumPoolSize: 20
+      idleTimeout: 30000
+      connectTimeout: 10000
+

+ 85 - 0
running/application.yml.dev

@@ -0,0 +1,85 @@
+application:
+  process:
+    id: EXT01
+    name: Weather(Open API) Communication Server
+    history: true
+  user:
+    id: admin
+    pswd: 1234
+
+  atmp:
+    enabled: true
+    crontab: 30 0/15 * * * *
+    api-key: 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+    api-ver: 1.3
+    start-hour: 0
+    end-hour: 23
+
+  frcs:
+    enabled: true
+    crontab: 10 0/15 * * * *
+    api-key: 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+    start-hour: 0
+    end-hour: 23
+
+server:
+  port: 9873
+  shutdown: graceful
+  error:
+    whitelabel:
+      enabled: true
+    include-exception: false
+    include-stacktrace: never
+  servlet:
+    session:
+      timeout: 300
+
+spring:
+  application:
+    name: wthr-comm-server
+  profiles:
+    active: dev
+  main:
+    banner-mode: off
+  mvc:
+    view:
+      prefix: /WEB-INF/jsp/
+      suffix: .jsp
+
+---
+spring:
+  config:
+    activate:
+      on-profile: dev
+    import: file:.\conf\application.properties
+  datasource:
+    hikari:
+      driver-class-name: com.tmax.tibero.jdbc.TbDriver
+      jdbc-url: jdbc:tibero:thin:@115.91.94.42:8629:tibero
+      username: yiits
+      password: yiits
+      minimumIdle: 5
+      maximumIdle: 10
+      maximumPoolSize: 20
+      idleTimeout: 30000
+      connectTimeout: 10000
+
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+    import: file:.\conf\application.properties
+  datasource:
+    hikari:
+      driver-class-name: com.tmax.tibero.jdbc.TbDriver
+      #jdbc-url: jdbc:tibero:thin:@172.16.11.52:8800:new_yiitsdb
+      jdbc-url: jdbc:tibero:thin:@(DESCRIPTION=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS_LIST=(ADDRESS=(HOST=172.16.11.52)(PORT=8800))(ADDRESS=(HOST=172.16.11.62)(PORT=8800)))(DATABASE_NAME=new_yiitsdb))
+      username: yiits
+      password: yiits
+      minimumIdle: 5
+      maximumIdle: 10
+      maximumPoolSize: 20
+      idleTimeout: 30000
+      connectTimeout: 10000
+

+ 32 - 0
running/conf - dev/application.properties

@@ -0,0 +1,32 @@
+application.atmp:enabled= true
+application.atmp.crontab= 30 0/15 * * * *
+application.atmp.api-key= 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+application.atmp.api-ver= 1.3
+
+application.frcs.enabled= true
+application.frcs.crontab= 10 0/15 * * * *
+application.frcs.api-key= 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+application.atmp.api-ver= 1.3
+
+
+server.port= 9873
+server.shutdown= graceful
+server.error.whitelabel.enabled= true
+server.error.include-exception= false
+server.error.include-stacktrace= never
+server.servlet.session.timeout= 300
+
+spring.application.name= wthr-comm-server
+spring.main.banner-mode= off
+spring.mvc.view.prefix= /WEB-INF/jsp/
+spring.mvc.view.suffix= .jsp
+
+spring.datasource.hikari.driver-class-name= com.tmax.tibero.jdbc.TbDriver
+spring.datasource.hikari.jdbc-url= jdbc:tibero:thin:@115.91.94.42:8629:tibero
+spring.datasource.hikari.username= yiits
+spring.datasource.hikari.password= yiits
+spring.datasource.hikari.minimumIdle= 5
+spring.datasource.hikari.maximumIdle= 10
+spring.datasource.hikari.maximumPoolSize= 20
+spring.datasource.hikari.idleTimeout= 30000
+spring.datasource.hikari.connectTimeout= 10000

+ 1 - 0
running/conf - dev/wthr-comm-server.pid

@@ -0,0 +1 @@
+37812

+ 32 - 0
running/conf - real/application.properties

@@ -0,0 +1,32 @@
+application.atmp:enabled= true
+application.atmp.crontab= 30 0/15 * * * *
+application.atmp.api-key= 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+application.atmp.api-ver= 1.3
+
+application.frcs.enabled= true
+application.frcs.crontab= 10 0/15 * * * *
+application.frcs.api-key= 2y3qwo%2BwhlG6E%2BZfcyDKLMCr5Lp4gy%2BNgGuvWmgAdq7O%2Bf%2Fs4DPQz2ZD1rzDLowBq%2F6pfSi5F6UWlyM5meRiaw%3D%3D
+application.atmp.api-ver= 1.3
+
+
+server.port= 9873
+server.shutdown= graceful
+server.error.whitelabel.enabled= true
+server.error.include-exception= false
+server.error.include-stacktrace= never
+server.servlet.session.timeout= 300
+
+spring.application.name= wthr-comm-server
+spring.main.banner-mode= off
+spring.mvc.view.prefix= /WEB-INF/jsp/
+spring.mvc.view.suffix= .jsp
+
+spring.datasource.hikari.driver-class-name= com.tmax.tibero.jdbc.TbDriver
+spring.datasource.hikari.jdbc-url= jdbc:tibero:thin:@(DESCRIPTION=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS_LIST=(ADDRESS=(HOST=172.16.11.52)(PORT=8800))(ADDRESS=(HOST=172.16.11.62)(PORT=8800)))(DATABASE_NAME=new_yiitsdb))
+spring.datasource.hikari.username= yiits
+spring.datasource.hikari.password= yiits
+spring.datasource.hikari.minimumIdle= 5
+spring.datasource.hikari.maximumIdle= 10
+spring.datasource.hikari.maximumPoolSize= 20
+spring.datasource.hikari.idleTimeout= 30000
+spring.datasource.hikari.connectTimeout= 10000

+ 1 - 0
running/conf - real/wthr-comm-server.pid

@@ -0,0 +1 @@
+37288

+ 5 - 0
running/startup - 복사본.bat

@@ -0,0 +1,5 @@
+@echo off
+set JAVA_HOME=C:\YIITS\wthr-comm-server\Java\jre1.8.0_361
+set CLASSPATH=C:\YIITS\wthr-comm-server\Java\jre1.8.0_361\lib
+rem chcp 65001
+.\wthr-comm-server.exe

+ 5 - 0
running/startup-jar.bat

@@ -0,0 +1,5 @@
+@echo off
+chcp 65001
+setlocal
+set "JAVA_OPTS=%JAVA_OPTS% -Xloggc:.\logs\gc.log -Dspring.profiles.active=prod"
+java -jar %JAVA_OPTS%  .\wthr-comm-server-0.0.1.war

+ 3 - 0
running/startup.bat

@@ -0,0 +1,3 @@
+@echo off
+chcp 65001
+.\wthr-comm-server.exe

BIN
running/wthr-comm-server-0.0.1.war


BIN
running/wthr-comm-server.exe


+ 33 - 0
running/wthr-comm-server.txt.jsmooth

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<jsmoothproject>
+<JVMSearchPath>javahome</JVMSearchPath>
+<JVMSearchPath>jrepath</JVMSearchPath>
+<JVMSearchPath>jdkpath</JVMSearchPath>
+<JVMSearchPath>registry</JVMSearchPath>
+<JVMSearchPath>exepath</JVMSearchPath>
+<JVMSearchPath>jview</JVMSearchPath>
+<arguments></arguments>
+<currentDirectory>${EXECUTABLEPATH}</currentDirectory>
+<embeddedJar>true</embeddedJar>
+<executableName>wthr-comm-server.exe</executableName>
+<iconLocation>application.png</iconLocation>
+<initialMemoryHeap>-1</initialMemoryHeap>
+<jarLocation>wthr-comm-server-0.0.1.war</jarLocation>
+<mainClassName>org.springframework.boot.loader.WarLauncher</mainClassName>
+<maximumMemoryHeap>-1</maximumMemoryHeap>
+<maximumVersion></maximumVersion>
+<minimumVersion>1.8</minimumVersion>
+<skeletonName>Console Wrapper</skeletonName>
+<skeletonProperties>
+<key>Message</key>
+<value>Java has not been found on your computer. Do you want to download it?</value>
+</skeletonProperties>
+<skeletonProperties>
+<key>PressKey</key>
+<value>0</value>
+</skeletonProperties>
+<skeletonProperties>
+<key>Debug</key>
+<value>0</value>
+</skeletonProperties>
+</jsmoothproject>

BIN
running/wthr-comm-server.zip


+ 38 - 0
running/설치방법.txt

@@ -0,0 +1,38 @@
+
+0. 사전 설치
+    - 자바 8 버전 이상이 설치되어 있어야 합니다.
+
+1. 설치방법
+    - wthr-comm-server.zip 압축을 해제해야 합니다. 
+      (관리 편의를 위해 C:\YIITS\wthr-comm-server 디렉토리 내에 파일들을 압축 풀어서 관리하세요)
+    - startup.bat 를 클릭하여 프로그램을 실행합니다.
+
+2. conf 디렉토리 환경설정
+    - application.properties 파일 내에 api-key 설정 되어 있습니다.
+    - application.atmp.api-key= Bi%2F9gOohktHbQkhyYUhd%2B0PymeWsDzsRxMj1Dz%2BdcNrjaUhfuw1H1GMbkyu7jFQikejFeXIJEdXTlKLasbjOwA%3D%3D
+    - application.frcs.api-key= Bi%2F9gOohktHbQkhyYUhd%2B0PymeWsDzsRxMj1Dz%2BdcNrjaUhfuw1H1GMbkyu7jFQikejFeXIJEdXTlKLasbjOwA%3D%3D
+    - 키값을 수정해주세요.
+
+3. 기존 리눅스 서버에서 돌고 있는 프로그램이 더 이상 실행 되지 않아야 합니다.
+    - 우선 위의 내용으로 새로운 서버에 프로그램을 설치하여 실행 한 후 정상적으로 수행 된다면 리눅스 서버의 프로그램을 실행시키지 말아야 합니다.
+    - 리눅스 서버의 프로그램은 서비스로 수행되기 때문에 프로그램을 종료해도 리눅스가 재부팅되면 다시 수행 됩니다. 
+    - 따라서 리눅스 서버의 서비스도 제거 해야 합니다. 아래 명령을 수행 하여 작업을 진행 합니다.
+    
+    - 프로그램 수행 상태 확인
+        sudo systemctl status weather
+
+    - 프로그램 종료
+        sudo systemctl stop weather
+
+    - 서비스 삭제
+        sudo systemctl disable weather
+
+    - 서비스 재로딩
+        sudo systemctl daemon-reload
+
+    - 서비스 삭제 확인
+        sudo systemctl status weather
+        ==> 여기서 오류 메시지... 찾을 수 없다 등등 위에서 프로그램 수행 상태 확인 시 나왔던 메시지가 다르게 나와야 합니다.
+
+
+

+ 2 - 0
src/main/resources/application.yml

@@ -51,6 +51,7 @@ spring:
   config:
     activate:
       on-profile: dev
+    import: file:.\conf\application.properties
   datasource:
     hikari:
       driver-class-name: com.tmax.tibero.jdbc.TbDriver
@@ -68,6 +69,7 @@ spring:
   config:
     activate:
       on-profile: prod
+    import: file:.\conf\application.properties
   datasource:
     hikari:
       driver-class-name: com.tmax.tibero.jdbc.TbDriver