看白癜风要多少钱 http://pf.39.net/bdfyy/bdfrczy/初学,使用虚拟机安装学习测试,遇到的小坑记录
一、准备工作
1.必须关闭防火墙
关闭防火墙和Selinux:
[root
px~]#serviceiptablesstop
[root
px~]#chkconfigiptablesoff
2.作为学习,粗暴点,尽量给你安装的数据库文件夹或创建的用户更多权限
[root
px~]#mkdir-p/dm/dmdbms
[root
px~]#mkdir-p/dm/dmarch
[root
px~]#mkdir-p/dm/dmbak
[root
px~]#chown-Rdmdba

install/dm/
[root
px~]#chmod-R/dm/
dm是安装数据库的文件夹名,dmdba
install是用户名和组
碰见了创建的新用户无权限调用tool工具的问题。
3.配置环境变量
在之前创建的用户的~/.bash_profile里添加如下内容:
[dmdba
px~]$vim~/.bash_profile
.bash_profile#Getthealiasesandfunctions
if[-f~/.bashrc];then
.~/.bashrc
fi
dms
Userspecificenvironmentandstartupprograms
PATH=PATH
ATH
ATH:HOME/bin
exportPATH
(加以下内容,路径为数据库所在)
exportDM_HOME="/dm/dmdbms"
exportLD_LIBRARY_PATH="/dm/dmdbms/bin
DLIBRARYPATH"exportPATH="/dm/dmdbms/bin
D_LIBRARY_PATH"exportPATH="/dm/dmdbms/bin
D
L
IBRARY
P
ATH"exportPATH="/dm/dmdbms/bin
ATH"
注意,在DM软件安装时会自动添加DM_HOME和LD_LIBRARY_PATH变量,这里只需要添加PATH即可。
4.安装gcc
(1)yum安装
(2)小白安装