当前位置:网站首页>Download and install mongodb
Download and install mongodb
2022-04-23 16:04:00 【aserendipper】
One 、 download MongoDB
1、 open MongoDB Download the homepage from the official website https://www.mongodb.com/try/download, find community Community Edition , Then select the corresponding version to download .
Version edition , Choose to have current Literally , This is the latest stable version
OS It's the system , Choose here RHEL 7.0 , Corresponding Centos Namely 7.x
Package Is the format of the package , Choose here TGZ, It's a compression pack
Two 、 install MongoDB
1、 Upload the compressed package to /usr/local Directory and extract
tar -zxvf mongodb-linux-x86_64-rhel70-4.2.8.tgz
2、 Rename the folder to mongodb
mv mongodb-linux-x86_64-rhel70-4.2.8/ mongodb/
3、 Get into mongodb Under the folder , Create a folder for storing data and logs
mkdir data # For storage mongodb Database data
mkdir logs # For storage mongodb Log generated by running
4、 create profile
vim mongodb.conf
# Log file location
logpath=/usr/local/mongodb/logs/mongodb.log
# Write log as append
logappend=true
# Whether to run as daemons
fork=true
# port 27017
port=27017
# Database file location
dbpath=/software/mongodb/data
# Which one is allowed ip The connection of ,0.0.0.0 Represents any ip All can be connected
bind_ip=0.0.0.0
# Whether it operates in the way of safety certification , The default is the non secure way of not authenticating , You don't need to start the installation at the beginning , After setting the password, restart
#auth=true
The directory structure at this time is :
5、 start-up mongodb
bin/mongod --config mongodb.conf
After successful startup :
6、 Connect mongodb And test the
Get into bin Under the table of contents , perform
./mongo
show dbs
You can see that there are three default databases
3、 ... and 、 Reference material
1、https://blog.csdn.net/americaMan/article/details/105755863
版权声明
本文为[aserendipper]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231557111244.html
边栏推荐
- ESP32编译环境的搭建
- PS为图片添加纹理
- Day (10) of picking up matlab
- Pgpool II 4.3 Chinese Manual - introductory tutorial
- Application case of GPS Beidou high precision satellite time synchronization system
- 面试题 17.10. 主要元素
- Unity Shader学习
- How important is the operation and maintenance process? I heard it can save 2 million a year?
- Deletes the least frequently occurring character in the string
- Spark 算子之filter使用
猜你喜欢

Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)

运维流程有多重要,听说一年能省下200万?

C language self compiled string processing function - string segmentation, string filling, etc

王启亨谈Web3.0与价值互联网“通证交换”

Vision of building interstellar computing network
![Merging of Shanzhai version [i]](/img/e7/f301697aea879bcad8cef70ca890cc.png)
Merging of Shanzhai version [i]

C语言自编字符串处理函数——字符串分割、字符串填充等
![[AI weekly] NVIDIA designs chips with AI; The imperfect transformer needs to overcome the theoretical defect of self attention](/img/bf/2b4914276ec1083df697383fec8f22.png)
[AI weekly] NVIDIA designs chips with AI; The imperfect transformer needs to overcome the theoretical defect of self attention

腾讯Offer已拿,这99道算法高频面试题别漏了,80%都败在算法上

Spark 算子之groupBy使用
随机推荐
Cloudy data flow? Disaster recovery on cloud? Last value content sharing years ago
Website pressure measurement tools Apache AB, webbench, Apache jemeter
C language self compiled string processing function - string segmentation, string filling, etc
Vision of building interstellar computing network
Fastjon2他来了,性能显著提升,还能再战十年
Algorithem_ ReverseLinkedList
实现缺省页面
Grbl learning (II)
How important is the operation and maintenance process? I heard it can save 2 million a year?
linux上启动oracle服务
Es common query, sorting and aggregation statements
vim指定行注释和解注释
Distinct use of spark operator
Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)
Gartner predicts that the scale of cloud migration will increase significantly; What are the advantages of cloud migration?
leetcode-396 旋转函数
Upgrade MySQL 5.1 to 5.610
gps北斗高精度卫星时间同步系统应用案例
Countdown 1 day ~ 2022 online conference of cloud disaster tolerance products is about to begin
ES常用查询、排序、聚合语句