- Plesk Onyx for Linux
How to install MongoDB in Plesk?
Plesk does not support MongoDB database servers.
All supported Third-Party components can be found in Plesk Software Requirements.
MongoDB database servers support is planned for implementation in the next major Plesk release. Exact ETA for this is not available.
Warning: Below steps are done on your own risk!
Note: Local Docker service is not supported on Windows and CloudLinux. For more information refer to the Plesk Administrator's Guide.
Navigate to Plesk > Docker ;
mongoin the Docker catalog search field:
Click on Run button to automatically download and start MongoDB instance deployment:
Disable Automatic port mapping to manually map MongoDB instance to the localhost port:
Externalport is the port on which all connections to MongoDB will be served.
Map Docker container to the location on filesystem, to ensure that both the data and the configuration will persist:
Click Ok , so the Docker container is deployed and started:
Connect to the server via SSH ;
Verify that MongoDB is listening for incoming connections:
# ss -tlpn | grep 27017
LISTEN 0 128 :::27017 :::*
Install MongoDB shell:
For .deb-based OS (Debian, Ubuntu):
# apt install -y mongodb-clients
For .rpm-based OS (RHEL, CloudLinux, CentOS):
# echo -e '[mongodb-org-4.0]\nname=MongoDB Repository\nbaseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/\ngpgcheck=1\nenabled=1\ngpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc' >> /etc/yum.repos.d/mongodb.repo
# yum install -y mongodb-org-shell
Verify that MongoDB is set-up and ready by connecting from the localhost by running mongo shell on the Plesk server:
MongoDB shell version: 2.6.10
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
Questions? Try the support group