WebSphere常用設置


WebSphere常用設置

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  
 
 
本文轉自:http://m.blog.csdn.net/blog/zhaojian1988/8874931


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM