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.
我在 certian 目录中安装了带有 .tar 的 mongoDB,如果我使用,我只能在该目录中运行 mongo
./mongo
否则,如果我尝试只使用
mongo
终端会告诉我它没有安装。我应该怎么办?
尝试,将以下行添加到 .bashrc
alias mongod='path_to_mongodb/bin/mongod' alias mongo='path_to_mongodb/bin/mongo'