首页 > 数据库 >Installing MongoDB-6.0.2 on openEuler-22.09

Installing MongoDB-6.0.2 on openEuler-22.09

时间:2022-11-09 22:25:17浏览次数:93  
标签:opt x86 602 MongoDB Installing mongodb 64 6.0 openEuler

一、Installing MongoDB-6.0.2 on openEuler-22.09

1 查看版本

openEuler-22.09 和 CentOS 8.3 里安装无差别,直接一步到位好吧!

 

X、One Step Success

systemctl stop firewalld

dnf install -y tar
cd /opt/software
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-6.0.2.tgz
wget https://downloads.mongodb.com/compass/mongodb-mongosh-1.6.0.x86_64.rpm

tar -zxvf /opt/software/mongodb-linux-x86_64-rhel80-6.0.2.tgz -C /opt && cd /opt/mongodb-linux-x86_64-rhel80-6.0.2 && ll
mv /opt/mongodb-linux-x86_64-rhel80-6.0.2 /opt/mongodb-602
cp /opt/mongodb-602/bin/* /usr/local/bin/
rpm -ivh /opt/software/mongodb-mongosh-1.6.0.x86_64.rpm

mkdir /opt/mongodb-602/conf
mkdir /opt/mongodb-602/data
mkdir /opt/mongodb-602/logs
touch /opt/mongodb-602/logs/mongodb.log

cat > /opt/mongodb-602/conf/mongodb.conf << EOF
# 数据文件存访目录
dbpath = /opt/mongodb-602/data
# 日志文件存访目录
logpath = /opt/mongodb-602/logs/mongodb.log
# 以追加的方式记录日志
logappend = true
# 端口默认为 27017
port = 27017
# 对访问 IP 地址不做限制,默认为本机地址
bind_ip = 0.0.0.0
# 以守护进程的方式启用,即在后台运行
fork = true
# 所有客户端都可以访问
bind_ip_all = true
EOF

mongod -f /opt/mongodb-602/conf/mongodb.conf
mongosh

 

Y、 Error message

 

Z、Related Links

Installing MongoDB-5.0.13 on CentOS 7.9:https://www.cnblogs.com/huaxiayuyi/p/16758999.html

Installing MongoDB-6.0.2 on CentOS 8.3:https://www.cnblogs.com/huaxiayuyi/p/16871771.html

 

标签:opt,x86,602,MongoDB,Installing,mongodb,64,6.0,openEuler
From: https://www.cnblogs.com/huaxiayuyi/p/16875384.html

相关文章

  • mongodb添加删除节点及仲裁节点
    温馨提示:此mongodb版本为5.0.11,并注意,如果要删除节点,可以直接删除,添加节点前要先删除仲裁节点。rs.remove("192.168.0.180:27017");  (移除节点,如果移除仲裁节点一直卡......
  • tornado 4.2.1 移植指南(openEuler 20.03 LTS SP1)
    tornado4.2.1移植指南(openEuler20.03LTSSP1)介绍简要介绍Tornado是一个PythonWeb框架和异步网络库,最初由FriendFeed开发。通过使用非阻塞网络I/O,Tornado可以扩展......
  • 【详细教程】一文参透MongoDB聚合查询
    MongoDB聚合查询什么是聚合查询聚合操作主要用于处理数据并返回计算结果。聚合操作将来自多个文档的值组合在一起,按条件分组后,再进行一系列操作(如求和、平均值、最大值、最......
  • Installing RabbitMQ-3.10.2 on CentOS 7.9
    一、InstallingRabbitMQ-3.10.2onCentOS7.91地址https://www.rabbitmq.comhttps://github.com/rabbitmq/rabbitmq-serverhttps://github.com/rabbitmq/rabb......
  • Installing wxWidgets-3.2.1 on CentOS 8.3
    一、InstallingwxWidgets-3.2.1onCentOS8.3地址https://www.wxwidgets.org 安装依赖dnfinstall-ybzip2gtk2-develbinutils-develwget下载cd/opt/soft......
  • Installing RabbitMQ-3.11.2 on CentOS 8.3
    一、InstallingRabbitMQ-3.11.2onCentOS8.3 InstallingRabbitMQ-3.10.2onCentOS7.9:https://www.cnblogs.com/huaxiayuyi/p/16768452.html 二、Erlang下......
  • linux安装mongodb 并且远程连接
    一、引言​​MongoDB​​是一个由C++语言编写的基于分布式文件存储的数据库,MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关......
  • mongodb基本操作合集
    创建管理员账号useadmindb.createUser({user:"root",pwd:"xxxxxx",roles:[{role:"root",db:"admin"}]})其他库创建账号......
  • Window环境下,安装MongoDB
    一、下载MongoDB官网下载地址:https://www.mongodb.com/try/download/community,选择MongoDB版本,平台为Windows,本文选择的安装包格式为msi:二、安装下载完成后,双击下载的m......
  • mongodb踩坑
    mongo中的日期,在显示上,会比我们正常的时间少8h。如果向mongo中插入数据,会少8h如果从mongo中查出数据,那么在idea中会是正常的;而如果是在datagrip/navicat中查,那么显示的时......