本节要讨论的是cmake的两个命令: option 和 configure_file option 选项,让你可以根据选项值进行条件编译. configure_file 配置文件,让你可以在代码文件中使用CMake中定义的的变量 * option Provides an option that the user can optionally select. option 提供一个用户可以任选的选项.语法如下 option(<option_variable> "help string
1. 安装 下载并安装,注意安装方式为custom,路径自定义(d:\chengxu\mongodb),安装成功后在mongodb文件夹下新建data文件夹(内新建db文件夹)和logs文件夹(内新建mongodb.log文件) 2. 服务端连接 cmd窗口输入“d:\chengxu\mongodb\bin\mongod.exe --dbpath d:\chengxu\mongodb\data\db”.回车之后出现“waiting for connenctions on port 27017”即