https://blog.csdn.net/hunandexingkong/article/details/77284939 ❌
https://www.cnblogs.com/wx1993/p/5187530.html ❌
是因为mac中Application目录不能访问,放Document中就可以了
参考我的启动命令。
./mongod --dbpath ../data/
启动mongodb的shell客户端
./mongo
命令:
show dbs;
use mymongodb
https://blog.csdn.net/wireless_com/article/details/51314346
mac关闭指定端口
先执行如下命令:
lsof -i:端口号会有类似下面的结果:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME WebProces 42624 davidzhang 5u IPv4 0x907152bbf7b2a875 0t0 TCP localhost:64438->localhost:radan-http (ESTABLISHED) WebProces 42624 davidzhang 10u IPv4 0x907152bbf7b64a05 0t0 TCP localhost:64439->localhost:radan-http (ESTABLISHED)然后执行:
kill -9 42624
--------------------- 本文来自 mingz2013 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/mingzznet/article/details/38345875?utm_source=copy