@@ -34,7 +34,7 @@ TDengine can be widely applied to Internet of Things (IoT), Connected Vehicles,
...
@@ -34,7 +34,7 @@ TDengine can be widely applied to Internet of Things (IoT), Connected Vehicles,
# Documentation
# Documentation
For user manual, system design and architecture, engineering blogs, refer to [TDengine Documentation](https://www.taosdata.com/en/documentation/)(中文版请点击[这里](https://www.taosdata.com/cn/documentation20/))
For user manual, system design and architecture, engineering blogs, refer to [TDengine Documentation](https://www.taosdata.com/en/documentation/)(中文版请点击[这里](https://www.taosdata.com/cn/documentation20/))
for details. The documentation from our website can also be downloaded locally from *documentation/tdenginedocs-en* or *documentation/tdenginedocs-cn*.
for details. The documentation from our website can also be downloaded locally from _documentation/tdenginedocs-en_ or _documentation/tdenginedocs-cn_.
# Building
# Building
...
@@ -258,7 +258,9 @@ cmake .. && cmake --build .
...
@@ -258,7 +258,9 @@ cmake .. && cmake --build .
# Installing
# Installing
After building successfully, TDengine can be installed by: (On Windows platform, the following command should be `nmake install`)
## On Linux platform
After building successfully, TDengine can be installed by
```bash
```bash
sudo make install
sudo make install
...
@@ -281,7 +283,7 @@ taos
...
@@ -281,7 +283,7 @@ taos
If TDengine shell connects the server successfully, welcome messages and version info are printed. Otherwise, an error message is shown.
If TDengine shell connects the server successfully, welcome messages and version info are printed. Otherwise, an error message is shown.
## Install TDengine by apt-get
### Install TDengine by apt-get
If you use Debian or Ubuntu system, you can use 'apt-get' command to install TDengine from official repository. Please use following commands to setup:
If you use Debian or Ubuntu system, you can use 'apt-get' command to install TDengine from official repository. Please use following commands to setup:
...
@@ -294,6 +296,40 @@ apt-cache policy tdengine
...
@@ -294,6 +296,40 @@ apt-cache policy tdengine
sudo apt-get install tdengine
sudo apt-get install tdengine
```
```
## On Windows platform
After building successfully, TDengine can be installed by:
```cmd
nmake install
```
## On macOS platform
After building successfully, TDengine can be installed by:
```bash
sudo make install
```
To start the service after installation, config `.plist` file first, in a terminal, use:
If you don't want to run TDengine as a service, you can run it in current shell. For example, to quickly start a TDengine server after building, run the command below in terminal: (We take Linux as an example, command on Windows will be `taosd.exe`)
If you don't want to run TDengine as a service, you can run it in current shell. For example, to quickly start a TDengine server after building, run the command below in terminal: (We take Linux as an example, command on Windows will be `taosd.exe`)
...
@@ -315,13 +351,17 @@ option "-c test/cfg" specifies the system configuration file directory.
...
@@ -315,13 +351,17 @@ option "-c test/cfg" specifies the system configuration file directory.
It is easy to run SQL commands from TDengine shell which is the same as other SQL databases.
It is easy to run SQL commands from TDengine shell which is the same as other SQL databases.
```sql
```sql
createdatabasedb;
CREATEDATABASEdemo;
usedb;
USEdemo;
createtablet(tstimestamp,aint);
CREATETABLEt(tsTIMESTAMP,speedINT);
insertintotvalues('2019-07-15 00:00:00',1);
INSERTINTOtVALUES('2019-07-15 00:00:00',10);
insertintotvalues('2019-07-15 01:00:00',2);
INSERTINTOtVALUES('2019-07-15 01:00:00',20);
select*fromt;
SELECT*FROMt;
dropdatabasedb;
ts|speed|
===================================
19-07-1500:00:00.000|10|
19-07-1501:00:00.000|20|
QueryOK,2row(s)inset(0.001700s)
```
```
# Developing with TDengine
# Developing with TDengine
...
@@ -348,8 +388,8 @@ The TDengine community has also kindly built some of their own connectors! Follo
...
@@ -348,8 +388,8 @@ The TDengine community has also kindly built some of their own connectors! Follo
# How to run the test cases and how to add a new test case
# How to run the test cases and how to add a new test case
TDengine's test framework and all test cases are fully open source.
TDengine's test framework and all test cases are fully open source.
Please refer to [this document](https://github.com/taosdata/TDengine/blob/develop/tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md) for how to run test and develop new test case.
Please refer to [this document](https://github.com/taosdata/TDengine/blob/develop/tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md) for how to run test and develop new test case.