刚为debian jessie编译了mongodb,并且有很大的源文件。
~/tmp$ du -h ./mongodb-src-r3.0.5 | grep G
1,8G ./mongodb-src-r3.0.5/build/linux2/normal/mongo/s
1,9G ./mongodb-src-r3.0.5/build/linux2/normal/mongo/db/storage
1,3G ./mongodb-src-r3.0.5/build/linux2/normal/mongo/db/exec
1,5G ./mongodb-src-r3.0.5/build/linux2/normal/mongo/db/query
1,3G ./mongodb-src-r3.0.5/build/linux2/normal/mongo/db/repl
8,9G ./mongodb-src-r3.0.5/build/linux2/normal/mongo/db
19G ./mongodb-src-r3.0.5/build/linux2/normal/mongo
19G ./mongodb-src-r3.0.5/build/linux2/normal
19G ./mongodb-src-r3.0.5/build/linux2
19G ./mongodb-src-r3.0.5/build
21G ./mongodb-src-r3.0.5另外,编译的单神文件有一个大小为400 mongod的文件。在喘息deb版本中,它的大小约为20兆b。
正常吗?
发布于 2015-09-10 11:44:37
我刚删除了构建文件夹,mongo看起来很有效。我认为一旦创建了可执行文件,它就不会使用构建文件夹内容.
发布于 2017-01-20 23:31:09
该文件被删除(从文件中清除调试符号&区段和重新定位信息)。试试这个:
strip -sg mongod对我来说,把mongob从442.8Mb转到33.6Mb。
https://stackoverflow.com/questions/31761851
复制相似问题