首页 \ 问答 \ 在干净的Linux安装之后,MongoDB不会启动(MongoDB wont start after clean Linux install)

在干净的Linux安装之后,MongoDB不会启动(MongoDB wont start after clean Linux install)

我在Linux上安装MongoDB时遇到问题。 我只需要在本地安装MongoDB。 我从一个过时的版本(2.4.9)开始,所以我使用这些命令行删除整个旧版本:

sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
sudo apt-get purge mongodb-10gen
sudo apt-get autoremove

所以此时我的Linux Mint Qaina 17上没有安装MongoDB版本

我去了网站: http//docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/做了以下命令行,就像网站告诉我做的那样:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start

此刻我安装了MongoDB 2.6.5。 最新版本。 在我没有错误后,我重新启动终端。 这是我打字后输入终端的结果:sudo mongod

mongod --help for help and startup options
2014-10-31T19:24:30.653+0100 [initandlisten] MongoDB starting : pid=2749 port=27017 dbpath=/data/db 64-bit host=XXX-pc
2014-10-31T19:24:30.653+0100 [initandlisten] db version v2.6.5
2014-10-31T19:24:30.653+0100 [initandlisten] git version: e99d4fcb4279c0279796f237aa92fe3b64560bf6
2014-10-31T19:24:30.653+0100 [initandlisten] build info: Linux build8.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-10-31T19:24:30.653+0100 [initandlisten] allocator: tcmalloc
2014-10-31T19:24:30.654+0100 [initandlisten] options: {}
2014-10-31T19:24:30.728+0100 [initandlisten] journal dir=/data/db/journal
2014-10-31T19:24:30.729+0100 [initandlisten] recover : no journal files present, no recovery needed
2014-10-31T19:24:30.894+0100 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017
2014-10-31T19:24:30.894+0100 [initandlisten] ERROR:   addr already in use
2014-10-31T19:24:30.895+0100 [initandlisten] now exiting
2014-10-31T19:24:30.895+0100 [initandlisten] dbexit: 
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: going to close listening sockets...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: going to flush diaglog...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: going to close sockets...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: waiting for fs preallocator...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: lock for final commit...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: final commit...
2014-10-31T19:24:30.969+0100 [initandlisten] shutdown: closing all files...
2014-10-31T19:24:30.970+0100 [initandlisten] closeAllFiles() finished
2014-10-31T19:24:30.970+0100 [initandlisten] journalCleanup...
2014-10-31T19:24:30.970+0100 [initandlisten] removeJournalFiles
2014-10-31T19:24:31.028+0100 [initandlisten] shutdown: removing fs lock...
2014-10-31T19:24:31.029+0100 [initandlisten] dbexit: really exiting now

谁能告诉我问题是什么? 我有同样的问题


I have a problem with my MongoDB installation on Linux. I just need to install MongoDB local. I started with a outdated version (2.4.9), so I used these command lines to delete the entire old version:

sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
sudo apt-get purge mongodb-10gen
sudo apt-get autoremove

So at this moment I had no version of MongoDB installed on my Linux Mint Qaina 17

I went to the website: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ Did the following command lines, just like the websites told me to do:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start

At this moment I have MongoDB 2.6.5 installed. The latest version. After I got none error, I restart my terminal. This is my result in terminal after I typed: sudo mongod

mongod --help for help and startup options
2014-10-31T19:24:30.653+0100 [initandlisten] MongoDB starting : pid=2749 port=27017 dbpath=/data/db 64-bit host=XXX-pc
2014-10-31T19:24:30.653+0100 [initandlisten] db version v2.6.5
2014-10-31T19:24:30.653+0100 [initandlisten] git version: e99d4fcb4279c0279796f237aa92fe3b64560bf6
2014-10-31T19:24:30.653+0100 [initandlisten] build info: Linux build8.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-10-31T19:24:30.653+0100 [initandlisten] allocator: tcmalloc
2014-10-31T19:24:30.654+0100 [initandlisten] options: {}
2014-10-31T19:24:30.728+0100 [initandlisten] journal dir=/data/db/journal
2014-10-31T19:24:30.729+0100 [initandlisten] recover : no journal files present, no recovery needed
2014-10-31T19:24:30.894+0100 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017
2014-10-31T19:24:30.894+0100 [initandlisten] ERROR:   addr already in use
2014-10-31T19:24:30.895+0100 [initandlisten] now exiting
2014-10-31T19:24:30.895+0100 [initandlisten] dbexit: 
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: going to close listening sockets...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: going to flush diaglog...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: going to close sockets...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: waiting for fs preallocator...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: lock for final commit...
2014-10-31T19:24:30.896+0100 [initandlisten] shutdown: final commit...
2014-10-31T19:24:30.969+0100 [initandlisten] shutdown: closing all files...
2014-10-31T19:24:30.970+0100 [initandlisten] closeAllFiles() finished
2014-10-31T19:24:30.970+0100 [initandlisten] journalCleanup...
2014-10-31T19:24:30.970+0100 [initandlisten] removeJournalFiles
2014-10-31T19:24:31.028+0100 [initandlisten] shutdown: removing fs lock...
2014-10-31T19:24:31.029+0100 [initandlisten] dbexit: really exiting now

Could anybody tell me what the problem is? I had the same problem on a


原文:https://stackoverflow.com/questions/26681452
更新时间:2023-01-03 16:01

最满意答案

不知道Python绑定,但Qwt 5.2提供了一个类QwtPlotRescaler,它提供类似“轴相等”的功能。

在Qwt 6.1中,您可以找到重新缩放器示例,其中显示了如何使用它。


Don't know about the Python bindings, but Qwt 5.2 offers a class QwtPlotRescaler, that offers something like the "axis equal" feature.

In Qwt 6.1 you find the rescaler example, that shows how to use it.

相关问答

更多
  • Qwtplot::clear()已被弃用。 改为使用QwtPlotDict::detachItems 。 void QwtPlotDict::detachItems(int rtti = QwtPlotItem::Rtti_PlotItem, bool autoDelete = true ) 参数: rtti :如果QwtPlotItem :: Rtti_PlotItem分离所有项目, ...
  • 好的,经过多次试验和错误,我找到了一个解决方案:我通过Ubuntu的软件中心安装了Qwt(我猜6.0),并删除了我手动安装的所有其他Qwt版本(6.1.2和6.1.3)。 现在,小GUI工作正常。 我想错误是由于我在.pro文件中提供的路径中的某些问题,但我无法确定错误。 这不是一个令人满意的答案,但至少它是有效的。 Ok, after several trials and errors, I found a solution: I installed Qwt (I guess 6.0) through U ...
  • QwtPlotRasterItem缓存渲染的图像。 在您的代码中,您正在更改项目背面后面的数据,因此该项目不知道缓存无效。 使用QwtPlotRasterItem :: invalidateCache(),您可以解决类似这样的问题。 QwtPlotRasterItem caches the rendered image. In your code you are changing the data behind the back of the item, so the item is not aware o ...
  • 与5相比,Qwt 6有一些变化。 现在我们需要使用QwtPlotPicker::setStateMachine(QwtPickerMachine)方法设置状态机。 有几个选项(派生类): QwtPickerClickPointMachine QwtPickerClickRectMachine QwtPickerDragPointMachine QwtPickerDragRectMachine QwtPickerPolygonMachine QwtPickerTrackerMachine 根据我们的需要。 接 ...
  • 我使用QFrame创建了条形图并使用paintEvent函数手动绘制它。 I created the bar using a QFrame and painted it manually using the paintEvent function.
  • 缺少QwtPlot :: replot以使您的更改发生。 在启动的情况下,你总是遇到一个初始的重新绘制 - 这就是它在那里工作的原因。 QwtPlot::replot is missing to make your changes happen. In case of startup you always run into an initial replot - that's why it is working there.
  • 不知道Python绑定,但Qwt 5.2提供了一个类QwtPlotRescaler,它提供类似“轴相等”的功能。 在Qwt 6.1中,您可以找到重新缩放器示例,其中显示了如何使用它。 Don't know about the Python bindings, but Qwt 5.2 offers a class QwtPlotRescaler, that offers something like the "axis equal" feature. In Qwt 6.1 you find the resca ...
  • 可能有几种方法可以做到这一点。 您没有指定要绘制的图像类型(以及在何处)。 您可以使用自定义QwtSymbol ( Qwt docs )创建QwtSymbol ( Qwt docs )。 你可以试试QwtSymbol::setPixmap() 。 可以通过使用* .png图像( Qt docs )的文件名调用其构造函数来创建QPixmap 。 Probably there are several ways to do this. You don't specify what kind of image yo ...
  • 我自己找到了解决方案。 我需要调用invalidateCache() 。 I found the solution by myself. I needed to call invalidateCache().
  • 对于未来的读者,我已经找到了HeyyYO的解决方案。 我分享这个非常简单的例子: #include "QApplication" #include #include #include #include #include class TimeScaleDraw:public QwtScaleDraw { public: Tim ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。