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

时间: 2024-08-09 15:06:53

WebSphere常用设置的相关文章

MyEclipse2013 常用设置毋宁优化

MyEclipse2013 常用设置与其优化 1:颜色设置-调整为适合阅读的浅绿色:   (1)Window->Preferences->General->Editors->Text Editors->  a.Backgroudcolors 背景颜色 设置为RGB(204,232,207)  b.Current linehighlight当前行高亮颜色 RGB (162,215,167)  (2)Window->Preferences->General->E

百度编辑器UEditor常用设置函数大全

在线文档对UEditor说明不够全面,收集了一些常用的方法和基本设置,以供参考.1.创建编辑器UE.getEditor('editor', {initialFrameWidth:"100%" //初始化选项})精简版UE.getEditor('editor')2.删除编辑器UE.getEditor('editor').destroy();3.设置焦点UE.getEditor('editor').focus();4.获取编辑器内容UE.getEditor('editor').getCon

Visual Studio Code常用设置

Visual Studio Code常用设置 • 自动保存设置 ? 文件(F) -> 首选项(P) -> 用户设置(U) ? 将"files.autoSave": "off"更改为"files.autoSave": "afterDelay",注意只能在"settings.json"中修改.

Android Studio中常用设置与快捷键

常用设置: 1.Tab不用4个空格Code Style->Java->Tabs and Indents->Use tab characterCode Style->General->Use tab character (例如:版本控制Diff界面按下Tab) 2.可视化Tab和空格Settings->IDE Settings->Editor->Appearance->Show whitespaces 3.显示代码行数Settings->IDE S

pycharm快捷键及一些常用设置

pycharm快捷键及一些常用设置 pycharm快捷键及一些常用设置,有需要的朋友可以参考下. Alt+Enter 自动添加包 Ctrl+t SVN更新 Ctrl+k SVN提交 Ctrl + / 注释(取消注释)选择的行 Ctrl+Shift+F 高级查找 Ctrl+Enter 补全 Shift + Enter 开始新行 TAB Shift+TAB 缩进/取消缩进所选择的行 Ctrl + Alt + I 自动缩进行 Ctrl + Y 删除当前插入符所在的行 Ctrl + D 复制当前行.或者

Android Studio中常用设置与快捷键(私人珍藏,Eclipse转AS必看)

常用设置: 1.Tab不用4个空格 Code Style->Java->Tabs and Indents->Use tab character Code Style->General->Use tab character               (例如:版本控制Diff界面按下Tab) 2.可视化Tab和空格 Settings->IDE Settings->Editor->Appearance->Show whitespaces 3.显示代码行数

mac常用设置

1.修改mac主机名 系统偏好设置->共享->电脑名称 ,编辑就可以了. sudo scutil --set HostName hostname 这个是修改主机名 sudo scutil --set ComputerName newName  这个修改计算机名 mac常用设置,布布扣,bubuko.com

source insight常用设置以及快捷键

/************************************* 常用设置 ********************************/ 1.括号配对高亮:"在前括号左侧,后括号左侧" 双击鼠标左键,可以选定匹配括号和其中内容(<>,(),L{R},[]之间) 2.让{ 和 } 不缩进:Options -> Document Options -> Auto Indenting -> Auto Indent Type 选 Simple 还有

IntelliJ IDEA 常用设置

说明 IntelliJ IDEA 有很多人性化的设置我们必须单独拿出来讲解,也因为这些人性化的设置让我们这些 IntelliJ IDEA 死忠粉更加死心塌地使用它和分享它. 常用设置 1.代码提示不区分大小写 IntelliJ IDEA 的代码提示和补充功能有一个特性:区分大小写.默认就是 First letter 区分大小写的. 区分大小写的情况是这样的:比如我们在 Java 代码文件中输入 stringBuffer IntelliJ IDEA 是不会帮我们提示或是代码补充的,但是如果我们输入