Linux安装MongoDB

linux下安装mongoDB教程 linux下安装mongoDB 花了一些时间,在虚拟机linux系统上安装了mongoDB,记录一下过程。 文章目录linux下安装mongoDB上传安装包解压安装包创建配置文件启动mongoDB编写启动关闭脚本客户端工具 上传安装包 去官网下载安装包(注意版本号、适用操作系统、安装包格式) 将下载好的安装包(mongodb-linux-x86_64-rhel70-4.0.9.tgz)上传到li... 阅读详情

Linux安装MongoDB

前言

MongoDB是用C++等语言编写的一种面向文档的非关系型数据库,用于解决应用程序开发社区中的大量现实问题,是非关系数据库当中功能最丰富,最像关系数据库的。
本文介绍MongoDB在linux系统下的安装。

环境准备

系统:CentOS 7.4.1708
安装包:mongodb-linux-x86_64-4.0.10
安装包下载:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.10.tgz
安装包存放目录:/home

安装

1、解压安装包

tar -zxvf mongodb-linux-x86_64-4.0.10.tgz

2、通过修改profile文件配置全局变量

vi /etc/profile

在里面加入

export PATH=$PATH:/home/mongodb-linux-x86_64-4.0.10/bin

执行如下命令,让环境变量立即生效

source /etc/profile

3、增加mongoDB配置文件

进入安装目录

cd /home/mongodb-linux-x86_64-4.0.10

创建data目录

mkdir data

在data目录下创建db和logs目录

mkdir db
mkdir logs

在data目录下创建并编辑配置文件

vi mongdb.conf

在配置文件输入以下内容:

#端口号
port = 27017

#数据目录
dbpath = /home/mongodb-linux-x86_64-4.0.10/data/db

#日志所在目录
logpath = /home/mongodb-linux-x86_64-4.0.10/data/logs/mongodb.log

#日志输出方式
logappend = true

4、启动服务

mongod -f /home/mongodb-linux-x86_64-4.0.10/data/mongdb.conf

执行以下命令

mongod -version

若输出以下内容,恭喜你,安装成功!

db version v4.0.10
git version: c389e7f69f637f7a1ac3cc9fae843b635f20b766
allocator: tcmalloc
modules: none
build environment:
    distarch: x86_64
    target_arch: x86_64

5、后台daemon方式启动

mongod -f /home/mongodb-linux-x86_64-4.0.10/data/mongdb.conf --fork

如有任何疑问或者建议欢迎在评论区留言

参考资料:
[1]: https://jingyan.baidu.com/article/636f38bb994d2bd6b84610fd.html
[2]: https://blog.csdn.net/roler_/article/details/38820247

Debian系Linux下mongoDB的安装 执行效果如下:[sudo] wufeng 的密码:正在读取软件包列表… 完成正在分析软件包的依赖关系树正在读取状态信息… 完成将会同时安装下列软件:下列【新】软件包将被安装:升级了 0 个软件包,新安装了 16 个软件包,要卸载 0 个软件包,有 1879 个软件包未被升级。有 2 个软件包没有被完全安装或卸载。需要下载 60.6 MB 的归档。解压缩后会消耗 244 MB 的额外空间。您希望继续执行吗?[Y/n] y待操作完成后执行,如果出现下面的提示信息,则表示安装成功使用。 阅读详情

相关推荐

mongodb-linux-x86_64-enterprise-ubuntu1804-4.4.10.tgz

官方 mongodb 4.4.10 ubuntu 包

Linux环境下MongoDB的下载安装

第二讲

xiaoliuxxs 1431

mongodb-linux-x86_64-4.0.10.tgz

mongodb-linux-x86_64-4.0.10.tgz的下载 mongodb-linux-x86_64-4.0.10.tgz的下载 mongodb-linux-x86_64-4.0.10.tgz的下载

linux环境安装mongoDB

(1)先到官网下载压缩包 mongod-linux-x86_64-4.0.10.tgz。如果启动后不是 successfully ,则是启动失败了。原因基本上就是配置文件有问题。目标:在Linux中部署一个单机的MongoDB,作为生产环境下使用。提示:和Windows下操作差不多。(6)启动MongoDB服务。(5)新建并修改配置文件。

tian830937的专栏 1915

LMI线性矩阵不等式之非线性变量处理

​ 如果一个LMI线性矩阵不等式中的某项存在两个矩阵变量相乘,那么称该类情形为非线性矩阵不等式,而要直接求解时很困难的,而且LMI工具箱也无法求解非线性矩阵,所以需要通过变量替换法进行处理。 ​...

Mr.邹的博客 4553

合宙ESP32C3实战:MPU6500六轴传感器数据读取与校准全解析

本文详细解析了如何使用合宙ESP32C3开发板读取和校准MPU6500六轴姿态传感器数据。从硬件接线、开发环境搭建到核心代码解析,提供了全面的实战指南,帮助开发者快速掌握传感器配置与数据处理技巧,适用于姿态控制、运动检测等应用场景。

weixin_27066963的博客 411

linux 安装mongodb

1,下载mongodb 官网下载地址:https://www.mongodb.com/download-center/community 我这里直接使用wget下载 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.10.tgz 2,解压文件,并将文件移动到/usr/local/ tar -zxvf mongodb-li...

H的博客 502

swl安装无法与服务器建立链接,如何解决?

🏆本文收录于《全栈Bug调优(实战版)》专栏,主要记录项目实战过程中所遇到的Bug或因后果及提供真实有效的解决方案,希望能够助你一臂之力,帮你早日登顶实现财富自由🚀;同时,欢迎大家关注&&收藏&&订阅!持续更新中,up!up!up!! 备注:部分问题/疑难杂症搜集于互联网。

**My Coding Family** 2090

mongodb-linux-x86_64-4.0.10.tgz百度云盘下载

提供下mongodb-linux-x86_64-4.0.10.tgz的下载: 链接:https://pan.baidu.com/s/1dK8M6LPX6phS0pmd1pw8Xg 密码:zksw

DJ阳 2393

从 SM59 到 SPROXY,打通 ABAP 后端与 ES Repository 的代理生成链路

本文探讨了在SAP PI/PO项目中配置ABAP后端系统与ES Repository连接的关键步骤,重点解决ABAP Proxy生成时无法获取接口模型的问题。文章指出: 该配置本质是建立设计时通道,使ABAP系统能通过SPROXY访问ES Repository中的接口模型并生成代理类 配置核心是在SM59创建名为SAP_PROXY_ESR的HTTP连接(类型G),需确保: 目标路径为/rep 使用具备SAP_XI_IS_SERV_USER角色的服务账号 连接测试通过后仍需在SPROXY中验证完整功能 常见陷

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 77

Spring Boot集成ShardingSphere实现数据加密及数据脱敏 | Spring Cloud 48

利用ShardingSphere实现: - 数据加密 - 数据脱敏

gmHappy 1万+

Linux平台安装MongoDB

本文介绍了在Linux平台安装MongoDB的详细步骤。主要内容包括:安装各发行版依赖包(RedHat/CentOS、Ubuntu/Debian);下载MongoDB社区版安装包并解压;配置环境变量;创建数据存储和日志目录并设置权限;启动MongoDB服务及验证方法;使用MongoDB Shell进行基本操作(数据插入、查询);以及停止MongoDB服务的方法。文章提供了完整的命令行操作指南,适合初学者快速搭建MongoDB环境。

nmxiaocui的博客 2042

uni-app - 实现全屏自适应且不变形背景大图,设置一张图片占满全屏(根据手机或电脑尺寸自动拉伸背景图像),用于页面是一张平铺的大图做背景的情况,全端兼容

uni-app,vue.js,微信小程序-设置背景图自适应手机屏幕尺寸,页面中的背景图片高度和宽度自适应,UNI-APP里如何设置背景图自适应手机屏幕尺寸,如何实现一个图片铺满整个页面,并且可以根据用户机型进行自动修正,自适应背景大图片官方教程,一个页面如何将图像放到背景上,纯CSS实现,设置背景图片占满全屏,3种CSS实现背景图片全屏铺满自适应的方式,uni-app中如何让图片不带高度的自适应,兼容uni-app全端,支持【纯】微信小程序项目使用,uni-app-实现全屏自适应且不变形背景大图

🏆 前端领域优质创作者 1万+

Linux虚拟机安装MongoDB,

LInux安装MonggoDB

weixin_53165734的博客 2783

使用lightGBM进行数据建模及预测

在机器学习领域中,数据建模和预测一直是非常重要的任务。而lightGBM作为一种基于梯度提升算法的高效机器学习框架,被广泛应用于数据建模和预测中。本文将介绍如何使用lightGBM进行数据建模和预测。到此,我们已经成功使用lightGBM对数据进行了建模和预测。使用lightGBM可以快速、高效地完成数据建模和预测任务,是机器学习领域中不可或缺的工具之一。使用lightGBM进行数据建模及预测。

qq_37934722的博客 1022

大模型工作流Dify面试题及参考答案

设计一个基于 Dify 的智能摘要与重点提取 Agent,需结合Prompt 工程、模型能力配置和工作流优化,确保对长文本的高效解析和关键信息提炼。1. 明确任务需求与输入输出输入:长文本内容(如文章、报告、会议记录)或文本 URL输出摘要:简洁概括原文核心内容,控制在原文长度的 10%-20%重点列表:分点列出关键数据、结论、行动项等可选:关键词提取、情感倾向分析示例场景输入:一篇 5000 字的行业报告。

大模型大数据攻城狮的专栏 2531

Linux环境安装MongoDB

Linux环境安装MongoDB

聂可以的博客 3955

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

Linux下安装mongoDb

我创建的目录是直接在系统挂载的盘符下了,避免磁盘空间过满,上面的/home/tools可以直接一步到位,直接上传到对应的/mnt/data/mongodb 目录下。我创建的目录是直接在系统挂载的盘符下了,避免磁盘空间过满,上面的/home/tools可以直接一步到位,直接上传到对应的/mnt/data/mongodb 目录下。我选择的时候下图中的版本,可以根据你自己idea需求调整,注意最好不要选择带有ARM的,会出现不能使用的问题。上方截图,我只是按照我上传的目录,解压的数据所写,按照你的实际目录填写。

ybb_ymm的专栏 838

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

【Linux】Linux安装并配置MongoDB

Linux安装并配置MongoDB

啥都不会的小码农的博客 2279

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

Linux上安装MongoDB

mongodb安装与登陆

xike1024的博客 1832

Linux中MongoDB的安装及使用

本篇是主要是cenos7下如何安装并启动MongoDB,并教了如何配置linux的ip

qq_64711594的博客 1445

mongodb linux安装

一、安装过程 1.到mongodb官网下载对应系统的压缩包,我的系统是Ubuntu16.04,64位。(注意不要选错系统版本,也可以在本地下载好后上传到云服务器) 地址:Downloads for linux (mongodb.org) 2.默认下载路径是到用户目录下的Downloads目录,将其解压 tar -zxvf mongodb-linux-x86_64-3.2.12.tgz 3.将解压后的文件夹移动到/usr/local/的mongodb目录下 mv -r mongodb-linu

进行中 2867

linux下安装MongoDB

1.下载安装 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.0.tgz tar -zxvf mongodb-linux-x86_64-4.0.0.tgz mv mongodb-linux-x86_64-4.0.0 mongodb cd mongodb mkdir logs mkdir db cd bin vim mongo.conf mongo.conf加入如下配置 #db path dbpath=/t.

像风一样自由 315
上一篇: 大话设计模式之原型模式(Java总结)
下一篇: 解决hexo d命令报错 ERROR Deployer not found: git
Java_Mike
博客等级 码龄10年 34粉丝 62原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址