![]() Mongod 3866 mongodb 12u IPv4 33773 0t0 TCP instance-1.c.project_id.internal:27017 (LISTEN) ![]() You should receive an output similar to the one below. Restart MongoDB for the changes to take effect.Ĭonfirm if MongoDB is allowing remote connections using the following command. Open firewall if you have configured any, for the port 27017. Your configuration should look like the one below. To enable remote connections you need to edit the same file and add your internal or private IP to the network interfaces. The final edit should look as below.Īuthorization: enabled Enable Remote Connections Scroll down to the security section #security and uncomment it and enable authorization. Now we can secure MongoDB, configure MongoDB to accept remote connections and also create a new database. └─3739 /usr/bin/mongod -config /etc/nf Configure MongoDB ![]() Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Mon 08:49:02 UTC 7s ago You can view the status using the following command. ![]() Once the installation is completed enable MongoDB to start at system startup. The Focal Fosa repository is in active development and compatible with Jammy Jellyfish.Įcho "deb focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt//mongodb-org-5.0.list ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |