Install standalone MatrixOne
MatrixOne supports Linux and MacOS. You can install a standalone MatrixOne version by 3 methods:
Recommended hardware specification: x86 CPU with 4 cores and 32GB memory, with CentOS 7+ OS.
For more information on the required operating system versions for deploying MatrixOne, see Hardware and Operating system requirements。
Method 1: Building from source code
1. Install Go as necessary dependancy
Go version 1.19 is required.
2. Install MySQL Client
MySQL version 8.0.30 is recommended.
3. Get the MatrixOne code to build MatrixOne
Depending on your needs, choose whether you want to keep your code up to date, or if you want to get the latest stable version of the code.
Option 1: Get the MatrixOne(Develop Version) code to build
The main branch is the default branch, the code on the main branch is always up-to-date but not stable enough.
Get the MatrixOne(Develop Version, also called Pre0.6 version) code:
git clone https://github.com/matrixorigin/matrixone.git
cd matrixone
You can run
make debug
,make clean
, or anything else our Makefile offers.make build
Launch MatrixOne server:
Note
The startup-config file of MatrixOne(Develop Version) is different from the startup-config file of MatrixOne(Stable Version). The startup-config file code of MatrixOne(Develop Version) is as below:
./mo-service -cfg ./etc/cn-standalone-test.toml
Option 2: Get the MatrixOne(Stable Version) code to build
If you want to get the latest stable version code released by MatrixOne, please switch to the branch of version 0.5.1 first.
git clone https://github.com/matrixorigin/matrixone.git
git checkout 0.5.1
cd matrixone
You can run
make debug
,make clean
, or anything else our Makefile offers.make config
make build
Launch MatrixOne server:
Note
The startup-config file of MatrixOne(Stable Version) is different from the startup-config file of MatrixOne(Develop Version). The startup-config file code of MatrixOne(Stable Version) is as below:
./mo-server system_vars_config.toml
4. Connect to MatrixOne Server
When you finish installing MatrixOne, you can refer to the section below to connect to the MatrixOne server.
See Connect to MatrixOne server.
Method 2: Downloading binary packages
For each release, you can download binary packages directly to run MatrixOne in the X86_64 Linux or Mac X86_64 environment.
1. Install MySQL Client
MySQL version 8.0.30 is recommended.
2. Download binary packages and decompress
Linux Environment
Downloading method 1:
wget https://github.com/matrixorigin/matrixone/releases/download/v0.5.1/mo-server-v0.5.1-linux-amd64.zip
unzip mo-server-v0.5.1-linux-amd64.zip
Downloading method 2:
curl -OL https://github.com/matrixorigin/matrixone/releases/download/v0.5.1/mo-server-v0.5.1-linux-amd64.zip
unzip mo-server-v0.5.1-linux-amd64.zip
Downloading method 3:
Go to the version 0.5.1, pull down to find the Assets column, and click the installation package mo-server-v0. 5.1-linux-amd64.zip can be downloaded.
MacOS Environment
Downloading method 1:
wget https://github.com/matrixorigin/matrixone/releases/download/v0.5.1/mo-server-v0.5.1-darwin-x86_64.zip
unzip mo-server-v0.5.1-darwin-x86_64.zip
Downloading method 2:
curl -OL https://github.com/matrixorigin/matrixone/releases/download/v0.5.1/mo-server-v0.5.1-darwin-x86_64.zip
unzip mo-server-v0.5.1-darwin-x86_64.zip
Downloading method 3:
Go to the version 0.5.1, pull down to find the Assets column, and click the installation package mo-server-v0.5.1-darwin-x86_64.zip can be downloaded.
Info
MatrixOne only supports installation on ARM chipset with source code build; if you are using MacOS M1 and above, for more information on using source code build to install MatrixOne, see Method 1: Building from source code. Using release binary files from X86 chipset will lead to unknown problems.
3.Launch MatrixOne server
./mo-server system_vars_config.toml
4. Connect to MatrixOne Server
When you finish installing MatrixOne, you can refer to the section below to connect to the MatrixOne server.
See Connect to MatrixOne server.
Method 3: Using docker
1. Install Docker
Please verify that Docker daemon is running in the background:
docker --version
2. Create and run the container of MatrixOne
It will pull the image from Docker Hub if not exists. You can choose to pull the stable version image or the develop version image.
- Stable Version Image(0.5.1 version)
docker run -d -p 6001:6001 --name matrixone matrixorigin/matrixone:0.5.1
If you want to pull the develop version image, see Docker Hub, get the image tag. An example as below:
Develop Version Image(Pre0.6 version)
docker run -d -p 6001:6001 --name matrixone matrixorigin/matrixone:nightly-commitnumber
Info
The nightly version is updated once a day.
For the information on the user name and password, see the next step - Connect to MatrixOne Server.
3. Mount the data directory(Optional)
To customize the configuration file, you can mount the custom configuration file stored on the local disk.
docker run -d -p 6001:6001 -v ${path_name}/system_vars_config.toml:/system_vars_config.toml:ro -v ${path_name}/store:/store:rw --name matrixone matrixorigin/matrixone:0.5.1
Parameter | Description |
---|---|
${path_name}/system_vars_config.toml | The local disk directory to which the configuration file system_vars_config.toml is mounted |
/system_vars_config.toml | /system_vars_config.toml in the container |
${path_name}/store | /store path of the backup local disk directory |
/store | /store directory in the container |
For more information on the description of Docker run, run the commands docker run --help
.
4. Connect to MatrixOne Server
When you finish installing MatrixOne, you can refer to the section below to connect to the MatrixOne server.
See Connect to MatrixOne server.
Reference
- For more information on update, see Upgrade Standalone MatrixOne.
- For more information on deployment,see Deployment FAQs.