ekhaliyan Archive

Mongodb Instance is failed to get started on Debian – with error : {“error”:{“code”:9001,”codeName”:”SocketException”,”errmsg”:”Cannot assign requested address”}}}

Mongodb 5.0 is is getting started with sudo systemctl start mongod.service on Debian 10 . Issue Below error is being raised while starting the mongodb instance 5.0 on Linux/Debian – :{"error":{"code":9001,"codeName":"SocketException","errmsg":"Cannot assign requested address"}}} Root …

Content of mongod.service file for mongod service for Red Hat Enterprise Linux or Cent OS

Please find the content of mongod.service file which needs to be created for starting mongod service.   Description=MongoDB Database Server Documentation=https://docs.mongodb.org/manual After=network-online.target Wants=network-online.target User=mongod Group=mongod Environment=”OPTIONS=-f /etc/mongod.conf” EnvironmentFile=-/etc/sysconfig/mongod ExecStart=/usr/bin/mongod $OPTIONS ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb ExecStartPre=/usr/bin/chown mongod:mongod …