Complete the code to set the bind IP address in the MongoDB configuration.
net:
bindIp: [1]The default bind IP for MongoDB is "127.0.0.1", which means it listens only on localhost for security.
Complete the command to restart MongoDB after changing the bind IP.
sudo systemctl [1] mongodAfter changing the bind IP, you must restart the MongoDB service to apply changes.
Fix the error in the bind IP configuration line to allow connections only from localhost.
net:
bindIp: [1]"127.0.0.1" is the correct IPv4 loopback address for localhost. "localhost" as a string is invalid here.
Fill both blanks to configure MongoDB to bind to localhost and a specific IP address.
net: bindIp: [1],[2]
Binding to both "127.0.0.1" and a specific LAN IP allows local and network connections.
Fill all three blanks to create a MongoDB configuration snippet that binds to localhost, disables authorization, and sets the port to 27017.
net: bindIp: [1] security: authorization: [2] keyFile: [3]
Binding to localhost restricts connections, disabling authorization turns off access control, and keyFile is null when authorization is disabled.