我已经安装了操作系统管理器并设置了备份配置。当它试图同步mongodb部署时,它会出现一个错误,因为它无法在/opt/mongodb/mms/mongodb-releases中找到mongodb。
下面是错误,这是备份daemon- backup.jobs.590664394c9f732dd6c88b7c.tax引发的错误
Failed to start mongod
com.xgen.svc.brs.util.GenericMongoManager$MongoManagerConfigException: Could not find mongod. Found /opt/mongod
我正在使用PythonAnywhere托管我的web应用程序。使用Mongodb作为我的数据库。现在,我的任务是定期进行备份,并随时恢复特定版本的mongodb。
在本地(windows机器)上做这件事很容易。安装Mongodb实用程序并执行命令
mongodump --mongodbConnectionString //From location where this executable is stored
mongorestore --mongodbConnectionString
现在,我面临的挑战是如何从PythonAnywhere中做到这一点。在这里,我应该如何使用这些实用程序
我已经将我的MongoDB社区版本升级到3.4.3
当我运行sudo apt-get install -y mongodb-org时
我得到了
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-org is already the newest version (3.4.3).
但是当我运行mongod --version时
我得到了
db version v3.2.11
git version: 009580ad490190ba33d1c6253eb
我在ec2中运行Mongo2.2.1,我已经启用了性能分析,并且我每隔180秒就会向石墨发送一个缓慢的操作摘要。脚本会时不时地报告一个错误(BSONElement: bad type 113),如果我登录到Mongo shell并运行db.system.profile.find(),我会得到一个更详细的报告:
Mon Feb 18 09:12:48 Assertion: 10320:BSONElement: bad type 113
0x6073f1 0x5d1aa9 0x4b0d98 0x5c17a6 0x6b3f35 0x6b6a2c 0x69be0a 0x6aa13f 0x668e46
MongoDB继续在我构建的VM上崩溃。谷歌搜索了这个致命的断言号,但没有结果。任何指点都会很感激..。
详细信息:
在运行Ubuntu14.04的VM系统上。来自10 from的最新稳定的mongo软件包:
# dpkg -l | grep mongo
ii libmongo-client0:amd64 0.1.7-1 amd64 Alternate C driver for the MongoDB document-oriented datastore
ii mongodb-o
因此,我目前正在尝试为我的centos机器在本地设置运行和托管mongodb。但当我试图连接时,我得到了这个:
#mongo
MongoDB shell version v3.4.24
connecting to: mongodb://127.0.0.1:27017
2021-04-20T22:06:51.585+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2021-04-2
我们当前的Python管道从web中抓取数据并将这些数据存储到MongoDB中。然后,将数据加载到一个分析算法中。这在本地计算机上很好,因为mongod定位了数据库,但是我想在像Google这样的共享平台上上传数据库,这样其他用户就可以不用再运行刮板就可以使用这些数据了。
我知道MongoDB默认将数据存储在/ data /db,所以我可以将整个/data/db上传到Google吗?
另一个选项似乎是将MongoDB导出到JSON或CSV,但是我们当前用于分析算法的实现已经直接从MongoDB加载。
在下面执行mongoexport command.Connection字符串时出现以下错误。
MongoDB外壳版本v4.2.0
OS - Mac OS Catalina
mongoexport --uri="mongodb+srv://m001-student:m001-****@sandbox.*****.mongodb.net/sample_supplies" --collection=sales --out=sales.json
错误:
2021-01-14T20:27:59.584+0000 error parsing command line options:
对于在生产中运行的TokuMX服务器的远程数据库备份(没有切分和复制),我有几个问题。单个子句是“不要停止运行Tokumx实例”。
运行TokuMX服务器的热备份的最佳方法是什么(企业版的TokuMX热备份除外)。
关于建议的MongoDB备份方法的问题:
备份-主机# mongodump -主机mongodb-主机-端口27017 -db mongodevdb -用户名mongouser -密码单
- Is this command prefer way to make hot backups?
- What port should I use when issue this