"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" < x64 | x86 >
cmake .. -G"NMake Makefiles"
nmake
```
你也可以从开始菜单中找到"Visual Studio <2019|2017>"菜单项,根据你的系统选择"x64 Native Tools Command Prompt for VS <2019|2017>"或"x86 Native Tools Command Prompt for VS <2019|2017>",打开命令行窗口,执行:
```bash
mkdir debug &&cd debug
cmake .. -G"NMake Makefiles"
nmake
```
### Mac OS X 系统
安装 Xcode 命令行工具和 cmake. 在 Catalina 和 Big Sur 操作系统上,需要安装 XCode 11.4+ 版本。
TDengine is an open-sourced big data platform under [GNU AGPL v3.0](http://www.gnu.org/licenses/agpl-3.0.html), designed and optimized for the Internet of Things (IoT), Connected Cars, Industrial IoT, and IT Infrastructure and Application Monitoring. Besides the 10x faster time-series database, it provides caching, stream computing, message queuing and other functionalities to reduce the complexity and cost of development and operation.
PACKAGE=TDengine-server-$VERSION-Linux-x64.tar.gz TARBITRATORPKG=TDengine-arbitrator-$VERSION-Linux-x64.tar.gz DIR=TDengine-server-$VERSIONDIR2=TDengine-arbitrator-$VERSIONVERSION=$VERSION docker-compose up -d
PACKAGE=TDengine-server-$VERSION-Linux-x64.tar.gz TARBITRATORPKG=TDengine-arbitrator-$VERSION-Linux-x64.tar.gz DIR=TDengine-server-$VERSIONDIR2=TDengine-arbitrator-$VERSIONVERSION=$VERSIONDATADIR=$DOCKER_DIRdocker-compose up -d
fi
if[$NUM_OF_NODES-eq 3 ];then
PACKAGE=TDengine-server-$VERSION-Linux-x64.tar.gz TARBITRATORPKG=TDengine-arbitrator-$VERSION-Linux-x64.tar.gz DIR=TDengine-server-$VERSIONDIR2=TDengine-arbitrator-$VERSIONVERSION=$VERSION docker-compose -f docker-compose.yml -f node3.yml up -d
PACKAGE=TDengine-server-$VERSION-Linux-x64.tar.gz TARBITRATORPKG=TDengine-arbitrator-$VERSION-Linux-x64.tar.gz DIR=TDengine-server-$VERSIONDIR2=TDengine-arbitrator-$VERSIONVERSION=$VERSIONDATADIR=$DOCKER_DIR docker-compose -f docker-compose.yml -f node3.yml up -d