WAS常用配置的檔案
1.檢視環境配置資訊
D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\AboutThisProfile.txt
要建立的應用程式伺服器環境: 應用程式伺服器
位置: D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01
需要的磁碟空間: 200 MB
概要檔名: AppSrv01
將此概要檔案設為預設概要檔案: True
節點名: arcgis0Node01
主機名: arcgis0
啟用管理安全性(建議): True
管理控制檯埠: 9060
管理控制檯安全埠: 9043
HTTP 傳輸埠: 9080
HTTPS 傳輸埠: 9443
載入程式埠: 2809
SOAP 聯結器埠: 8880
將應用程式伺服器作為服務執行: True
建立 Web 伺服器定義: False
2.檢視AppSrv01 的日誌
D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1
3.Appsrv01 start/stop命令
D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\bin
4.修改主機名埠資訊檔案
D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\arcgis0Node01Cell\nodes\arcgis0Node01\serverindex.xml
5.修改JVM記憶體設定
1.修改配置檔案D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\arcgis0Node01Cell\nodes\arcgis0Node01\servers\server1\server.xml
<jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="128" maximumHeapSize="256" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="" executableJarFileName="" disableJIT="false">
2.(圖形)伺服器-->WebSpehre Application Server -->server1-->java和 程序管理-->程序定義--> JAVA 虛擬機器-->初始堆大小、最大堆大小-->儲存
中文字元亂碼:
JVM引數:
-Ddefault.client.encoding=GBK -Dclient.encoding.override=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN
6.修改Websphere變數
Websphere修改變數錯誤導致控制檯無法啟動
因為是websphere變數錯誤控制檯無法啟動,所以我們只能去修改變數配置檔案;
進入
C:\ProgramFiles\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\WIN-9389OC4NMRSNode01Cell\nodes\WIN-9389OC4NMRSNode01 (全域性變數)variables.xml
symbolicName="JAVA_HOME"value="${WAS_INSTALL_ROOT}/java
symbolicName="WAS_INSTALL_ROOT"value="C:\Program Files\IBM\WebSphere\AppServer
C:\ProgramFiles\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\WIN-9389OC4NMRSNode01Cell\nodes\WIN-9389OC4NMRSNode01\servers\server1 (server1區域性變數)
server1變數的優先順序高於WIN-9389OC4NMRSNode01(主機名+節點) 中的變數;
variables.xml
symbolicName="JAVA_HOME"value="${WAS_INSTALL_ROOT}/java
symbolicName="WAS_INSTALL_ROOT"value="C:\Program Files\IBM\WebSphere\AppServer
7.修改wasadmin密碼
管理控制檯密碼遺忘有兩種補救措施:
方法一:命令列——從$WAS_HOME/profiles/xxx 概要檔名/bin目錄下,執行 wsadmin -conntype NONE 。
當wsadmin的命令列窗口出現之後,執行 securityoff 。上述操作在應用伺服器啟動或停止的狀態都能發出。
再次啟用WAS時,就是停用管理安全性的狀態了。
方法二:修改配置檔案——修改$WAS_HOME\config\cells\xxx 下的security.xml,把第一個enable改成false就取消安全性了
8.建立概要檔案:
注意:大小寫
建立概要檔案:
windows: manageprofiles.bat -create -profileName AppSrv02
unix:./manageprofiles.sh -create -profileName AppSrv01
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default
列出概要檔案:
D:\Program Files\IBM\WebSphere\AppServer\bin>manageprofiles.bat -listProfiles
[AppSrv01, AppSrv02]
cd /usr/IBM/WebSphere/AppServer/bin
檢視刪除概要
./manageprofiles.sh -listProfiles
[Dmgr01, AppSrv01]
./manageprofiles.sh -delete -profileName Dmgr01
./manageprofiles.sh -delete -profileName AppSrv01
建立管理概要
./manageprofiles.sh -create -profileName Dmgr03 -profilePath /usr/IBM/WebSphere/AppServer/profiles/Dmgr03
-templatePath /usr/IBM/WebSphere/AppServer/profileTemplates/dmgr/
如果概要檔案需要在不同的機器上執行,設定 -hostName 為IP地址,預設為主機名
也可以自定義 -nodeName -cellName 值
建立應用概要
./manageprofiles.sh -create -profileName app3 -profilePath /usr/IBM/WebSphere/AppServer/profiles/AppSrv03 -templatePath /usr/IBM/WebSphere/AppServer/profileTemplates/default/
啟動管理控制
/usr/IBM/WebSphere/AppServer/profiles/Dmgr03/bin/startManager.sh
檢視SOAP埠
grep SOAP /usr/IBM/WebSphere/AppServer/profiles/Dmgr03/logs/AboutThisProfile.txt
管理 SOAP 聯結器埠: 8888
增加應用概要
/usr/IBM/WebSphere/AppServer/profiles/AppSrv03/bin/addNode.sh 127.0.0.1 8888
啟動
/usr/IBM/WebSphere/AppServer/profiles/AppSrv03/bin/startNode.sh
9.Websphere 修改埠配置(修改配置檔案,圖形)
C:\WebSphere6\AppServer\profiles\AppSrv01\config\cells\softoaNode01Cell\nodes\softoaNode01\serverindex.xml
把9080埠改為80
然後重啟WAS服務
10.解決中文亂碼問題
1、應用程式伺服器 > server1 > 程序定義 > Java 虛擬機器,為通用 JVM 自變數指定
-Ddefault.client.encoding=GBK -Dclient.encoding.override=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN
進入檢視D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\arcgis0Node01Cell\nodes\arcgis0Node01\servers\server1\server.xml
轉載:https://blog.csdn.net/cijian5351/article/details/100694151
轉載於:https://my.oschina.net/u/992150/blog/1551506