Skip to main content
Version: 0.7

GreptimeDB Standalone

You can try out GreptimeDB with our test builds released on the Download page.

We use the simplest configuration for you to get started. For a comprehensive list of configurations available in GreptimeDB, see the configuration documentation.

Binary

Linux and macOS

For Linux and macOS users, you can download the latest build of the greptime binary by using the following commands:

curl -fsSL \
https://raw.githubusercontent.com/greptimeteam/greptimedb/main/scripts/install.sh | sh

Once the download is completed, the binary file greptime will be stored in your current directory.

You can run GreptimeDB in the standalone mode:

./greptime standalone start

Windows

If you have WSL(Windows Subsystem for Linux) enabled, you can lunch a latest Ubuntu and run GreptimeDB like above!

Otherwise please download the GreptimeDB binary for Windows at our official site, and unzip the downloaded artifact.

To run GreptimeDB in standalone mode, open a terminal (like Powershell) at the directory where the GreptimeDB binary locates, and execute:

.\greptime standalone start

Docker

Make sure the Docker is already installed. If not, you can follow the official documents to install Docker.

docker run -p 127.0.0.1:4000-4003:4000-4003 \
-p 4242:4242 -v "$(pwd)/greptimedb:/tmp/greptimedb" \
--name greptime --rm \
greptime/greptimedb:v0.7.2 standalone start \
--http-addr 0.0.0.0:4000 \
--rpc-addr 0.0.0.0:4001 \
--mysql-addr 0.0.0.0:4002 \
--postgres-addr 0.0.0.0:4003

The data will be stored in the greptimedb/ directory in your current directory.

If you want to use another version of GreptimeDB's image, you can download it from our GreptimeDB Dockerhub. In particular, we support GreptimeDB based on CentOS, and you can try image greptime/greptimedb-centos.

NOTE

If you are using a Docker version lower than v23.0, you may experience problems with insufficient permissions when trying to run the command above, due to a bug in the older version of Docker Engine.

You can:

  1. Set --security-opt seccomp=unconfined, for example:

    docker run --security-opt seccomp=unconfined -p 4000-4003:4000-4003 \
    -p 4242:4242 -v "$(pwd)/greptimedb:/tmp/greptimedb" \
    --name greptime --rm \
    greptime/greptimedb:v0.7.2 standalone start \
    --http-addr 0.0.0.0:4000 \
    --rpc-addr 0.0.0.0:4001 \
    --mysql-addr 0.0.0.0:4002 \
    --postgres-addr 0.0.0.0:4003
  2. Upgrade the Docker version to v23.0.0 or higher;

Next Steps

Learn how to write data to GreptimeDB and visualize it using Grafana in the Quick Start.