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

WebSphere常用设置的更多相关文章

  1. pycharm快捷键及一些常用设置

    pycharm快捷键及一些常用设置,有需要的朋友可以参考下. Alt+Enter 自动添加包 Ctrl+t SVN更新 Ctrl+k SVN提交 Ctrl + / 注释(取消注释)选择的行 Ctrl+ ...

  2. PLSQLDeveloper 常用设置

    PLSQL Developer常用设置及快捷键   1.登录后默认自动选中My Objects (已验证可用)   默认情况下,PLSQL Developer登录后,Brower里会选择All obj ...

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

    在线文档对UEditor说明不够全面,收集了一些常用的方法和基本设置,以供参考.1.创建编辑器UE.getEditor('editor', { initialFrameWidth:"100% ...

  4. IntelliJ IDEA 常用设置讲解

    说明 IntelliJ IDEA 有很多人性化的设置我们必须单独拿出来讲解,也因为这些人性化的设置让我们这些 IntelliJ IDEA 死忠粉更加死心塌地使用它和分享它. 常用设置 IntelliJ ...

  5. pycharm快捷键、常用设置、包管理

    pycharm快捷键.常用设置.包管理 在PyCharm安装目录 /opt/pycharm-3.4.1/help目录下可以找到ReferenceCard.pdf快捷键英文版说明 or 打开pychar ...

  6. 《Pro Express.js》学习笔记——Express框架常用设置项

    Express 设置 系统设置 1.       无须再定义,大部分有默认值,可不设置 2.       常用设置 env view cache view engine views trust pro ...

  7. Source Insight 常用设置和快捷键大全

    Source Insight 常用设置和快捷键大全 退出程序 : Alt+F4 重画屏幕 : Ctrl+Alt+Space 完成语法 : Ctrl+E 复制一行 : Ctrl+K 恰好复制该位置右边的 ...

  8. eclipse 常用设置,常用快捷键修改

    eclipse 常用设置,常用快捷键,myeclipse和eclipse类似' 首先打开eclipse的首选项-->搜索 keys' 常用的一些快捷键: Ctrl+1 快速修复(最经典的快捷键, ...

  9. UIButton、UILabel、UITextField 初学者需要了解的基本定义和常用设置

     以下是三个IOS开发中最常用的控件,作为IOS基础学习教程知识 ,初学者需要了解其基本定义和常用设置,以便在开发在熟练运用. UIButton按钮 第一.UIButton的定义 UIButton * ...

随机推荐

  1. Vue2.0的通用组件

    饿了么基于Vue2.0的通用组件开发之路(分享会记录)   Element:一套通用组件库的开发之路 Element 是由饿了么UED设计.饿了么大前端开发的一套基于 Vue 2.0 的桌面端组件库. ...

  2. nodejs笔记二--文件I/O;

    一.写入文件: fs.writeFile(filename, data, callback),数据参数可以是string或者是Buffer,编码格式参数可选,默认为"utf8",回 ...

  3. 我存在,你深深的循环里--从反射看JSON死循环

      JSON有一个非常经典的问题:JSONException: There is a cycle in the hierarchy!俗称死循环.解决这个问题至少有三种以上的办法,总之一句话就是过滤.今 ...

  4. Hibernate映射类型对照表

    Hibernate映射类型对照表 java类型  Hibernate映射类型  SQL类型 java.math.BigDecimal big_decimal numeric byte[] binary ...

  5. 【HDOJ】【3068】最长回文

    Manacher算法 Manacher模板题…… //HDOJ 3068 #include<cstdio> #include<cstring> #include<cstd ...

  6. Spring Junit4 Test

    捣鼓了差不多一天...终于把"No Session found for current thread"问题解决了 环境:Spring 4.0.6 RELEASE + Hiberna ...

  7. 标准SQL

    1. SQL语句对大小写不敏感! 2. 查询和更新指令构成了 SQL 的 DML 部分: SELECT - 从数据库表中获取数据 UPDATE - 更新数据库表中的数据 DELETE - 从数据库表中 ...

  8. static_cast和reinterpret_cast

    static_cast和reinterpret_cast 相同点:都是暴力转换,从一个类型转换为另一个类型,对于类指针不会保证安全性   static_cast和reinterpret_cast的区别 ...

  9. 当你碰到一个网络中有多个PXE Server 肿么办?

    今天在用PXE 安装Openstack Compute节点时,郁闷得发现同一网段中还有一个PXE Server,而我的Compute 启动起来总会先找到它,但那个设置不受我控制,子网也不归我管,那个s ...

  10. ab压力测试工具-批量压测脚本

    ab(Apache benchmark)是一款常用的压力测试工具.简单易用,ab的命令行一次只能支持一次测试.如果想要批量执行不同的测试方式,并自动对指标进行分析,那么单靠手工一条一条命令运行ab,估 ...