Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上,mongodb(一个开源的无 sql 数据库)将其输出记录在一个名为 var/log/mongodb.log 的日志文件中
无论如何我可以在终端中查看此日志文件,而无需一遍又一遍地输入“sudo nano”“^X”“sud o nano”“^X”来刷新它?
谢谢好心的陌生人
tail -f /var/log/mongodb.log
-f, --follow[={名称|描述符}] 随着文件的增长输出附加的数据; -f、--follow 和--follow=descriptor 是 相等的
tail(1)