我已经安装了mongodb,并且能够运行它,使用它,做简单的DB读/写类型的事情。现在,我正在尝试设置我的Mac,使其能够将mongod作为一项服务来运行。
我收到"Command not found“的响应:
init mongod start
对以下问题的回应:
~: service mongod start
service: This command still works, but it is deprecated. Please use launchctl(8) instead.
service: failed to start the 'mongod' s
mongod --version
mongod: /lib/x86_64-linux-gnu/libcrypto.so.10: version libcrypto.so.10' not found (required by mongod) mongod: /lib/x86_64-linux-gnu/libssl.so.10: versionlibssl.so.10' not found (required by mongod)
当我检查/lib/x86_64-linux-gnu/文件夹时,这些文件已经存在,任何人都可以帮助我
我已经将我的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
我最近在我们的Red Hat企业Linux服务器上安装了mongo 2.6.5版本。一切正常,直到我决定修改/etc/mongod.conf文件。我注意到从2.6版本开始,mongo支持YAML格式的conf文件。(我想进行更改的原因是,我想在mongo实例上启用身份验证)
我更改了我的配置文件,它看起来像下面这样(我只添加了配置的一部分):
# mongod.conf
#where to log
logpath=/var/log/mongodb/mongod.log
logappend=true
# fork and run in background
fork=true
#por
我正在尝试从从MongoDB站点()下载的Zip文件夹中安装。
我正确地配置了日志路径、数据路径,并尝试启动mongod并获得以下依赖项错误。
amran:~$ mongod
mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by mongod)
libcurl.so.4存在于我的机器中
amran:~$ locate libcurl.so.4
/usr/lib/x86_64-linux-gnu/libcurl.so.4
/usr/lib/x86_64
我正在按照此link在Ubuntu 18.04 LTS上安装MongoDB 4.4,但MongoDB服务未运行 $ sudo service mongodb status
Unit mongodb.service could not be found. 在安装过程中使用以下命令 # Install Prerequisites
$ sudo apt-get install libcurl4 openssl liblzma5
# Extract the files from the archive
# Binary located at path: /home/atinesh/Download
我已经配置了MongoDB副本集,下面有3个节点是MongoDB.conf文件,复制集成员不能加入集群。
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
storage:
dbPath: /data/iddi
journal:
enabled: true
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath:
我正在尝试运行以下命令:
mongod --storageEngine wiredTiger --dbpath data --logpath logs/mongo.log
在linux服务器中,但它给出了以下错误
cannot execute binary file: Exec format error
当我尝试用readelf -d查看文件mongod的依赖关系时,它给出了太多的错误:
readelf: Warning: The e_shentsize field in the ELF header is larger than the size of an ELF section head
我正在尝试使用最新的mongodb二进制位,但由于某种原因,它无法加载crypto | ssl库。
ldd bin/mongod
bin/mongod: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by bin/mongod)
bin/mongod: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by bin/mongod)
linux-vds
我尝试在本地服务器上运行MongoDB,并使用mongod命令,但失败了。错误:
mongod --help for help and startup options
Sat Jan 31 13:07:16.392 [initandlisten] MongoDB starting : pid=5127 port=27017 dbpath=/data/db/ 64-bit host=leandrotk
Sat Jan 31 13:07:16.392 [initandlisten] db version v2.4.9
Sat Jan 31 13:07:16.392 [initandlisten]
一个两个碎片的MongoDB数据库经常崩溃,没有内存不足的错误,或者正在被oom杀手杀死。该系统运行在GCEDebian9.4上,带有MongoDB v3.6.5、WiredTiger存储引擎,没有交换(与GCE上的实践一样)。服务器是n1-highmem-4 (4个vCPU,26 GB内存).在服务器上运行的只是mongod,并且没有其他服务。mongos在不同的服务器上。
通常,进程退出/崩溃每天发生一次。如果单神进程被oom-杀手杀死,这可以在日志中看到:
Jun 15 14:45:17 server4 kernel: [1731430.432189] Out of memory: Ki