编译后生成的文件
-rwxr-xr-x. 1 root root 766M 8月 3 16:37 mongo
-rwxr-xr-x. 1 root root 1.9G 8月 3 16:44 mongod
-rwxr-xr-x. 1 root root 1002M 8月 3 16:44 mongos
-rwxr-xr-x. 1 root root 7.6K 8月 3 16:52 install_compass
-rwxr-xr-x. 1 root root 766M 8月 3 16:37 mongo
-rwxr-xr-x. 1 root root 1.9G 8月 3 16:44 mongod
-rwxr-xr-x. 1 root root 1002M 8月 3 16:44 mongos
-rwxr-xr-x. 1 root root 7.6K 8月 3 16:52 install_compass
自答
使用strip后,恢复正常大小
编译的时候是不是也可以通过指定参数,生成后就不用执行strip