在干净的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
最满意答案
不知道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 ...
-
QwtPlot鼠标点击事件(QwtPlot mouse click event)[2022-08-13]
与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 ...
-
QwtPlot更新自定义轴(QwtPlot updating custom axis)[2023-01-05]
我自己找到了解决方案。 我需要调用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 ...