banner
biuaxia

biuaxia

"万物皆有裂痕,那是光进来的地方。"
github
bilibili
tg_channel

Installation of DM8 Database Docker

title: Installation of DM8 Database Docker
date: 2022-02-21 12:23:13
toc: true
index_img: https://b3logfile.com/file/2022/02/97cb01fffd7c44d39e951ba987618bae.jpeg
category:

  • DM8
    tags:
  • DM8
  • Docker
  • Database
  • Installation

Preparing for Installation#

Software/HardwareVersion
TerminalX86-64 Architecture
DockerVersion 19.0 and above

Download Docker Installation Package#

Create a /dm8 folder in the root directory to store the downloaded Docker installation package. Use the following command:

mkdir /dm8

Switch to the /dm8 directory and download the DM Docker installation package. Use the following command:

wget -O dm8_docker.tar -c https://download.dameng.com/eco/dm8/dm8_docker.tar

Note: The instances provided by the container are case-insensitive by default. If you need to modify the case-sensitive parameters in the container, you can delete the current instance and reinitialize it. Set the case sensitivity during the initialization process.
Alternatively, you can directly download the case-sensitive version: https://download.dameng.com/eco/dm8/dm8_docker_case.tar

Import the Image#

After the download is complete, import the installation package using the following command:

docker import dm8_docker.tar dm8:v01

After the import is complete, you can use docker images to view the imported image. Use the following command:

docker images

The result will be as follows:

docker images

Start the Container#

After importing the image, use docker run to start the container with the default port 5236 and default account password. Use the following command:

sudo docker run -itd -p 5236:5236 --restart=always --name dm8_01 dm8:v01 /bin/bash /startDm.sh

After the container is started, use docker ps to check the status of the image. Use the following command:

docker ps

The result will be displayed as follows:

docker ps

After the startup is complete, you can view the logs to check the startup status. Use the following command:

docker logs -f  dm8_01

If the displayed content is as follows, it means the startup was successful.

docker logs -f

Start and Stop the Database#

Stop command:

docker stop  dm8_01

Start command:

docker start  dm8_01

Restart command:

docker restart  dm8_01

Note: If using disql inside the Docker container, after entering the container, execute source /etc/profile to prevent Chinese garbled characters.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.