linux下db2和cognos需配置的檔案有哪些

來源:互聯網
上載者:User

文字格式按照:

【檔案路徑】

【配置資訊】

轉載請說明出處,本文出自風沙笑傲之手,有問題歡迎留言。

1、首先配置linux能上網,這樣可以很方便的使用yum命令安裝需要的包,修改linux檔案
=====================
/etc/hosts
配置localhost映射


etc/resolv.conf配置dns


# Generated by NetworkManager
nameserver XXX.XXX.XXX.XXX       //dns配置
==========================

2、修改ip和網關(一起改,不再將網關單獨放在hosts裡,麻煩)

===================================
改ip網關等


vi /etc/sysconfig/network-scripts/cfcg-eth0


===========================

3、安裝配置環境變數,安裝jdk,完了進行環境變數配置:

/etc/profile 


#for jdk
JAVA_HOME=/usr/java/jdk1.6.0_45
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH

===============================

4、進行cognos安裝(省略),然後再安裝db2(省略),完了進行配置:轉載請說明出處,本文出自風沙笑傲之手,有問題歡迎留言。
#for db2
DB2_HOME=/opt/ibm/db2/V10.5
PATH=$DB2_HOME/bin:$PATH
export DB2_HOME
export PATH
#export PATH=/home/db2inst1/sqlib/bin:$PATH
================================


5、開通防火牆的50000連接埠和cognos的9300連接埠

=============================================

vi /etc/sysconfig/iptables


#for db2
-A INPUT -m state --state NEW -m tcp -p tcp --dport 50000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 50001 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 50002 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 50003 -j ACCEPT
#for db2 end


#for cognos
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9300 -j ACCEPT

#for cognos end

========================================

6、將db2執行個體的tcpip協議更正過來

vi /etc/services




DB2_db2inst1    50000/tcp

=================================

轉載請說明出處,本文出自風沙笑傲之手,有問題歡迎留言。




相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.