修改hosts文件,把主机名加入
[root@db2 ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.101 db2
设置启动图形界面环境变量
[root@db2 ~]# xhost +
access control disabled, clients can connect from any host
[root@db2 ~]# export DISPLAY=192.168.2.1:0.0
进入光盘目录,以root用户启动图形界面
[root@db2 ~]# cd expc/
[root@db2 expc]# ./db2setup
Requirement not matched for DB2 database "Server" . Version: "10.5.0.5".
Summary of prerequisites that are not met on the current system:
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".
DBI1190I db2setup is preparing the DB2 Setup wizard which will guide
you through the program setup process. Please wait.
确认内容
Product to install: DB2 Express-C
Installation type: Typical
Previously Installed Components:
Selected Components:
Base client support
Java support
SQL procedures
Base server support
DB2 data source support
DB2 LDAP support
DB2 Instance Setup wizard
Integrated Flash Copy Support
Communication support - TCP/IP
DB2 Update Service
Sample database source
First Steps
Languages:
English
All Products
Target directory: /opt/ibm/db2/V10.5
Space required: 945 MB
New instances:
Instance name: db2inst1
Start instance on reboot: Yes
TCP/IP configuration:
Service name: db2c_db2inst1
Port number: 50000
Instance user information:
User name: db2inst1
Group name: db2iadm1
Home directory: /home/db2inst1
Fenced user information:
User name: db2fenc1
Group name: db2fadm1
Home directory: /home/db2fenc1
DB2 Administration server:
Instance user information:
User name: dasusr1
Group name: dasadm1
Home directory: /home/dasusr1
Contact specification:
New contacts:
Name: db2inst1
Instance: db2inst1
E-mail address: db2inst1@db2
E-mail address is for a pager: No
Response file name: /root/db2expc.rsp
完成~~~~