Linux系统设置DB2等服务开机启动的过程
  • 作者:zhijie
  • 时间:2017-08-17 19:56:02
3.编写启动was和tds的脚本

  Shell代码

  vi startWasTds

  输入以下内容

  Shell代码

  #!/bin/sh

  # chkconfig: 2345 99 01

  # processname:IBMTDSWAS

  # description:filenet was tds

  /opt/IBM/WebSphere/AppServer/profiles/AppSrvTds/bin/startServer.sh server1

  /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1

  /opt/IBM/WebSphere/AppServer/profiles/ilog/bin/startServer.sh serve1

  #TDS

  /opt/ibm/ldap/V6.3/sbin/ibmdiradm -l dsrdbm01 -t

  /opt/ibm/ldap/V6.3/sbin/ibmslapd

  参数说明:

  头部注释:

  linux 命令 chkconfig 要求文件头中

  包含:下面这3项

  Shell chkconfig代码

  # chkconfig: 2345(默认的runlevel) 99(启动优先级) 01(关闭优先级)

  # processname:进程名称

  # description:进程描述

  4.给文件赋予权限

  Shell代码

  chmod -R 777 startDB2

  chmod -R 777 startWasTds

  chkconfig --add startDB2

  chkconfig --add startWasTds

  添加开机启动成功。

  以上就是Linux系统中设置DB2等服务开机启动的过程了,本文只是以设置DB2服务开机启动为例子,用这个方法还可以启动更多服务。

 2/2   首页 上一页 1 2
相关推荐