Install Memgraph from RPM package
Install and run Memgraph from a RPM package on:
- CentOS 7
- CentOS 9
- Fedora 36
- RedHat 7
- RedHat 9
Newer versions of Memgraph might not be backward compatible with older versions and you might not be able to load storage snapshots between different versions. In that case, please contact the Memgraph team and we'll help with the migration as much as possible.
Installation guide
Download Memgraph RPM Package
Downloaded the latest Memgraph RPM Package from the Memgraph Download Hub (opens in a new tab).
You can also use direct download links to get the latest Memgraph packages.
For example:
sudo wget https://download.memgraph.com/memgraph/v2.9.0/debian-11/memgraph_2.9.0-1_amd64.deb
Install Memgraph
After downloading the Memgraph RPM package, you can install it by issuing the following command:
sudo yum --nogpgcheck localinstall /path-to/memgraph-<version>.rpm
NOTE: Please take care of the SELinux config. The easiest way of
running Memgraph is to disable SELinux by executing setenforce 0
. If that's
not an option, please configure system properly.
If you run into any troubles while installing Memgraph, contact us on Discord (opens in a new tab).
Start Memgraph
After successful installation, Memgraph can be started as a service using the following command:
systemctl start memgraph
To verify that Memgraph is running, run the following command:
journalctl --unit memgraph
If successful, you should receive an output similar to the following:
You are running Memgraph vX.X.X
If you want the Memgraph service to start automatically on each startup, run the following command:
systemctl enable memgraph
Connect to the database
To query the database from the console, you need to install
mgconsole
.
You can also connect to the database using one of the client libraries or visual-user interface Memgraph Lab.
Stop Memgraph
To shut down the Memgraph server, issue the following command:
systemctl stop memgraph
Start Memgraph
Memgraph can be started as a service using the following command:
systemctl start memgraph
Configuration
The Memgraph configuration is available in /etc/memgraph/memgraph.conf
. If the
configuration file is altered, Memgraph needs to be restarted. Check all the
configuration options in the configuration
settings.
Where to next?
To learn how to query the database, take a look at the querying documentation
or Memgraph Playground (opens in a new tab) for interactive
tutorials.
Visit the client libraries overview
page if you need to connect to the database programmatically.
For more information on the installation process and for additional questions, visit the Help Center page.