Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Dameng database in Centos7

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Most people do not understand the knowledge points of this article "Centos7 how to install Dameng database", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install Dameng database in Centos7" article.

1 preparation work

After installing the linux operating system, linux 7 is selected here:

[root@slave1 software] # cat / etc/redhat-releasecentos linux release 7.6.1810 (core)

Turn off the firewall and selinux:

[root@slave1 software] # systemctl stop firewalld [root@slave1 software] # systemctl disable firewalld [root@slave1 software] # vi / etc/selinux/config [root@slave1 software] # cat / etc/selinux/config# this file controls the state of selinux on the system.# selinux= can take one of these three values:# enforcing-selinux security policy is enforced.# permissive-selinux prints warnings instead of enforcing.# disabled-no selinux policy is loaded.selinux=disabled# selinuxtype= can take one of three values:# targeted-targeted processes are protected,# minimum-modification of targeted policy. Only selected processes are protected.# mls-multi level security protection.selinuxtype=targeted

To create a dm user:

[root@slave1 software] # groupadd dinstall [root@slave1 software] # useradd-g dinstall-m-d / home/dmdba-s / bin/bash dmdba [root@slave1 software] # passwd dmdbachanging password for user dmdba.new password: bad password: the password is shorter than 8 charactersretype new password: passwd: all authentication tokens updated successfully. [root@slave1 software] #

Create a directory: the space for storing dm database files needs to be planned and mounted in advance. I put it here in the / dm directory:

[root@slave1 software] # mkdir-p / dm/dmdbms [root@slave1 software] # mkdir-p / dm/dmarch [root@slave1 software] # mkdir-p / dm/dmbak [root@slave1 software] # chown-r dmdba:dinstall / dm/ [root@slave1 software] # chmod-r 775 / dm/

Configure system limits by adding the following in the / etc/security/limits.conf file:

[root@slave1 software] # vim / etc/security/limits.confdmdba soft nofile 65536dmdba hard nofile 65536

Configure environment variables: add the following to the ~ / .bash_profile of dmdba users:

Export dm_home= "/ dm/dmdbms" export ld_library_path= "/ dm/dmdbms/bin:$ld_library_path" export path= "/ dm/dmdbms/bin:$path"

Note that the dm_home and ld_library_path variables are automatically added when the dm software is installed, and all you need to do here is add path.

2 install dm database

Copy the installation file: upload the iso of dm to the linux system and mount:

[root@slave1 software] # mount dm7 Development Edition (rh7-64) 20190917.iso / mnt/mount: / dev/loop0 is write-protected, mounting read-only [root@slave1 software] # cd / mnt/ [root@slave1 mnt] # lsdminstall.bin dm_install_en.pdf dm_install_zh.pdf release_en.txt release_zh.txt

Copy the installation file to the / dm directory and modify the installation file permissions:

[root@slave1 mnt] # pwd/mnt [root@slave1 mnt] # cp. / dminstall.bin / dm/ [root@slave1 mnt] # cd / dm [root@slave1 dm] # lltotal 573076drwxrwxr-x 2 dmdba dinstall 6 dec 9 23:08 dmarchdrwxrwxr-x 2 dmdba dinstall 6 dec 9 23:08 dmbakdrwxrwxr-x 2 dmdba dinstall 6 dec 9 23:08 dmdbms-r-xr-xr-x 1 root root 586828259 dec 9 23:14 dminstall.bin [root@slave1 dm] # chown dmdba:dinstall dminstall.bin [root@slave1 dm ] # lltotal 573076drwxrwxr-x 2 dmdba dinstall 6 dec 9 23:08 dmarchdrwxrwxr-x 2 dmdba dinstall 6 dec 9 23:08 dmbakdrwxrwxr-x 2 dmdba dinstall 6 dec 9 23:08 dmdbms-r-xr-xr-x 1 dmdba dinstall 586828259 dec 9 23:14 dminstall.bin

Execute the. / dminstall.bin-I program with the dmdba user to start the installation:

[root@slave1 dm] $pwd/dm [root@slave1 dm] $. / dminstall.bin-iplease select the installer's language (e/e:english c/c:chinese) [eUnip]: C

Extract the installer.

Core file size (blocks,-c) 0data seg size (kbytes,-d) unlimitedscheduling priority (- e) 0file size (blocks,-f) unlimitedpending signals (- I) 3756max locked memory (kbytes,-l) 64max memory size (kbytes,-m) unlimitedopen files (- n) 1024pipe size (512bytes,-p) 8posix message queues (bytes,-Q) 819200real-time priority (- r) 0stack size (kbytes,-s) 8192cpu time (seconds,-t) unlimitedmax user processes (- u) 3756virtual memory (kbytes) -v) unlimitedfile locks (- x) unlimited

The number of files that can be opened is too small, it is recommended to set it to at least 65536 or more.

Welcome to Dameng database installer

Do you want to enter the key file path? (yUnip y: yes, nPay: no) [yUnip y]: n

Do you want to set the time zone? (yUnip y: yes / no) [yUnip y]: y

Set the time zone:

[1]: West of gtm-12= date boundary

[2]: gtm-11= Samoa

[3]: gtm-10= Hawaii

[4]: gtm-09= Alaska

[5]: gtm-08= Pacific time (United States and Canada)

[6]: gtm-07= Arizona

[7]: gtm-06= Central time (United States and Canada)

[8]: gtm-05= Eastern time (United States and Canada)

[9]: gtm-04= Atlantic time (United States and Canada)

[10]: gtm-03= Brasilia

[11]: gtm-02= Mid-Atlantic

[12]: gtm-01= Azores

[13]: gtm= GMT

[14]: gtm+01= Sarajevo

[15]: gtm+02= Cairo

[16]: gtm+03= Moscow

[17]: gtm+04= Abu Dhabi

[18]: gtm+05= Islamabad

[19]: gtm+06= Dhaka

[20]: gtm+07= Bangkok, Hanoi

[21]: gtm+08= China Standard time

[22]: gtm+09= Seoul

[23]: gtm+10= Guam

[24]: gtm+11= Solomon Islands

[25]: gtm+12= Fiji

[26]: gtm+13= Nukualfa

[27]: gtm+14= Kiribati

Please select set time zone [21]: 21

Type of installation:

1 typical installation

2 server

3 client

4 Custom

Please select the numerical serial number of the installation type [1 typical installation]: 1

Space required: 963m

Please select the installation directory [/ opt/dmdbms]: / dm/dmdbms

Free space: 8g

Confirm the installation path (/ dm/dmdbms)? (yUnip y: yes / no) [yUnip y]: y

Summary before installation

Installation location: / dm/dmdbms

Space required: 963m

Free space: 8g

Version Information:

Valid date:

Installation type: typical installation

Do you confirm the installation? (yUnip y: yes / no / no): y

2019-12-09 23:17:21

[info] install Damon database.

2019-12-09 23:17:22

[info] install the basic module.

2019-12-09 23:17:32

[info] install the server module.

2019-12-09 23:17:33

[info] install the client module.

2019-12-09 23:17:44

[info] install the driver module.

2019-12-09 23:17:55

[info] installation manual module.

2019-12-09 23:17:55

[info] install the service module.

2019-12-09 23:17:59

[info] move the ant log file.

2019-12-09 23:17:59

[info] change the permissions of the installation directory is complete.

2019-12-09 23:17:59

[info] is starting the dmapservice service.

2019-12-09 23:18:01

[info] dmapservice service started successfully.

2019-12-09 23:18:01

[info] installation of Dameng database completed.

End of installation

3 create a database instance

[root@slave1 bin] $pwd/dm/dmdbms/bin [root@slave1 bin] $. / dminit path=/dm/dmdbms/data db_name=dmdba instance_name=dmdba ctl_path=/dm/dmdbms/data/dmdba/dm.ctl case_sensitive=n charset=1initdb v7.6.0.197-build (2019.09.12-112648) ent db version: 0x7000afile dm.key not found Use default license will expire on 2020-09-12 log file path: / dm/dmdbms/data/dmdba/dmdba01.log log file path: / dm/dmdbms/data/dmdba/dmdba02.log write to dir [/ dm/dmdbms/data/dmdba]. Create dm database success. 2019-12-09 23:25:17

4 sign up for database service

The registered shell script dm_service_installer.sh is in the dm_home/script/root directory and needs to be executed by the root user when performing the registration.

[root@slave1 bin] # cd / dm/dmdbms/script/root [root@slave1 root] #. / dm_service_installer.sh-t dmserver-I / dm/dmdbms/data/dmdba/dm.ini-p dmdbacreated symlink from / etc/systemd/system/multi-user.target.wants/dmservicedmdba.service to / usr/lib/systemd/system/dmservicedmdba.service.

Creation of service (dmservicedmdba) completed

5 start the database

[root@slave1 root] # systemctl enable dmservicedmdba.service [root@slave1 root] # systemctl start dmservicedmdba

6 client connection

The following screen appears, indicating that the installation is successful and can be used normally.

The above is about the content of this article on "how to install Dameng database in Centos7". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report