In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install MongoDB on Fedora, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
MongoDB is a product between relational database and non-relational database, which is the most functional and most like relational database in non-relational database.
1. Create a warehouse using upstream RPM (RHEL-8 build) $sudo cat > / etc/yum.repos.d/mongodb.repo > > EOF [mongodb-upstream] name=MongoDB Upstream Repositorybaseurl= https://repo.mongodb.org/yum/redhat/8Server/mongodb-org/4.2/x86_64/gpgcheck=1enabled=1gpgkey=https://www.mongodb.org/static/pgp/server-4.2.ascEOF2, install meta software package To pull the server and toolkit $sudo dnf install mongodb-org.Installed: mongodb-org-4.2.3-1.el8.x86_64 mongodb-org-mongos-4.2.3-1.el8.x86_64 mongodb-org-server-4.2.3-1.el8.x86_64 mongodb-org-shell-4.2.3-1.el8.x86_64 mongodb-org-tools-4.2.3-1.el8.x86_64 completion 3, Start the MongoDB daemon $sudo systemctl status mongod ● mongod.service-MongoDB Database Server Loaded: loaded (/ usr/lib/systemd/system/mongod.service Enabled; vendor preset: disabled) Active: active (running) since Sat 2020-02-08 12:33:45 EST 2s ago Docs: https://docs.mongodb.org/manual Process: 15768 ExecStartPre=/usr/bin/mkdir-p / var/run/mongodb (code=exited, status=0/SUCCESS) Process: 15769 ExecStartPre=/usr/bin/chown mongod:mongod / var/run/mongodb (code=exited, status=0/SUCCESS) Process: 15770 ExecStartPre=/usr/bin/chmod 0755 / var/run/mongodb (code=exited, status=0/SUCCESS) Process: 15771 ExecStart=/usr/bin/mongod $OPTIONS (code=exited Status=0/SUCCESS) Main PID: 15773 (mongod) Memory: 70.4m CPU: 611ms CGroup: / system.slice/mongod.service4, connect to the server via mongo shell to verify that you are running $mongoMongoDB shell version v4.2.3connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodbImplicit session: session {"id": UUID ("20b6e61f-c7cc-4e9b-a25e-5e306d60482f")} MongoDB server version: 4.2.3Welcome to the MongoDB shell.For interactive help Type "help" .for more comprehensive documentation, see http://docs.mongodb.org/
That's it. As you can see, the RHEL-8 package is perfectly compatible, and as long as the Fedora package is compatible with RHEL-8, it should always be compatible. Please note that you must comply with the SSPLv1 license when using it.
The above is all the contents of the article "how to install MongoDB on Fedora". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.