In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install the MongoDB server in Fedora. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
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 Complete!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/--- on how to install a MongoDB server in Fedora, that's all. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.