In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Using port to install, it is simple:
JintekiMacBook-Pro:bin jinyonghua$ port install mongodb
Error: Insufficient privileges to write to MacPorts install prefix.
JintekiMacBook-Pro:bin jinyonghua$ sudo port install mongodb
Then enter mongod, and the error is as follows:
ERROR: dbpath (/ data/db/) does not exist.
Then, follow the prompts:
# create / data/db directory sudo mkdir-p / data/db
# set / data/db directory permissions sudo chown-R your system login user name / data
To use mongodb under mac os, install it first.
There are two main ways to install mongodb:
First, use package management tools such as Homebrew or Macport. The specific installation method can find the relevant information.
Download the installation files on the mongodb official website.
In fact, whether you use mongodb or mac os under windows, you can do it in much the same way.
First, before opening terminal, type mongod (as long as you install mongodb correctly. So that you are starting the mongodb service
Next, open another terminal window to act as a mongodb shell. Once opened, type mongo to connect to the default database (the default database is test). Then you can operate on the database.
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.