linuxwas安装路径
㈠ WAS V8.5.5 for linux(x86) 安装手册
目录
1. 环境
2. 安装步骤
2.1. 简介
2.2. 上传介质
2.3. LINUX 环境基本参数检查
2.4. 安装 WAS 8.5
2.4.1. 安装 Installation Manager
2.4.2. 安装 WAS 8.5 基本介质和创建运行环境
2.5. LINUX 参数调优
2.5.1. Linux 启动大页支持
2.5.2. LINUX 针对 java 环境参数设置
2.5.3. LINUX 网络参数调整
2.6. WAS 参数调优
2.6.1. 基本调优
2.6.2. 后续调优
环境
相应的配置信息如下
安装步骤简介
LINUX 操作系统必须满足:这个条件
上传介质
把WAS 8.5 ND的安装介质上传到相应的机器上。
安装步骤
1. 通过 FTP 工具上传介质到 LINUX 机器上
2. 解压文件
参数检查
满足 WAS 8.5 For LINUX 6.1 的要求
安装 WAS 8.5
使用 Installation Manager 安装 WAS 8.5,创建运行环境
Linux 参数调优
优化启动大页、JAVA 环境参数和网络参数
优化 WAS
基本调优后进行后续调优
配置信息:WAS v8.5 所需 JDK 版本
Linux 启动大页支持
使用大页优化性能
LINUX 针对 JAVA 的环境参数设置
配置满足要求
LINUX 网络参数调整
调整网络参数
WAS 参数调优
优化 WAS 参数以提高性能
㈡ linux要用什么用户安装was
一准备
1. 登录到系统,是否使用root用户都可以(推荐使用root用户安装,以减少安装复杂度)。检查umask设置:对root用户,推荐使用0022;对非root用户,推荐使用0002
2. 安装FireFox浏览器(一般缺省都会安装),用来在安装时运行Launchpad程序,以及在安装后,使用Gnome或者KDE中的为Linux WAS创建的快捷菜单
3. 如果以前在系统中安装过Linux WAS,要停止所有相关的Java进程,以及IBM HTTP Server进程
4. 确保足够的硬盘空间。基本的安装(不包括HTTP Server)大概需要以下大小的硬盘空间:
/opt/IBM/WebSphere ~ 930M
/tmp ~ 100M
包含例子的WAS profile ~ 200M,一般也在/opt/IBM/WebSphere目录下
5. 增加ulimit值,以免在addNode和importWasprofile的时候出问题:在用户的bash登录脚本(~/.bashrc)的最后加入一行:ulimit -n 8192
6. 如果安装了带有cp命令的软件,要确保把这些软件的路径从PATH环境变量中去掉,以保证使用shell的cp命令。在安装完Linux WAS以后,再恢复PATH设置即可。
二 安装Linux WAS
1. 以root用户运行安装包根目录下的launchpad.sh命令启动Launchpad
2. 在打开的页面中,点击"Launch the installation wizard for Websphere Application Server",弹出Linux WAS安装向导欢迎界面
3. 在System Prerequisite Check页会有警告说 没有检测到支持的操作系统,点击Next忽略即可
4. 在WebSphere Application Server Environments页面,选择"Application Server"
5. 在Enable Administrative Security页面,取消选中(如果需要的话,可以在安装以后启用)
6. 安装结束后,点击Finish按钮,接着弹出First Steps Console
7. 可选步骤:点击Installation verification,验证安装,然后可以点击Administrative console,打开管理控制台页面(http://servername:9060/ibm/console)查看Linux WAS的相关配置信息。最后点击Stop the server,停止Linux WAS。
8. 可选: 安装补丁包将补丁包安装程序(UpdateInstaller)7.0.0.0-WS-UPDI-LinuxIA32.zip,解压缩,然后cd到解开的目录下面,以root运行java -jar setup.jar,缺省安装到/opt/IBM/WebSphere/UpdateaInstaller安装结束后,UpdateInstaller会自动运行,(手动将下载的补丁包,如7.0.0-WS-WAS-LinuxX32-FP0000005.pak放到/opt/IBM/WebSphere/UpdateaInstaller/maintenance下面),一路Next即可。
9. 如果启用了SELinux,需要更改Linux WAS相关的java命令程序以及相关链接库和jar包的security context, 不然在用startServer.sh启动Linux WAS的时候会碰到类似如下的错误信息 /opt/IBM/WebSphere/AppServer/bin/startServer.sh: line 145: /opt/IBM/WebSphere/AppServer/java/bin/java: Permission denied Linux WAS本身提供了现成的脚本(/opt/IBM/WebSphere/AppServer/properties/version/nif/config/script/relabel_was.sh)来自动完成这些修改。不过这个脚本是为RHEL 5量身定做的,会检查系统是不是RHEL5. 所以我们要做一下简单的修改,注释掉脚本最后的检查语句,如下所示:
view plain to clipboardprint?
#if [ -r /etc/redhat-release ]; then
# release=`cat /etc/redhat-release | awk '{print $7}'`
# version=${release%%\.*}
# if [ $version -ge 5 ]; then
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
INSTALL_PATH=$1
JAVA_PATH=$INSTALL_PATH/java/jre
set_java_contexts
set_lib_contexts
fi
# fi
#fi
exit $rc
#if [ -r /etc/redhat-release ]; then
# release=`cat /etc/redhat-release | awk '{print $7}'`
# version=${release%%\.*}
#if [ $version -ge 5 ]; then
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
INSTALL_PATH=$1
JAVA_PATH=$INSTALL_PATH/java/jre
set_java_contexts
set_lib_contexts
fi
#fi
#fi
exit $rc
把修改后的脚本存为relabel_was_fedora.sh,然后执行:
sudo setenforce 0
sudo ./relabel_was_fedora.sh /opt/IBM/WebSphere/AppServer/
sudo setenforce 1
10. 如果启用了防火墙,要打开Linux WAS相关的端口,比如9080,9060等
11. 运行sudo /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1 启动Linux WAS,检查一切是否正常。
㈢ 在Linux shell脚本中,安装过程中如何实现自动选择安装选项
在Linux shell脚本中,安装过程中如何实现自动选择安装选项?
Linux中shell脚本运行时经常需要进行交互,比如安装软件的过程中对license声明的确认,需要输入yes,回车之类的确认信息。这个在自动化安装的时候就会是个问题。
通常对于这个问题比较灵活的解决方法就是TCL的Expect。但Expect还需要另外安装,平台通用性不高,比较麻烦。
另外一些简单的方法倒也是有,不过可用性不高,特别是对要求多次交互就吃力了。但怎么说其还是能解决大多数的问题,因为复杂的情况还是比较少的。比 如要一个调用一个安装脚本 : installWAS.sh, 这个脚本要求输入回车,则可以:echo | installWAS.sh;如果要求输入yes|no,加回车,则可以echo yes|installWAS.sh. 这下自动化安装就有希望了。
再有一下的代码也可以带来一些思路:
[0 No.2015 huan@huan ~/tmp]$ cat foo read -s -n1 -p "Press any key to continue ... " echo "Your inputs: $REPLY"
[0 No.2016 huan@huan ~/tmp]$ ./foo < /dev/null Your inputs:
[0 No.2017 huan@huan ~/tmp]$
㈣ 在Linux环境下,我想把websphere8.5的jdk1.6换成1.7,不知道怎么弄了,求解越详细越好,谢谢!
参考https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.installation.nd.doc/ae/tins_installation_jdk7_gui.html
选择server1,出来界面,之后找到sdk,点击,之后就激活jdk1.7
在重启was
㈤ 如何在linux系统的was中启动节点
1、首桥李没先拷贝安装包,分别命名为elasticsearch-6.2.4-001和elasticsearch-6.2.4-002。
㈥ 怎么在linux上咱装DB2
我网上复制来的,可以稍微看下,其实DB2也有安装脚本的
安装DB2
DB2的安装可以算是再各个数据库里面最简单的了。除了sqlite。
下载安装包,解压
[root@Enterprise tmp]# tar xvf DB2_V82_PE_LNX_32_NLV.tar
解开以后的文件都被放置在当前目录下的pe文件夹中。
开始安装:
[root@Enterprise tmp]# cd pe
[root@Enterprise pe]# ls
db2 db2_deinstall db2_install db2setup doc
[root@Enterprise pe]# ./db2_install
Specify one or more of the following keywords,
separated by spaces, to install DB2 procts.
选择自己要安装的产品,输入名字后回车。等待安装完成。
我们现在需要做的是,对数据库的初始化工作。包括安装授权文件和创建一个实例并运行它。
首先,我们安装授权文件。
不安装授权文件的话,则是评估版,九十天后就要过期。授权文件,在安装包已经有了。我们用下面的命令安装它:
[root@Enterprise pe]# /opt/IBM/db2/V8.2/adm/db2licm -a /tmp/pe/db2/lic
ense/db2pe.lic
如果没有db2pe.lic 文件。可以去网上找找。
我们需要创建一个用户。
[root@Enterprise pe]# useradd db2inst1
[root@Enterprise pe]# passwd db2inst1
开始创建实例:
[root@Enterprise pe]# /opt/IBM/db2/V8.2/instance/db2icrt -u db2inst1 db2inst1
这样,我们就创建了一个实例db2ins1。
[root@Enterprise pe]# su db2inst1
[db2inst1@Enterprise pe]$ db2start
07/26/2007 16:45:10 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
这样我们数据库就启动成功。
[db2inst1@Enterprise pe]$ db2
(c) Copyright IBM Corporation 1993,2002
Command Line Processor for DB2 SDK 8.2.0
You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd
For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
? CATALOG DATABASE for help on the CATALOG DATABASE command
? CATALOG for help on all of the CATALOG commands.
To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with 'db2'.
To list the current command option settings, type LIST COMMAND OPTIONS.
For more detailed help, refer to the Online Reference Manual.
db2 =>
创建一个最简单的数据库
db2 => create database testdb
DB20000I The CREATE DATABASE command completed successfully.
查看本instance下有哪些database
db2 => list database directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = TESTDB
Database name = TESTDB
Local database directory = /home/db2inst1
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = OMNIDB
Database name = OMNIDB
Local database directory = /home/db2inst1/data
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =