当前位置: 首页 > news >正文

苏州有哪些做网站该网站想要跳转百度app

苏州有哪些做网站,该网站想要跳转百度app,广州技术支持:网站建设,做网站怎么插音频云盘分享文件: 链接:https://pan.baidu.com/s/11sbj1QgogYHPM4udwoB1rA 提取码:l2wz 1.mongodb简单介绍 MongoDB的 官网 内容还是挺丰富的。 是由 C语言编写的,是一个基于分布式文件存储的开源数据库系统。在高负载的情况下&…

云盘分享文件:

在这里插入图片描述

链接:https://pan.baidu.com/s/11sbj1QgogYHPM4udwoB1rA
提取码:l2wz

1.mongodb简单介绍

MongoDB的 官网 内容还是挺丰富的。

是由 C++语言编写的,是一个基于分布式文件存储的开源数据库系统。在高负载的情况下,添加更多的节点,可以保证服务器性能。
旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。
将数据存储为一个文档,数据结构由键值(key=>value)对组成。
MongoDB文档类似于 JSON 对象。字段值可以包含其他文档,数组及文档数组。

MongoDB的特点:

  • MongoDB 是一个面向文档存储的数据库,操作起来比较简单和容易。
  • 可以在 MongoDB 记录中设置任何属性的索引 (如:FirstName=“Sameer”,Address=“8 Gandhi Road”)来实现更快的排序。
  • 可以通过本地或者网络创建数据镜像,这使得 MongoDB 有更强的扩展性。
  • 如果负载的增加(需要更多的存储空间和更强的处理能力) ,它可以分布在计算机网络中的其他节点上这就是所谓的分片。
  • 支持丰富的查询表达式。查询指令使用 JSON 形式的标记,可轻易查询文档中内嵌的对象及数组。
  • 使用 update()命令可以实现替换完成的文档(数据)或者一些指定的数据字段 。
  • Map/Reduce 主要是用来对数据进行批量处理和聚合操作。【这个特点类似与Hadoop的了】
  • Map和Reduce。Map 函数调用 emit(key,value)遍历集合中所有的记录,将 key 与 value 传给 Reduce 函数进行处理。 Map 函数和 Reduce 函数是使用 Javascript 编写的,并可以通过 db.runCommand 或 mapreduce 命令来执行 MapReduce 操作。
  • GridFS 是 MongoDB 中的一个内置功能,可以用于存放大量小文件。
  • MongoDB 允许在服务端执行脚本,可以用 Javascript 编写某个函数,直接在服务端执行,也可以把函数的定义存储在服务端,下次直接调用即可。

2.下载安装配置

2.1 下载

下载中心 可以下载各种不同操作系统和版本的安装包,根据需要进行下载:

[root@tcloud ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

在这里插入图片描述

2.2 安装

官网也是有 安装文档 的,小伙伴可以根据自己系统的情况查看相应的安装过程。

在这里插入图片描述
CentOS安装 官网安装步骤 整理如下:

# 1.添加 mongod 用户和用户组
groupadd mongod
useradd -r -m -g mongod mongod
# 2.安装依赖【否则可能会出现报错】
yum install libcurl openssl xz-libs
# 3.解压
tar -zxvf mongodb-linux-x86_64-rhel70-6.0.5.tgz
# 移动文件(根据个人习惯 可不进行操作)
mv ./mongodb-linux-x86_64-rhel70-6.0.5/ /usr/local/mongodb/
# 4.PATH 环境变量配置(两种方式)
cp /usr/local/mongodb/bin/* /usr/local/bin/
# 或
ln -s /usr/local/mongodb/bin/* /usr/local/bin/
# 5.创建 mongodb 的数据文件夹和日志文件夹并赋权
mkdir -p /var/lib/mongo
mkdir -p /var/log/mongodb
chown -R mongod:mongod /var/lib/mongo
chown -R mongod:mongod /var/log/mongodb
# 6.启动【数据路径 日志路径 绑定的IP】
# --bind_ip 需要注意
mongod --dbpath /var/lib/mongo --logpath /var/log/mongodb/mongod.log --bind_ip 127.0.0.1,tcloud --forkabout to fork child process, waiting until server is ready for connections.
forked process: 24774
child process started successfully, parent exiting# 还可以使用配置文件的方式启动【这种方式随后进行介绍】
mongod -f ../conf/mongodb.conf
# 7.验证启动成功 /var/log/mongodb/mongod.log
[initandlisten] waiting for connections on port 27017

2.3 mongodb-shell 安装

mongodb-shell的 下载页面 ,可以根据需要进行下载安装:

在这里插入图片描述

我使用的是 CentOS 所以下载的是rpm类型的安装包,安装过程很简单:

# 1.安装
rpm -ivh mongodb-mongosh-1.8.0.x86_64.rpm

.tgz类型文件的安装说明【安装过程未验证】

# 1.解压
tar -zxvf mongosh-1.8.0-linux-x64.tgz
# 2.赋权
chmod +x bin/mongosh
# 3.配置环境变量(两种方式)
cp mongosh /usr/local/bin/
cp mongosh_csfle_v1.so /usr/local/lib/
# 或
sudo ln -s $(pwd)/bin/* /usr/local/bin/

mongodb shell 有详细的 使用说明 小伙伴儿们可以参考。

# 启动命令
mongosh

一下是启动后的信息:

mongoshCurrent Mongosh Log ID: 6414231e638f2f5b00261acc
Connecting to:          mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.0
Using MongoDB:          6.0.5
Using Mongosh:          1.8.0For mongosh info see: https://docs.mongodb.com/mongodb-shell/To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.------The server generated these startup warnings when booting2023-03-17T16:20:20.500+08:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem2023-03-17T16:20:21.190+08:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted2023-03-17T16:20:21.190+08:00: You are running this process as the root user, which is not recommended2023-03-17T16:20:21.190+08:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning2023-03-17T16:20:21.191+08:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'2023-03-17T16:20:21.191+08:00: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. We suggest setting it to 'never'2023-03-17T16:20:21.191+08:00: vm.max_map_count is too low
------------Enable MongoDB's free cloud-based monitoring service, which will then receive and displaymetrics about your deployment (disk utilization, CPU, operation statistics, etc).The monitoring data will be available on a MongoDB website with a unique URL accessible to youand anyone you share the URL with. MongoDB may use this information to make productimprovements and to suggest MongoDB products and deployment options to you.To enable free monitoring, run the following command: db.enableFreeMonitoring()To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
------test>

2.4 测试

-- 1.查看所有数据库
show dbs
-- 实例
test> show dbs
admin   40.00 KiB
config  12.00 KiB
local   40.00 KiB-- 2.切换数据库
use dbName
-- 实例
test> use config
switched to db config
config>-- 3.查看数据库所有表
show tables
-- 实例
config> show tables
system.sessions-- 更多操作这里不再介绍

安装成功后可以使用Navicat进行连接:

在这里插入图片描述

3.总结

MongoDB的安装部署还是很简单的,主要在后期的应用。

http://www.yayakq.cn/news/946094/

相关文章:

  • 网站页面设计要求全网响应式网站
  • 能不能模仿百度一样做搜索引擎网站成都html5网站设计
  • 厦门 网站建设闽icp如何创建网站的详细步骤
  • 备案网站管理系统互联网保险有哪些
  • 网站制作怎么做语音搜索框做泵阀到哪个网站好
  • 河津做网站深圳网站推广活动方案
  • 海口网站建设的开发方案平台公司名称
  • 自己做的网站可以百度推广吗北京学做网站
  • 湖北省平安建设网站网站界面风格
  • 网站建设售后服务安全维护网络布线设计方案
  • 西部数码网站管理助手 mysql网站模板含数据库下载
  • 优秀的集团网站wordpress主题无法上传
  • 个人建站提供软件下载微信营销和网站建设
  • 青岛建个网站多少钱广东网站建设科技
  • 网站icp备案号查询2 网站内部链接优化
  • 吴镇宇做的电影教学网站网络推广费用预算表
  • 狠狠做网站 百度一下云南 房地产网站建设
  • 网站带做收录排名网站项目建设目标
  • 网站建设书本如何做招聘网站统计表
  • 女性时尚资讯+淘宝客模式系列网站源码工程公司经营范围大全
  • 廊坊百度网站排名自适应网站内容做多大尺寸
  • 网站放自己服务器备案哪个网站做h5好用
  • 网站兼容9微信小程序制作精灵
  • 申请个人网站需要多少钱网站建设中html5模板
  • 网站关键词重要吗电商网站的建设背景
  • 临沂住房和城乡建设厅网站在家开个代加工厂
  • 微信小程序 做网站比较好的公司网站
  • 网站设计例子顺德手机网站设计咨询
  • 太原市住房和城乡建设部网站怎么增加网站的收录量
  • 做百度推广送网站定制礼品的网站有哪些