Port errors
If you are having trouble dealing with an error, please let us know on the Discord.
Errors
- Invalid port number {}. For more details, visit: memgr.ph/ports.
- Invalid port number {}. The port number must be a positive integer. For more details, visit: memgr.ph/ports.
- Invalid port number {}. The port number exceedes the maximum possible size. For more details, visit: memgr.ph/ports.
What port is Memgraph running on?
The default port Memgraph uses is 7687
is not otherwise specified.
How to change the port?
You can change the default port using the configuration settings.
- Docker 🐳
- Linux
The Memgraph configuration is available in Docker's named volume mg_etc
. On
Linux systems, it should be in
/var/lib/docker/volumes/mg_etc/_data/memgraph.conf
. Keep in mind that this way
of specifying configuration options is only valid if Memgraph was started using
volumes.
When using Docker, you can also specify the configuration options in the docker
run
command:
docker run -p 7687:7687 memgraph/memgraph --log-level=TRACE
The Memgraph configuration is available in /etc/memgraph/memgraph.conf
. If the
configuration file is altered, Memgraph needs to be restarted.
To learn about all the configuration options, check out the [Reference To learn about all the configuration options, check out the Reference guide.
What is the valid range for choosing a port?
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. Ports 0 through 1023 are defined as well-known ports. Registered ports are from 1024 to 49151. The remainder of the ports from 49152 to 65535 can be used dynamically by applications.
If you weren't able to find the error, please submit it through a Support Ticket so we can look into it and get back to you.