user@ubuntu:~/Downloads$ tree mongodb-linux-i686-2.0.0
mongodb-linux-i686-2.0.0
|-- bin
| |-- bsondump
| |-- mongo
| |-- mongod
| |-- mongodump
| |-- mongoexport
| |-- mongofiles
| |-- mongoimport
| |-- mongorestore
| |-- mongos
| |-- mongosniff
| |-- mongostat
| `-- mongotop
|-- GNU-AGPL-3.0
|-- README
`-- THIRD-PARTY-NOTICES
I need to install MongoDB and above is the expanded folder structure of the MongoDB.
Question:
Where should I store the folder mongodb-linux-i686-2.0.0?
Or Should I copy all files under mongodb-linux-i686-2.0.0/bin to /user/bin/?
I just want to do it in a professional way since I will install more and more application on my machine.
It is quite common to install third-party software in
/usr/localor (less common) in/opt(for example, both Mathematica and Matlab install their binaries in/usr/local./usr/localis, according to the FHS, the “tertiary hierarchy for local data, specific to this host”. Installing your software here ensures that its files will not be overwritten by system updates. So, you should copymongodb-linux-i686-2.0.0in/usr/localand you should add/usr/local/mongodb-linux-i686-2.0.0/binto thePATHenvironment variable.