redhat linux websphere 6 命令列安裝(靜默安裝)
阿新 • • 發佈:2019-02-09
WAS 6 命令列安裝(靜默安裝)
過去我們安裝was6 的時候,基本上都採用介面化安裝的方法,這種方法簡單方便。但是有時候,我們在安裝的時候伺服器沒有視窗,或者遠端安裝而無法連線視窗時,我們可以採用命令列安裝的方式,即靜默安裝。下面就介紹一下如何命令列安裝(靜默安裝--silent installation)(以linux為例)。
一、 WAS程式安裝
1、上傳檔案:
可以用ftp方式將WebSphere Application Server Network Deployment V6.1 for Linux on x86Series C88STML.tar安裝包上傳到伺服器。
2、登陸root使用者,解壓該安裝包
# tar –xvf WebSphere Application Server Network Deployment V6.1 for Linux on x86Series C88STML.tar
3、編輯配置檔案responsefile.nd.txt。
responsefile.nd.txt檔案(本人實驗時檔名是responsefile.base.txt,一下皆替換即可)位於WAS資料夾中,命令列安裝(靜默安裝)需要修改該檔案的相關選擇,下面講要修改的引數陳列如下:
-OPT silentInstallLicenseAcceptance="true" –接受License
-OPT allowNonRootSilentInstall="true" --是否允許非root使用者安裝
-OPT disableOSPrereqChecking="true" --取消對系統的檢測
-OPT installType="installNew" --是否全新安裝
-OPT feature="noFeature" --不安裝示例
-OPT installLocation="/opt/IBM/WebSphere/AppServer" --HP-UX, Solaris or Linux預設安裝路徑。如果是在AIX下進行安裝,則路徑為:
-OPT installLocation="/usr/IBM/WebSphere/AppServer"
-OPT profileType="none" --不生成概要
-OPT PROF_enableAdminSecurity="false" --設定管理員安全,如果該值為true 則在下面兩項上輸入使用者名稱和密碼。如:使用者名稱為admin ,密碼為123456
-OPT PROF_adminUserName=”admin”
-OPT PROF_adminPassword=”123456”
儲存該檔案
4、執行命令列安裝(靜默安裝):
以root賬號身份執行,在命令列輸入
# ./install -options "responsefile.nd.txt" –silent
等待一會,直到命令執行完成。檢視是否安裝成功。
# ls –alF /opt 如果opt路徑下有.ibm 和IBM資料夾則說明安裝完成。
5、檢視安裝日誌。日誌檔案位於
/opt/IBM/WebSphere/AppServer/logs/install/log.txt,有興趣可以自己看一下
如果安裝失敗,檢視日誌,本人安裝時就是磁碟剩餘空間有限,然後解決.
#./manageprofiles.sh -create -profileName tzx -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default –建立名字為tzx的概要。
2.啟動概要, 進入 /opt/IBM/WebSphere/AppServer/profiles/tzx/bin 資料夾,執行下面命令:
cd /opt/IBM/WebSphere/AppServer/bin