CentOS 7 ํ๊ฒฝ์์ GUI ์์ด
imcl๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ WebSphere v9.0.5.1์ ์ค์นํฉ๋๋ค. v9.0๋ถํฐ ๋ณ๊ฒฝ๋ ์ ์ฑ ์ ๋ฐ๋ผ JDK 8์ ๋ฐ๋์ ํจ๊ป ์ค์นํด์ผ ํจ์ ๊ฐ์กฐํ๋ฉฐ, WAS, IHS, Plugin ์ค์น ๋ฐ ํจ์น ์ ์ฉ ๋ช ๋ น์ด๋ฅผ ์ ๋ฆฌํฉ๋๋ค.
Test Environment
- OS: CentOS 7 (3.10.0-957.el7.x86_64)
- Installer: IBM Installation Manager (IM) 1.8.x ์ด์
- Target Version: WebSphere Application Server 9.0.5.1
1. Installation Manager (IM) ์ค์น
IBM ์ ํ๊ตฐ์ ์ค์นํ๊ณ ๊ด๋ฆฌํ๋ ๋๊ตฌ์ธ IM์ ๋จผ์ ์ค์นํฉ๋๋ค. -repositories์๋ repository.config ํ์ผ์ด ์๋ ๊ฒฝ๋ก๋ฅผ ์ง์ ํฉ๋๋ค.
์ค์น ๋ช ๋ น์ด
# ์ค์น ๊ฒฝ๋ก๋ก ์ด๋
cd /sw/img/im
# IM ์ค์น ์คํ
./imcl install com.ibm.cic.agent \
-repositories "/sw/img/im/repository.config" \
-installationDirectory "/sw/IBM/InstallationManager/eclipse" \
-sharedResourcesDirectory "/sw/IBM/IMShared" \
-acceptLicense \
-showProgress -sP
์ค์นํ๋ ค๋ ์ ํ์ ์ ํํ ID(์: com.ibm.websphere...)๋ฅผ ๋ชจ๋ฅธ๋ค๋ฉด ์ค์น ๋ฏธ๋์ด ๋ด์
Offerings ํด๋๋ฅผ ํ์ธํ๊ฑฐ๋, ./imcl listAvailablePackages -repositories [๊ฒฝ๋ก] ๋ช
๋ น์ด๋ก ์กฐํํ ์ ์์ต๋๋ค.
2. WebSphere Application Server (WAS) ์ค์น
์ค์: WAS v9.0์ ๊ธฐ๋ณธ JDK๊ฐ ํฌํจ๋์ด ์์ง ์์ต๋๋ค. ๋ฐ๋ผ์ com.ibm.websphere.BASE... ํจํค์ง์ com.ibm.java.jdk.v8... ํจํค์ง๋ฅผ ๋์์ ์ง์ ํ์ฌ ์ค์นํด์ผ ํฉ๋๋ค.
์ค์น ๋ช ๋ น์ด (Base + JDK 8)
์ค์น ๋๊ตฌ(tools) ๊ฒฝ๋ก๋ก ์ด๋ํ์ฌ ์คํํฉ๋๋ค.
cd /sw/IBM/InstallationManager/eclipse/tools
# WAS ๋ฐ JDK ๋์ ์ค์น
./imcl install com.ibm.websphere.BASE.v90_9.0.5001.20190828_0616 \
com.ibm.java.jdk.v8_8.0.5041.20190924_1031 \
-repositories "/sw/img/base","/sw/img/sdk" \
-installationDirectory "/sw/was/AppServer9" \
-sharedResourcesDirectory "/sw/IBM/IMShared" \
-acceptLicense \
-properties cic.selector.nl=ko \
-showProgress -sP
Fix Pack ์ ๋ฐ์ดํธ (Optional)
์ค์น ํ ํน์ ํฝ์คํฉ(์: 9.0.5.3)์ผ๋ก ์ ๋ฐ์ดํธ๊ฐ ํ์ํ ๊ฒฝ์ฐ ์๋ ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํฉ๋๋ค.
./imcl install com.ibm.websphere.BASE.v90_9.0.5003.20200226_0941 \
-repositories "/sw/img/fixwas" \
-installationDirectory "/sw/was/AppServer9" \
-acceptLicense -sP
3. IBM HTTP Server (IHS) ์ค์น
์น ์๋ฒ์ธ IHS๋ ๋ง์ฐฌ๊ฐ์ง๋ก JDK ์ค์น๊ฐ ํ์ํฉ๋๋ค. user.ihs.httpPort ์์ฑ์ผ๋ก ๊ธฐ๋ณธ ํฌํธ๋ฅผ ์ง์ ํ ์ ์์ต๋๋ค.
# IHS ๋ฐ JDK ๋์ ์ค์น
./imcl install com.ibm.websphere.IHS.v90_9.0.5001.20190828_0616 \
com.ibm.java.jdk.v8_8.0.5041.20190924_1031 \
-repositories "/sw/img/ihs","/sw/img/sdk" \
-installationDirectory "/sw/web/IHS9" \
-sharedResourcesDirectory "/sw/IBM/IMShared" \
-acceptLicense \
-properties user.ihs.httpPort="80" \
-showProgress -sP
4. Web Server Plugin (PLG) ์ค์น
WAS์ ์น ์๋ฒ๋ฅผ ์ฐ๋ํด์ฃผ๋ ํ๋ฌ๊ทธ์ธ ๋ชจ๋์ ๋๋ค.
# Plugin ๋ฐ JDK ๋์ ์ค์น
./imcl install com.ibm.websphere.PLG.v90_9.0.5001.20190828_0616 \
com.ibm.java.jdk.v8_8.0.5041.20190924_1031 \
-repositories "/sw/img/plg","/sw/img/sdk" \
-installationDirectory "/sw/web/Plugins9" \
-sharedResourcesDirectory "/sw/IBM/IMShared" \
-acceptLicense \
-showProgress -sP
5. ์ค์น ๊ฒ์ฆ (Verification)
๋ชจ๋ ์ค์น๊ฐ ์๋ฃ๋๋ฉด ์ค์น๋ ํจํค์ง ๋ชฉ๋ก๊ณผ ์์ธ ๋ฒ์ ์ ํ์ธํฉ๋๋ค.
์ค์น๋ ํจํค์ง ๋ชฉ๋ก ํ์ธ
# IM ๋ช
๋ น์ด๋ก ํ์ธ
./imcl listInstalledPackages
์์ธ ๋ฒ์ ๋ฆฌํฌํธ ํ์ธ
WAS๊ฐ ์ ๊ณตํ๋ ์คํฌ๋ฆฝํธ๋ก ์์ธ ๋ฆฌํฌํธ๋ฅผ ํ์ธํฉ๋๋ค.
# WAS ํ์ bin ๋๋ ํ ๋ฆฌ
/sw/was/AppServer9/bin/versionInfo.sh
Next Step:
์์ง ์ค์น๊ฐ ์๋ฃ๋์์ต๋๋ค. ์ด์ manageprofiles.sh ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์ค์ ์๋น์ค๋ฅผ ๊ตฌ๋ํ ํ๋กํ์ผ(Profile)์ ์์ฑํด์ผ ํฉ๋๋ค.