![]() Obviously replace it with your IP address. Number of files is 256, should be at least 1000 Sat Aug 24 09:06:44.360 ** WARNING: soft rlimits too low. Sat Aug 24 09:07:14.657 BackgroundJob starting: ConnectBG Sat Aug 24 09:07:14.556 versionArrayTest passed Warning: bind_ip of 0.0.0.0 is unnecessary listens on all ips by defaultĪll output going to: /usr/local/var/log/mongodb/mongo.logĪnd then just try: $ mongo -host 192.168.43.2 -verbose Please kill MongoDB and run this (note the -v): $ mongod -bind_ip 0.0.0.0 -v Just so we have all the information, can you paste the output of ifconfig please?īy default, MongoDB should listen on all interfaces, you shouldn't need to change the configuration, however, the Homebrew setup seems to override this (/usr/local/etc/nf): # Only accept local connections I suspect you probably just didn't get the config for bind correct? I just tested this on my Mac with Homebrew, works fine if you change the bind address. If the machines are in the same network (both has the same network addresses - 192.168.7.X assuming that netmask is 24 bits. If your second machine is in different subnet you will not be able to reach it using private address (rather public address of your gateway). # Append logs to /usr/local/var/log/mongodb/mongo.log This could be related to the fact that 192.168.7.1 address is private one. ![]() Number of files is 256, should be at least 1000įile nf # Store data in /usr/local/var/mongodb instead of the default /data/db Inet6 XXXX:XXXX:XXXX: %en1 prefixlen 64 scopeid 0x5 Inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 This works after I have made the changes as you suggested. This should be simple but have no clue now. Have tried modifying the nf by commenting bind_ip or by changing the ip address from 127.0.0.1 to 0.0.0.0 but no luck. But when I type the ip address of the local machine instead of 127.0.0.1 mongo -host 192.168.1.100 -verbose If I type mongo on shell, it gets connected to test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |