1.4.HowToInstallKsbWebToolkit.html.old 46.8 KB
Newer Older
HooYoungAhn's avatar
HooYoungAhn committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486
<!DOCTYPE html>
  <html>
    <head>
      <title>1.4.HowToInstallKsbWebToolkit</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      <link rel="stylesheet" href="file:////home/csle/.atom/packages/markdown-preview-enhanced/node_modules/@shd101wyy/mume/dependencies/katex/katex.min.css">
      
      
      
      
      
      
      
      
      
      

      <style> 
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{padding:0 1.6em;margin-top:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li{margin-bottom:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{list-style-type:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  150px);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
 
      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview   ">
      <h1 class="mume-header" id="ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-%EC%84%A4%EC%B9%98">KSB 웹툴킷 설치</h1>

<hr>
<p>UI 기반으로 KSB 인공지능 프레임워크를 사용할 수 있는 KSB 웹툴킷 설치 과정을 설명합니다.</p>
<h2 class="mume-header" id="%EC%84%A4%EC%B9%98-%EC%9A%94%EA%B5%AC%EC%82%AC%ED%95%AD">설치 요구사항</h2>

<ul>
<li>Docker 기반 KSB 툴박스 환경에서는, KSB 웹툴킷 실행을 위한 기능들이 사전에 설치 되어 있거나 설치 과정에 포함 되어 있으므로, 본 과정이 필요하지 않습니다.</li>
<li>Ubuntu 16.04가 설치된 메모리 16GB 이상 데스트탑이나 노트북이 요구됩니다.</li>
<li>KSB 웹툴킷은 KSB 인공지능 프레임워크를 기반으로 구동됩니다. 따라서 소스를 빌드하고 <a href="http://startKsbApiServing.sh">startKsbApiServing.sh</a> 를 실행하여 KSB 인공지능 프레임워크를 구동하고 있어야 합니다.</li>
<li>KSB 웹툴킷은 저장소로 HDFS를 사용합니다. 따라서, 저장소로 사용할 PC에 Hadoop 및 관련 소프트웨어가 설치 되어 있어야 합니다. Hadoop을 설치한 후에는 ksb-csle/conf/ksb.conf 파일에서 hadoop.master 정보를 설치한 호스트명으로 설정해 주어야 합니다. 또한 hadoop.hdfs.activated 도 true로 설정해야 정상적으로 HDFS 를 저장소로 이용할 수 있습니다.(기본적으로 true로 설정 되어 있습니다.)</li>
<li>DB에서 한글을 정상적으로 사용하기 위해, 호스트 운영체제의 언어를 한글로 설정 합니다. 변경 하는 방법은 다음 링크를 참고 합니다.<br>
<a href="https://askubuntu.com/questions/509174/how-can-i-change-the-language-from-english-to-spanish">Ubuntu 언어 변경</a></li>
<li>Postgresql 9.6.8 이상이 설치되어야 합니다.</li>
<li>Pgadmin3 1.22.2 이상이 설치되어야 합니다.</li>
</ul>
<h2 class="mume-header" id="ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-db-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0">KSB 인공지능 프레임워크 DB 설치하기</h2>

<p>KSB 인공지능 프레임워크는 프레임워크 사용자 정보, 생성 및 구동된 워크플로우 정보, KSB 웹툴킷에서 이용하는 UI Component 관련 정보를 관리하기 위해 Postgresql DB를 사용 합니다.<br>
Postgresql 설치 버전은 9.6.8 이상를 권장하며, 다음과 같이 설치한 후 재시작합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> <span class="token function">apt-get</span> update

$ <span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> -y software-properties-common

$ <span class="token function">sudo</span> add-apt-repository <span class="token string">"deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main"</span>

$ <span class="token function">wget</span> --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc <span class="token operator">|</span> <span class="token function">sudo</span> apt-key add -

$ <span class="token function">sudo</span> <span class="token function">apt-get</span> update

$ <span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> -y postgresql-9.6

$ <span class="token function">sudo</span> <span class="token function">service</span> postgresql restart
</pre><p>또한 Postgresql DB 접근 및 이용을 편리하게 하기 위해 Pgadmin을 설치하여 사용합니다. pgadmin3는 1.22.2 이상을 설치합니다. (ostgresql 9.6.8 이상을 설치해야 잘 동작합니다.)</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> <span class="token function">apt-get</span> update

$ <span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> -y pgadmin3
</pre><h2 class="mume-header" id="ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-db-%EC%A0%95%EC%9D%98">KSB 인공지능 프레임워크 DB 정의</h2>

<p>Postgresql 설치가 완료되면, DB에 접속하여 DB 사용자 계정과 권한을 생성하고, SDK 압축파일에 포함된 백업파일(csledb_v1.0.backup)을 이용하여 KSB 인공지능 프레임워크 DB 정보를 restore 합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> -u postgres <span class="token function">bash</span> -c <span class="token string">"psql -c \"CREATE USER csle password '사용자암호' superuser;\""</span>

$ <span class="token function">sudo</span> -u postgres <span class="token function">bash</span> -c <span class="token string">"psql -c \"CREATE DATABASE csledb WITH OWNER = csle ENCODING = 'UTF-8' CONNECTION LIMIT = -1;\""</span>

$ PGPASSWORD<span class="token operator">=</span>사용자암호 pg_restore -h localhost -U csle -C -d csledb /home/csle/ksb-csle/tools/webToolkit_db/csledb_v1.0.backup
</pre><p>postgresql 에 접속하여 정상적으로 복구 되었는지 확인 합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> -su postgres

$ psql

postgres<span class="token operator">=</span><span class="token comment"># \c csledb;</span>

csledb<span class="token operator">=</span><span class="token comment"># select * from "UIEngineComponent" where "MsgVersion" = '1.0'</span>

               EngineID               <span class="token operator">|</span>          EngineName           <span class="token operator">|</span>         EngineType          <span class="token operator">|</span>            MsgComponentID            <span class="token operator">|</span> MsgVersion
--------------------------------------+-------------------------------+-----------------------------+--------------------------------------+------------
 49dd0271-e7a9-b43e-f1c0-698d42372e2f <span class="token operator">|</span> BatchEngine                   <span class="token operator">|</span> BATCHENGINE                 <span class="token operator">|</span> 2b2fa4ec-7cd3-3cc1-1e7c-b11ab3d3ac1b <span class="token operator">|</span> 1.0
 6536ab61-9f9f-1119-6cbf-a3c25e8cb350 <span class="token operator">|</span> StreamToStreamEngine          <span class="token operator">|</span> STREAMTOSTREAMENGINE        <span class="token operator">|</span> 3819b564-a79e-394d-7bbe-ddc2380f5f68 <span class="token operator">|</span> 1.0
 6f3d98a1-2b69-c711-f8f1-e5336eee2957 <span class="token operator">|</span> StreamToBatchEngine           <span class="token operator">|</span> STREAMTOBATCHENGINE         <span class="token operator">|</span> 0abe3dab-c535-edcb-141b-a0d9e7746a6d <span class="token operator">|</span> 1.0
 c1ea8c60-afd7-1c75-4686-af114173775e <span class="token operator">|</span> OnDemandStreamEngine          <span class="token operator">|</span> ONDEMANDSTREAMENGINE        <span class="token operator">|</span> 1bfc7496-d2d3-2140-c137-af09b423a2fe <span class="token operator">|</span> 1.0
 1bfe0c14-7257-b56b-683c-7eb2c7f38fa4 <span class="token operator">|</span> OnDemandServingEngine         <span class="token operator">|</span> ONDEMANDSERVINGENGINE       <span class="token operator">|</span> cfb9b524-7457-b910-0261-587c5bfe74de <span class="token operator">|</span> 1.0
 aa301492-6d85-2aae-cbf7-ee640d5a2c1d <span class="token operator">|</span> ExternalEngine                <span class="token operator">|</span> EXTERNALENGINE              <span class="token operator">|</span> e960e289-54df-1790-6e4a-05a75b326cec <span class="token operator">|</span> 1.0
 69686c51-3a70-29bf-608c-7721ac37d98d <span class="token operator">|</span> GenericEngine                 <span class="token operator">|</span> GENERICENGINE               <span class="token operator">|</span> 1dfb7769-8a34-304e-d9d5-00b2cffbbca7 <span class="token operator">|</span> 1.0
 a52ccda4-c59a-01a2-af7d-025cb03fff10 <span class="token operator">|</span> BatchToBatchStreamEngine      <span class="token operator">|</span> BATCHTOBATCHSTREAMENGINE    <span class="token operator">|</span> cd0758ae-b150-850a-9d73-b29152e820ce <span class="token operator">|</span> 1.0
 5da27056-c880-7917-5e6f-d7db44083e92 <span class="token operator">|</span> OnDemandStreamServingEngine   <span class="token operator">|</span> ONDEMANDSTREAMSERVINGENGINE <span class="token operator">|</span> 03ecfbd2-1a3d-2e6c-2448-06f3f2dcfe89 <span class="token operator">|</span> 1.0
 7b4e13dd-bb5d-289e-6022-9c651f2ca1c1 <span class="token operator">|</span> StreamPipeEngine              <span class="token operator">|</span> STREAMTOSTREAMENGINE        <span class="token operator">|</span> 58b47983-3a49-386a-6403-b6a0ec5c4c67 <span class="token operator">|</span> 1.0
 790be3d3-4f2c-0318-021c-999b8ab59db3 <span class="token operator">|</span> StreamJoinEngine              <span class="token operator">|</span> INOUTTWIGS2SENGINE          <span class="token operator">|</span> 50f1fd26-49e0-5d70-3ff0-0d14f0c6d19a <span class="token operator">|</span> 1.0
 2043f861-2298-4cd8-7633-97fc06f6f1ab <span class="token operator">|</span> OnDemandPipeServingEngine     <span class="token operator">|</span> ONDEMANDCOMPOSITEENGINE     <span class="token operator">|</span> 4aff5c80-8b63-527a-7fe9-0e12e8c21735 <span class="token operator">|</span> 1.0
 8f8a4039-46c1-acc5-c425-4e2688b2eb84 <span class="token operator">|</span> BatchDummyEngine              <span class="token operator">|</span> BATCHDUMMYENGINE            <span class="token operator">|</span> d625a81a-ad0f-0822-3752-c040c1d4ebf6 <span class="token operator">|</span> 1.0
 05761a24-af7e-eda6-428d-fba552ef1cf7 <span class="token operator">|</span> OnDemandExternalServingEngine <span class="token operator">|</span> EXTERNALENGINE              <span class="token operator">|</span> fe67950b-aadb-0094-186d-797ad573c84c <span class="token operator">|</span> 1.0
<span class="token punctuation">(</span>14개 행<span class="token punctuation">)</span>


</pre><h2 class="mume-header" id="ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-db-%EC%A0%95%EC%9D%98">KSB 웹툴킷 DB 정의</h2>

<p>SDK 압축파일에 포함된 백업파일(uidb_v1.0.backup)을 이용하여 KSB 웹툴 DB 정보를 restore 합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> -u postgres <span class="token function">bash</span> -c <span class="token string">"psql -c \"CREATE DATABASE uidb WITH OWNER = csle ENCODING = 'UTF-8' CONNECTION LIMIT = -1;\""</span>

$ PGPASSWORD<span class="token operator">=</span>사용자암호 pg_restore -h localhost -U csle -C -d uidb /home/csle/ksb-csle/webToolkit_db/uidb_v1.0.backup
</pre><p>postgresql 에 접속하여 정상적으로 복구 되었는지 확인 합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> -su postgres

$ psql

postgres<span class="token operator">=</span><span class="token comment"># \c uidb;</span>

uidb<span class="token operator">=</span><span class="token comment"># SELECT count(*) FROM template where msg_version = '1.0';</span>

 count
-------
    23
<span class="token punctuation">(</span>1개 행<span class="token punctuation">)</span>

</pre><h2 class="mume-header" id="ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-%ED%9A%8C%EC%9B%90-%EA%B0%80%EC%9E%85-%EA%B8%B0%EB%8A%A5-%ED%99%9C%EC%84%B1%ED%99%94%EB%A5%BC-%EC%9C%84%ED%95%9C-%EC%84%A4%EC%A0%95">KSB 웹툴킷 회원 가입 기능 활성화를 위한 설정</h2>

<p>KSB 웹툴킷은 이메일을 통해 사용자 가입을 처리하도록 되어 있습니다. 이를 위해 관리자의 메일 계정을 설정 하도록 되어 있으며, Gmail 계정을 통해 설정할 수 있습니다. 관리자는 uidb 의 system_configuration 테이블에 자신의 Gmail 계정을 설정할 수 있으며, 사용자가 회원 가입을 신청하면 관련 메일이 관리자의 Gmail 계정을 통해 발송 됩니다.<br>
설정 방법은, KSB 웹툴킷에 관리자 계정(<a href="mailto:ksbuser@etri.re.kr">ksbuser@etri.re.kr</a>)으로 로그인 하여 Management 메뉴의 System Configuration 탭에서 '<a href="http://javax.mail.session.prop.id">javax.mail.session.prop.id</a>' property에서 수정아이콘을 클릭하여 Gmail 계정(<a href="mailto:aaa@gmail.com">aaa@gmail.com</a> 이면 aaa)을 'javax.mail.session.prop.password' 에 Gmail 암호를 입력하고 저장 아이콘을 클릭하여 수정한 사항을 저장 합니다.</p>
<p>이메일의 발송 시, 사용자에게 메일로 안내되는 링크의 ip는 KSB 웹툴킷이 구동중인 서버의 설정을 따릅니다. 만약 localhost로 구동 하였다면, KSB 웹툴킷이 구동중인 서버에서만 가입 절차를 진행할 수 있으므로, 외부에서 접속 가능한 ip로 실행 하시기 바랍니다.</p>
<h2 class="mume-header" id="apache-tomcat-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C">Apache Tomcat 다운로드</h2>

<p>KSB 웹툴킷은 웹컨테이너로 Apache tomcat 7을 이용합니다. <a href="https://tomcat.apache.org/download-70.cgi">https://tomcat.apache.org/download-70.cgi</a> 사이트에서 binary distribution을 다운로드 받아, 적당한 위치에 압축을 해제 합니다.</p>
<p>본 매뉴얼 에서는 '/home/csle/ui_of_csle/apache-tomcat-7.0.88/' 에<br>
압축을 해제 한 것으로 가정합니다.</p>
<h2 class="mume-header" id="tomcat-%EC%84%A4%EC%A0%95-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">Tomcat 설정 업데이트</h2>

<h3 class="mume-header" id="webxml-%ED%8C%8C%EC%9D%BC-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">web.xml 파일 업데이트</h3>

<p>/home/csle/ui_of_csle/apache-tomcat-7.0.88/conf/ 디렉토리에 있는 web.xml 파일을 열어 UTF-8 설정 및 Session timeout을 조정합니다.</p>
<pre data-role="codeBlock" data-info="xml" class="language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>filter</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>filter-name</span><span class="token punctuation">></span></span>setCharacterEncodingFilter<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>filter-name</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>filter-class</span><span class="token punctuation">></span></span>org.apache.catalina.filters.SetCharacterEncodingFilter<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>filter-class</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>init-param</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>param-name</span><span class="token punctuation">></span></span>encoding<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>param-name</span><span class="token punctuation">></span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>param-value</span><span class="token punctuation">></span></span>UTF-8<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>param-value</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>init-param</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>async-supported</span><span class="token punctuation">></span></span>true<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>async-supported</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>filter</span><span class="token punctuation">></span></span>

.....

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>filter-mapping</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>filter-name</span><span class="token punctuation">></span></span>setCharacterEncodingFilter<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>filter-name</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>url-pattern</span><span class="token punctuation">></span></span>/*<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>url-pattern</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>filter-mapping</span><span class="token punctuation">></span></span>

.....

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>session-config</span><span class="token punctuation">></span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>session-timeout</span><span class="token punctuation">></span></span>360<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>session-timeout</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- minutes --></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>session-config</span><span class="token punctuation">></span></span>
</pre><h3 class="mume-header" id="serverxml-%ED%8C%8C%EC%9D%BC-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">server.xml 파일 업데이트</h3>

<p>다음으로, server.xml 파일을 열어 UTF-8 설정을 조정 합니다.</p>
<pre data-role="codeBlock" data-info="xml" class="language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Connector</span> <span class="token attr-name">port</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>8080<span class="token punctuation">"</span></span> <span class="token attr-name">protocol</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>HTTP/1.1<span class="token punctuation">"</span></span>
           <span class="token attr-name">connectionTimeout</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>2000000<span class="token punctuation">"</span></span>
           <span class="token attr-name">redirectPort</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>8443<span class="token punctuation">"</span></span> <span class="token attr-name">disableUploadTimeout</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>true<span class="token punctuation">"</span></span> <span class="token attr-name">URIEncoding</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>UTF-8<span class="token punctuation">"</span></span><span class="token punctuation">/></span></span>

.....

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Connector</span> <span class="token attr-name">port</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>8009<span class="token punctuation">"</span></span> <span class="token attr-name">protocol</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>AJP/1.3<span class="token punctuation">"</span></span> <span class="token attr-name">redirectPort</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>8443<span class="token punctuation">"</span></span> <span class="token attr-name">URIEncoding</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>UTF-8<span class="token punctuation">"</span></span><span class="token punctuation">/></span></span>
</pre><h2 class="mume-header" id="%EC%9B%B9%ED%8C%8C%EC%9D%BC-%EC%84%A4%EC%B9%98-%EB%B0%8F-ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-db-%EC%A0%91%EC%86%8D%EC%A0%95%EB%B3%B4-%EC%84%A4%EC%A0%95">웹파일 설치 및 KSB 인공지능 프레임워크 DB 접속정보 설정</h2>

<p>압축된 SDK에서 /home/csle/ksb-csle/tools/webToolkit_db/csle-web_20181025.war 파일을 /home/csle/ui_of_csle/apache-tomcat-7.0.88/webapps 디렉토리로 복사 합니다.</p>
<p>그리고, csle-web_20181025.war 파일의 이름을 ROOT.war로 변경 합니다.</p>
<h3 class="mume-header" id="tomcat-%EC%84%9C%EB%B2%84-%EA%B5%AC%EB%8F%99">Tomcat 서버 구동</h3>

<p>/home/csle/ui_of_csle/apache-tomcat-7.0.88/bin 디렉토리에 있는<br>
<code>catalina.sh</code> 파일을 통해 Tomcat을 구동하면 웹파일이 압축해제 되어<br>
/home/csle/ui_of_csle/apache-tomcat-7.0.88/webapps/ROOT 폴더가 생성되고, 서버가 구동 됩니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">cd</span> /home/csle/ui_of_csle/apache-tomcat-7.0.88/bin
$ ./catalina.sh start -Dfile.encoding<span class="token operator">=</span>UTF-8

<span class="token punctuation">(</span>2018-06-30 12:22:37<span class="token punctuation">)</span> <span class="token operator">&lt;</span>localhost-startStop-1<span class="token operator">></span> <span class="token punctuation">[</span>DEBUG<span class="token punctuation">]</span> SQL: SELECT * FROM system_configuration WHERE name <span class="token operator">=</span> ?, name: <span class="token punctuation">[</span>csle.gw.host<span class="token punctuation">]</span> <span class="token punctuation">(</span>SystemConfigurationDao.java:130<span class="token punctuation">)</span>
<span class="token punctuation">(</span>2018-06-30 12:22:37<span class="token punctuation">)</span> <span class="token operator">&lt;</span>localhost-startStop-1<span class="token operator">></span> <span class="token punctuation">[</span>DEBUG<span class="token punctuation">]</span> SQL: SELECT * FROM system_configuration WHERE name <span class="token operator">=</span> ?, name: <span class="token punctuation">[</span>csle.gw.port<span class="token punctuation">]</span> <span class="token punctuation">(</span>SystemConfigurationDao.java:130<span class="token punctuation">)</span>
6월 30, 2018 12:22:38 오후 org.apache.catalina.startup.HostConfig deployWAR
정보: Deployment of web application archive /home/kbe/ui_of_csle/apache-tomcat-7.0.81/webapps/ROOT.war has finished <span class="token keyword">in</span> 5,246 ms
6월 30, 2018 12:22:38 오후 org.apache.coyote.AbstractProtocol start
정보: Starting ProtocolHandler <span class="token punctuation">[</span><span class="token string">"http-bio-8080"</span><span class="token punctuation">]</span>
6월 30, 2018 12:22:38 오후 org.apache.coyote.AbstractProtocol start
정보: Starting ProtocolHandler <span class="token punctuation">[</span><span class="token string">"ajp-bio-8009"</span><span class="token punctuation">]</span>
6월 30, 2018 12:22:38 오후 org.apache.catalina.startup.Catalina start
정보: Server startup <span class="token keyword">in</span> 5339 ms
</pre><h3 class="mume-header" id="tomcat-%EB%A1%9C%EA%B7%B8-%EB%B3%B4%EA%B8%B0">Tomcat 로그 보기</h3>

<p>Tomcat 이 잘 구동되고 있는지 확인하기 위해 Tomcat 로그 파일을 엽니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">tail</span> -f <span class="token punctuation">..</span>/logs/catalina.out
</pre><h2 class="mume-header" id="ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-%EA%B5%AC%EB%8F%99">KSB 인공지능 프레임워크 구동</h2>

<p>KSB 인공지능 프레임워크 툴박스를 설치하거나 소스를 빌드한 후,<br>
ksb-csle/bin 디렉토리에 있는 <a href="http://startKsbApiServing.sh">startKsbApiServing.sh</a> 파일을 실행 합니다.<br>
파일 실행 전에 ls와 같이 간단한 명령을 sudo를 통해 한 번 실행 합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">$ <span class="token function">sudo</span> <span class="token function">ls</span>
$ ./startKsbApiServing.sh
</pre><p>구동이 성공적으로 이루어지면, 다음과 같은 로그가 생성되며,<br>
[akka://KsbApi-serving/user/IO-HTTP/listener-0] Bound to /0.0.0.0:19999<br>
위 메시지를 통해 현재 호스트 PC의 19999 포트를 통해 구동 되는 것을 확인할 수 있습니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">2018-10-22 16:51:12.113 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>ConfigUtils$<span class="token punctuation">]</span> KSB config <span class="token function">file</span> path :/home/csle/ksb-csle/conf/ksb.conf <span class="token punctuation">(</span>ConfigUtils.scala:29<span class="token punctuation">)</span>
2018-10-22 16:51:13.355 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>KsbApiServing$<span class="token punctuation">]</span> <span class="token punctuation">[</span>Local mode<span class="token punctuation">]</span> Update status of incompletely terminated <span class="token punctuation">[</span>0<span class="token punctuation">]</span> job<span class="token punctuation">(</span>s<span class="token punctuation">)</span> <span class="token keyword">in</span> previous operation <span class="token punctuation">(</span>KsbApiServing.scala:60<span class="token punctuation">)</span>
2018-10-22 16:51:13.644 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>ApiServingActor<span class="token punctuation">]</span> KSB ApiServingActor has been started. <span class="token punctuation">(</span>ApiServingActor.scala:820<span class="token punctuation">)</span>
2018-10-22 16:51:13.644 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>ApiServingActor<span class="token punctuation">]</span> KSB ApiServingActor has been started. <span class="token punctuation">(</span>ApiServingActor.scala:820<span class="token punctuation">)</span>
2018-10-22 16:51:13.644 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>ApiServingActor<span class="token punctuation">]</span> KSB ApiServingActor has been started. <span class="token punctuation">(</span>ApiServingActor.scala:820<span class="token punctuation">)</span>
2018-10-22 16:51:13.644 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>ApiServingActor<span class="token punctuation">]</span> KSB ApiServingActor has been started. <span class="token punctuation">(</span>ApiServingActor.scala:820<span class="token punctuation">)</span>
2018-10-22 16:51:13.644 <span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>ApiServingActor<span class="token punctuation">]</span> KSB ApiServingActor has been started. <span class="token punctuation">(</span>ApiServingActor.scala:820<span class="token punctuation">)</span>
2018-10-22 16:51:13,905 INFO StdSchedulerFactory: Using default implementation <span class="token keyword">for</span> ThreadExecutor
2018-10-22 16:51:13,910 INFO SimpleThreadPool: Job execution threads will use class loader of thread: main
2018-10-22 16:51:13,923 INFO SchedulerSignalerImpl: Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2018-10-22 16:51:13,923 INFO QuartzScheduler: Quartz Scheduler v.2.3.0 created.
2018-10-22 16:51:13,924 INFO RAMJobStore: RAMJobStore initialized.
2018-10-22 16:51:13,925 INFO QuartzScheduler: Scheduler meta-data: Quartz Scheduler <span class="token punctuation">(</span>v2.3.0<span class="token punctuation">)</span> <span class="token string">'DefaultQuartzScheduler'</span> with instanceId <span class="token string">'NON_CLUSTERED'</span>
  Scheduler class: <span class="token string">'org.quartz.core.QuartzScheduler'</span> - running locally.
  NOT STARTED.
  Currently <span class="token keyword">in</span> standby mode.
  Number of <span class="token function">jobs</span> executed: 0
  Using thread pool <span class="token string">'org.quartz.simpl.SimpleThreadPool'</span> - with 10 threads.
  Using job-store <span class="token string">'org.quartz.simpl.RAMJobStore'</span> - <span class="token function">which</span> does not support persistence. and is not clustered.

2018-10-22 16:51:13,925 INFO StdSchedulerFactory: Quartz scheduler <span class="token string">'DefaultQuartzScheduler'</span> initialized from default resource <span class="token function">file</span> <span class="token keyword">in</span> Quartz package: <span class="token string">'quartz.properties'</span>
2018-10-22 16:51:13,925 INFO StdSchedulerFactory: Quartz scheduler version: 2.3.0
2018-10-22 16:51:13,925 INFO QuartzScheduler: Scheduler DefaultQuartzScheduler_<span class="token variable">$_NON_CLUSTERED</span> started.
<span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>10/22/2018 16:51:13.979<span class="token punctuation">]</span> <span class="token punctuation">[</span>KsbApi-serving-akka.actor.default-dispatcher-2<span class="token punctuation">]</span> <span class="token punctuation">[</span>akka://KsbApi-serving/user/IO-HTTP/listener-0<span class="token punctuation">]</span> Bound to /0.0.0.0:19999
<span class="token punctuation">[</span>INFO<span class="token punctuation">]</span> <span class="token punctuation">[</span>10/22/2018 16:51:13.981<span class="token punctuation">]</span> <span class="token punctuation">[</span>KsbApi-serving-akka.actor.default-dispatcher-3<span class="token punctuation">]</span> <span class="token punctuation">[</span>akka://KsbApi-serving/deadLetters<span class="token punctuation">]</span> Message <span class="token punctuation">[</span>akka.io.Tcp<span class="token variable">$Bound</span><span class="token punctuation">]</span> from Actor<span class="token punctuation">[</span>akka://KsbApi-serving/user/IO-HTTP/listener-0<span class="token comment">#1547261392] to Actor[akka://KsbApi-serving/deadLetters] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.</span>
2018-10-23 08:22:18,351 WARN NativeCodeLoader: Unable to load native-hadoop library <span class="token keyword">for</span> your platform<span class="token punctuation">..</span>. using builtin-java classes where applicable
</pre><h2 class="mume-header" id="ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-%EC%84%A4%EC%A0%95-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">KSB 웹툴킷 설정 업데이트</h2>

<p>KSB 웹툴킷과 KSB 인공지능 프레임워크는 다음 사용자 정보가 저장되어 있습니다.</p>
<p>    User ID: <a href="mailto:ksbuser@etri.re.kr">ksbuser@etri.re.kr</a> / User Password: <a href="mailto:ksbuser@etri.re.kr">ksbuser@etri.re.kr</a></p>
<p>Chrome 브라우저(또는 HTML5 표준 호환 브라우저)를 열고 위 사용자 정보를 입력하여 로그인합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">http://localhost:8080
</pre><p><img src="./images/1.4_01.png" alt="login"></p>
<p>정상적으로 로그인에 성공하면, Management 메뉴를 클릭해서 KSB 인공지능 프레임워크가 구동되고 있는 환경 정보를 csle.gw.host 와 csle.gw.port 정보에 반영 합니다.<br>
본 매뉴얼에서는 localhost 와 19999 포트가 되겠습니다.</p>
<p><img src="./images/1.4_02.png" alt="management"></p>
<p>설정이 완료되면, Tomcat 서버를 재구동 하고, KSB 웹툴킷을 이용 합니다.</p>
<pre data-role="codeBlock" data-info="sh" class="language-bash">
$ ./catalina.sh stop

$ ./catalina.sh start

</pre>
      </div>
      <div class="md-sidebar-toc"><ul>
<li><a href="#ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-%EC%84%A4%EC%B9%98">KSB 웹툴킷 설치</a>
<ul>
<li><a href="#%EC%84%A4%EC%B9%98-%EC%9A%94%EA%B5%AC%EC%82%AC%ED%95%AD">설치 요구사항</a></li>
<li><a href="#ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-db-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0">KSB 인공지능 프레임워크 DB 설치하기</a></li>
<li><a href="#ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-db-%EC%A0%95%EC%9D%98">KSB 인공지능 프레임워크 DB 정의</a></li>
<li><a href="#ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-db-%EC%A0%95%EC%9D%98">KSB 웹툴킷 DB 정의</a></li>
<li><a href="#ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-%ED%9A%8C%EC%9B%90-%EA%B0%80%EC%9E%85-%EA%B8%B0%EB%8A%A5-%ED%99%9C%EC%84%B1%ED%99%94%EB%A5%BC-%EC%9C%84%ED%95%9C-%EC%84%A4%EC%A0%95">KSB 웹툴킷 회원 가입 기능 활성화를 위한 설정</a></li>
<li><a href="#apache-tomcat-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C">Apache Tomcat 다운로드</a></li>
<li><a href="#tomcat-%EC%84%A4%EC%A0%95-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">Tomcat 설정 업데이트</a>
<ul>
<li><a href="#webxml-%ED%8C%8C%EC%9D%BC-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">web.xml 파일 업데이트</a></li>
<li><a href="#serverxml-%ED%8C%8C%EC%9D%BC-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">server.xml 파일 업데이트</a></li>
</ul>
</li>
<li><a href="#%EC%9B%B9%ED%8C%8C%EC%9D%BC-%EC%84%A4%EC%B9%98-%EB%B0%8F-ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-db-%EC%A0%91%EC%86%8D%EC%A0%95%EB%B3%B4-%EC%84%A4%EC%A0%95">웹파일 설치 및 KSB 인공지능 프레임워크 DB 접속정보 설정</a>
<ul>
<li><a href="#tomcat-%EC%84%9C%EB%B2%84-%EA%B5%AC%EB%8F%99">Tomcat 서버 구동</a></li>
<li><a href="#tomcat-%EB%A1%9C%EA%B7%B8-%EB%B3%B4%EA%B8%B0">Tomcat 로그 보기</a></li>
</ul>
</li>
<li><a href="#ksb-%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-%EA%B5%AC%EB%8F%99">KSB 인공지능 프레임워크 구동</a></li>
<li><a href="#ksb-%EC%9B%B9%ED%88%B4%ED%82%B7-%EC%84%A4%EC%A0%95-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8">KSB 웹툴킷 설정 업데이트</a></li>
</ul>
</li>
</ul>
</div>
      <a id="sidebar-toc-btn"></a>
    </body>
    
    
    
    
    
    
    
<script>
document.body.setAttribute('html-show-sidebar-toc', true)
var sidebarTOCBtn = document.getElementById('sidebar-toc-btn')
sidebarTOCBtn.addEventListener('click', function(event) {
  event.stopPropagation()
  if (document.body.hasAttribute('html-show-sidebar-toc')) {
    document.body.removeAttribute('html-show-sidebar-toc')
  } else {
    document.body.setAttribute('html-show-sidebar-toc', true)
  }
})
</script>
      
  </html>