0% found this document useful (0 votes)
2 views

Terminal Saved Output

The document contains a series of terminal commands and outputs related to managing MongoDB processes and Docker containers. It shows the user killing a MongoDB process, checking active connections, and attempting to start a MongoDB instance, which fails due to a missing data directory. Additionally, it includes attempts to inspect Docker containers and networks, with some commands resulting in errors due to non-existent objects.

Uploaded by

Tung Thanh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Terminal Saved Output

The document contains a series of terminal commands and outputs related to managing MongoDB processes and Docker containers. It shows the user killing a MongoDB process, checking active connections, and attempting to start a MongoDB instance, which fails due to a missing data directory. Additionally, it includes attempts to inspect Docker containers and networks, with some commands resulting in errors due to non-existent objects.

Uploaded by

Tung Thanh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

Last login: Mon Dec 23 15:42:38 on ttys012

➜ ~ lsof -i :27017

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME


mongod 35538 thanhtung 10u IPv4 0x4bc1e30f43cb71fb 0t0 TCP
localhost:27017 (LISTEN)
mongod 35538 thanhtung 11u IPv6 0x4bc1e318bf53c67b 0t0 TCP
localhost:27017 (LISTEN)
➜ ~ kill -9 35538
➜ ~ lsof -i :27017

➜ ~ lsof -i :27017

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME


com.docke 33656 thanhtung 14u IPv4 0x4bc1e30f43bbf6cb 0t0 TCP
192.168.1.113:53521->55.15.195.35.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 48u IPv4 0x4bc1e30f43cc6b53 0t0 TCP
192.168.1.113:53459->55.15.195.35.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 52u IPv4 0x4bc1e30f435d48eb 0t0 TCP
192.168.1.113:61027->225.163.241.35.bc.googleusercontent.com:27017 (FIN_WAIT_2)
com.docke 33656 thanhtung 75u IPv4 0x4bc1e30f43bc041b 0t0 TCP
192.168.1.113:53612->8.155.34.34.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 96u IPv4 0x4bc1e30f43ccdb0b 0t0 TCP
192.168.1.113:54029->225.163.241.35.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 97u IPv4 0x4bc1e30f43bc5fdb 0t0 TCP
192.168.1.113:56079->8.155.34.34.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 127u IPv4 0x4bc1e30f44a80f93 0t0 TCP
192.168.1.113:53959->225.163.241.35.bc.googleusercontent.com:27017 (FIN_WAIT_2)
com.docke 33656 thanhtung 140u IPv4 0x4bc1e30f43cd71fb 0t0 TCP
192.168.1.113:52079->225.163.241.35.bc.googleusercontent.com:27017 (FIN_WAIT_2)
com.docke 33656 thanhtung 153u IPv4 0x4bc1e30f435d5463 0t0 TCP
192.168.1.113:54083->225.163.241.35.bc.googleusercontent.com:27017 (ESTABLISHED)
➜ ~ lsof -i :27017

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME


com.docke 33656 thanhtung 14u IPv4 0x4bc1e30f43bd1b0b 0t0 TCP
192.168.1.113:51522->8.155.34.34.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 48u IPv4 0x4bc1e30f43cc48eb 0t0 TCP
192.168.1.113:50746->225.163.241.35.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 75u IPv4 0x4bc1e30f43be441b 0t0 TCP
192.168.1.113:50728->225.163.241.35.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 96u IPv4 0x4bc1e30f435f8f93 0t0 TCP
192.168.1.113:51524->8.155.34.34.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 97u IPv4 0x4bc1e30f43cb6683 0t0 TCP
192.168.1.113:49678->55.15.195.35.bc.googleusercontent.com:27017 (ESTABLISHED)
com.docke 33656 thanhtung 116u IPv4 0x4bc1e30f43bcb1fb 0t0 TCP
192.168.1.113:49679->55.15.195.35.bc.googleusercontent.com:27017 (ESTABLISHED)
➜ ~ lsof -i :27017

➜ ~ lsof -i :27017

➜ ~ mongo --username min --password "blocky\"saves\"theworld" --


authenticationDatabase admin --host localhost --port 27017

zsh: command not found: mongo


➜ ~ mongodb --username min --password "blocky\"saves\"theworld" --
authenticationDatabase admin --host localhost --port 27017

zsh: command not found: mongodb


➜ ~ docker inspect mongo-1 | grep "IPAddress"

Error: No such object: mongo-1


➜ ~ docker inspect blocky | grep "IPAddress"

Error: No such object: blocky


➜ ~ docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
607af44cd836 mongodb/mongodb-atlas-local "/usr/local/bin/runn…" 12 minutes
ago Up 12 minutes (healthy) 0.0.0.0:27017->27017/tcp blocky-mongo-1
➜ ~ docker inspect blocky-mongo-1 | grep "IPAddress"

"SecondaryIPAddresses": null,
"IPAddress": "",
"IPAddress": "172.18.0.2",
➜ ~ docker network rm my-network
docker network create my-network

Error response from daemon: network my-network not found


ef1b3cf805df41a744cbbffcf53b0847a36b460dcb70bec804bd855d7ce159bc
➜ ~ mongod --auth --port 27017
{"t":{"$date":"2024-12-23T23:36:52.242+07:00"},"s":"I", "c":"CONTROL",
"id":23285, "ctx":"thread1","msg":"Automatically disabling TLS 1.0, to force-
enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2024-12-23T23:36:52.270+07:00"},"s":"I", "c":"CONTROL",
"id":5945603, "ctx":"thread1","msg":"Multi threading initialized"}
{"t":{"$date":"2024-12-23T23:36:52.272+07:00"},"s":"I", "c":"NETWORK",
"id":4648601, "ctx":"thread1","msg":"Implicit TCP FastOpen unavailable. If TCP
FastOpen is required, set at least one of the related parameters","attr":
{"relatedParameters":
["tcpFastOpenServer","tcpFastOpenClient","tcpFastOpenQueueSize"]}}
{"t":{"$date":"2024-12-23T23:36:52.277+07:00"},"s":"I", "c":"NETWORK",
"id":4915701, "ctx":"thread1","msg":"Initialized wire specification","attr":
{"spec":{"incomingExternalClient":
{"minWireVersion":0,"maxWireVersion":25},"incomingInternalClient":
{"minWireVersion":0,"maxWireVersion":25},"outgoing":
{"minWireVersion":6,"maxWireVersion":25},"isInternalClient":true}}}
{"t":{"$date":"2024-12-23T23:36:52.279+07:00"},"s":"I", "c":"TENANT_M",
"id":7091600, "ctx":"thread1","msg":"Starting
TenantMigrationAccessBlockerRegistry"}
{"t":{"$date":"2024-12-23T23:36:52.279+07:00"},"s":"I", "c":"CONTROL",
"id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":
{"pid":43885,"port":27017,"dbPath":"/data/db","architecture":"64-
bit","host":"Thanhs-Laptop.local"}}
{"t":{"$date":"2024-12-23T23:36:52.279+07:00"},"s":"I", "c":"CONTROL",
"id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":
{"version":"8.0.4","gitVersion":"bc35ab4305d9920d9d0491c1c9ef9b72383d31f9","modules
":[],"allocator":"system","environment":
{"distarch":"aarch64","target_arch":"aarch64"}}}}
{"t":{"$date":"2024-12-23T23:36:52.279+07:00"},"s":"I", "c":"CONTROL",
"id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":
{"name":"Mac OS X","version":"23.2.0"}}}
{"t":{"$date":"2024-12-23T23:36:52.279+07:00"},"s":"I", "c":"CONTROL",
"id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":
{"options":{"net":{"port":27017},"security":{"authorization":"enabled"}}}}
{"t":{"$date":"2024-12-23T23:36:52.281+07:00"},"s":"I", "c":"NETWORK",
"id":5693100, "ctx":"initandlisten","msg":"Asio socket.set_option failed with
std::system_error","attr":{"note":"acceptor TCP fast open","option":
{"level":6,"name":261,"data":"00 04 00 00"},"error":{"what":"set_option: Invalid
argument","message":"Invalid argument","category":"asio.system","value":22}}}
{"t":{"$date":"2024-12-23T23:36:52.284+07:00"},"s":"E", "c":"CONTROL",
"id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen,
terminating","attr":{"error":"NonExistentPath: Data directory /data/db not found.
Create the missing directory or specify another path using (1) the --dbpath command
line option, or (2) by adding the 'storage.dbPath' option in the configuration
file."}}
{"t":{"$date":"2024-12-23T23:36:52.284+07:00"},"s":"I", "c":"REPL",
"id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator
for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"REPL",
"id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"-",
"id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"COMMAND",
"id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"SHARDING",
"id":4784902, "ctx":"initandlisten","msg":"Shutting down the
WaitForMajorityService"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"NETWORK",
"id":8314100, "ctx":"initandlisten","msg":"Shutdown: Closing listener sockets"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"NETWORK",
"id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection
pool"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":4784906, "ctx":"initandlisten","msg":"Shutting down the
FlowControlTicketholder"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"-",
"id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket
acquisitions."}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"NETWORK",
"id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"SHARDING",
"id":4784921, "ctx":"initandlisten","msg":"Shutting down the
MigrationUtilExecutor"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"ASIO",
"id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding
egress activity."}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"NETWORK",
"id":20562, "ctx":"initandlisten","msg":"Shutdown: Closing open transport
sessions"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"NETWORK",
"id":4784923, "ctx":"initandlisten","msg":"Shutting down the ASIO transport
SessionManager"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired
Pre-images Remover"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"-",
"id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":8423404, "ctx":"initandlisten","msg":"mongod shutdown complete","attr":
{"Summary of time elapsed":{"Statistics":{"Enter terminal shutdown":"0 ms","Step
down the replication coordinator for shutdown":"1 ms","Time spent in quiesce
mode":"0 ms","Shut down FLE Crud subsystem":"0 ms","Shut down MirrorMaestro":"0
ms","Shut down WaitForMajorityService":"0 ms","Shut down the global connection
pool":"0 ms","Shut down the flow control ticket holder":"0 ms","Shut down the
replica set monitor":"0 ms","Shut down the migration util executor":"0 ms","Shut
down the transport layer":"0 ms","Shut down the TTL monitor":"0 ms","Shut down
expired pre-images and documents removers":"0 ms","Wait for the oplog cap
maintainer thread to stop":"0 ms","Shut down full-time data capture":"0 ms","Shut
down online certificate status protocol manager":"0 ms","shutdownTask total elapsed
time":"1 ms"}}}}
{"t":{"$date":"2024-12-23T23:36:52.285+07:00"},"s":"I", "c":"CONTROL",
"id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
➜ ~ mongod --auth --port 27017
{"t":{"$date":"2024-12-24T08:58:24.090+07:00"},"s":"I", "c":"CONTROL",
"id":23285, "ctx":"thread1","msg":"Automatically disabling TLS 1.0, to force-
enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2024-12-24T08:58:24.114+07:00"},"s":"I", "c":"CONTROL",
"id":5945603, "ctx":"thread1","msg":"Multi threading initialized"}
{"t":{"$date":"2024-12-24T08:58:24.115+07:00"},"s":"I", "c":"NETWORK",
"id":4648601, "ctx":"thread1","msg":"Implicit TCP FastOpen unavailable. If TCP
FastOpen is required, set at least one of the related parameters","attr":
{"relatedParameters":
["tcpFastOpenServer","tcpFastOpenClient","tcpFastOpenQueueSize"]}}
{"t":{"$date":"2024-12-24T08:58:24.118+07:00"},"s":"I", "c":"NETWORK",
"id":4915701, "ctx":"thread1","msg":"Initialized wire specification","attr":
{"spec":{"incomingExternalClient":
{"minWireVersion":0,"maxWireVersion":25},"incomingInternalClient":
{"minWireVersion":0,"maxWireVersion":25},"outgoing":
{"minWireVersion":6,"maxWireVersion":25},"isInternalClient":true}}}
{"t":{"$date":"2024-12-24T08:58:24.119+07:00"},"s":"I", "c":"TENANT_M",
"id":7091600, "ctx":"thread1","msg":"Starting
TenantMigrationAccessBlockerRegistry"}
{"t":{"$date":"2024-12-24T08:58:24.119+07:00"},"s":"I", "c":"CONTROL",
"id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":
{"pid":44289,"port":27017,"dbPath":"/data/db","architecture":"64-
bit","host":"Thanhs-Laptop.local"}}
{"t":{"$date":"2024-12-24T08:58:24.119+07:00"},"s":"I", "c":"CONTROL",
"id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":
{"version":"8.0.4","gitVersion":"bc35ab4305d9920d9d0491c1c9ef9b72383d31f9","modules
":[],"allocator":"system","environment":
{"distarch":"aarch64","target_arch":"aarch64"}}}}
{"t":{"$date":"2024-12-24T08:58:24.119+07:00"},"s":"I", "c":"CONTROL",
"id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":
{"name":"Mac OS X","version":"23.2.0"}}}
{"t":{"$date":"2024-12-24T08:58:24.119+07:00"},"s":"I", "c":"CONTROL",
"id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":
{"options":{"net":{"port":27017},"security":{"authorization":"enabled"}}}}
{"t":{"$date":"2024-12-24T08:58:24.120+07:00"},"s":"I", "c":"NETWORK",
"id":5693100, "ctx":"initandlisten","msg":"Asio socket.set_option failed with
std::system_error","attr":{"note":"acceptor TCP fast open","option":
{"level":6,"name":261,"data":"00 04 00 00"},"error":{"what":"set_option: Invalid
argument","message":"Invalid argument","category":"asio.system","value":22}}}
{"t":{"$date":"2024-12-24T08:58:24.121+07:00"},"s":"E", "c":"CONTROL",
"id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen,
terminating","attr":{"error":"NonExistentPath: Data directory /data/db not found.
Create the missing directory or specify another path using (1) the --dbpath command
line option, or (2) by adding the 'storage.dbPath' option in the configuration
file."}}
{"t":{"$date":"2024-12-24T08:58:24.121+07:00"},"s":"I", "c":"REPL",
"id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator
for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"REPL",
"id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"-",
"id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"COMMAND",
"id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"SHARDING",
"id":4784902, "ctx":"initandlisten","msg":"Shutting down the
WaitForMajorityService"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"NETWORK",
"id":8314100, "ctx":"initandlisten","msg":"Shutdown: Closing listener sockets"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"NETWORK",
"id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection
pool"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"CONTROL",
"id":4784906, "ctx":"initandlisten","msg":"Shutting down the
FlowControlTicketholder"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"-",
"id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket
acquisitions."}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"NETWORK",
"id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"SHARDING",
"id":4784921, "ctx":"initandlisten","msg":"Shutting down the
MigrationUtilExecutor"}
{"t":{"$date":"2024-12-24T08:58:24.122+07:00"},"s":"I", "c":"ASIO",
"id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding
egress activity."}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"NETWORK",
"id":20562, "ctx":"initandlisten","msg":"Shutdown: Closing open transport
sessions"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"NETWORK",
"id":4784923, "ctx":"initandlisten","msg":"Shutting down the ASIO transport
SessionManager"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"CONTROL",
"id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"CONTROL",
"id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired
Pre-images Remover"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"CONTROL",
"id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"-",
"id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"CONTROL",
"id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"CONTROL",
"id":8423404, "ctx":"initandlisten","msg":"mongod shutdown complete","attr":
{"Summary of time elapsed":{"Statistics":{"Enter terminal shutdown":"0 ms","Step
down the replication coordinator for shutdown":"1 ms","Time spent in quiesce
mode":"0 ms","Shut down FLE Crud subsystem":"0 ms","Shut down MirrorMaestro":"0
ms","Shut down WaitForMajorityService":"0 ms","Shut down the global connection
pool":"0 ms","Shut down the flow control ticket holder":"0 ms","Shut down the
replica set monitor":"0 ms","Shut down the migration util executor":"0 ms","Shut
down the transport layer":"1 ms","Shut down the TTL monitor":"0 ms","Shut down
expired pre-images and documents removers":"0 ms","Wait for the oplog cap
maintainer thread to stop":"0 ms","Shut down full-time data capture":"0 ms","Shut
down online certificate status protocol manager":"0 ms","shutdownTask total elapsed
time":"2 ms"}}}}
{"t":{"$date":"2024-12-24T08:58:24.123+07:00"},"s":"I", "c":"CONTROL",
"id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
➜ ~ cd /etc
➜ /etc cd local
cd: no such file or directory: local
➜ /etc ls
afpovertcp.cfg ntp_opendirectory.conf
aliases openldap
aliases.db pam.d
apache2 passwd
asl paths
asl.conf paths.d
auto_home periodic
auto_master pf.anchors
autofs.conf pf.conf
bashrc pf.os
bashrc_Apple_Terminal postfix
com.apple.screensharing.agent.launchd postgres-reg.ini
csh.cshrc ppp
csh.login profile
csh.logout protocols
cups racoon
defaults rc.common
find.codes rc.netboot
ftpusers resolv.conf
gettytab rmtab
group rpc
hosts rtadvd.conf
hosts.equiv security
irbrc services
kern_loader.conf shells
krb5.keytab snmp
localtime ssh
locate.rc ssl
mail.rc sudo_lecture
man.conf sudoers
manpaths sudoers.d
manpaths.d syslog.conf
master.passwd ttys
mullvad-vpn uucp
networks vanta.conf
newsyslog.conf wfs
newsyslog.d xtab
nfs.conf zprofile
notify.conf zshrc
ntp.conf zshrc_Apple_Terminal
➜ /etc whereis mongod
mongod: /opt/homebrew/bin/mongod
➜ /etc cd /opt/homebrew
➜ homebrew git:(stable) ls
CHANGELOG.md Frameworks completions manpages var
CONTRIBUTING.md LICENSE.txt docs opt
Caskroom Library etc package
Cellar README.md include sbin
Dockerfile bin lib share
➜ homebrew git:(stable) cd etc
➜ etc git:(stable) ls
bash_completion.d gnupg [email protected] pkcs11.conf.example
ca-certificates gnutls openssl@3 redis-sentinel.conf
fonts mongod.conf paths redis.conf
gitconfig openldap pkcs11 unbound
➜ etc git:(stable) vim mongod.conf

systemLog:
destination: file
path: /opt/homebrew/var/log/mongodb/mongo.log
logAppend: true
storage:
dbPath: /opt/homebrew/var/mongodb
net:
bindIp: 127.0.0.1, ::1
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"mongod.conf" 9L, 185B

You might also like