未验证 提交 52ad125f 编写于 作者: S slguan 提交者: GitHub

Merge pull request #242 from ypzhuang/master

update README
...@@ -23,12 +23,27 @@ For user manual, system design and architecture, engineering blogs, refer to [TD ...@@ -23,12 +23,27 @@ For user manual, system design and architecture, engineering blogs, refer to [TD
# Building # Building
At the moment, TDengine only supports building and running on Linux systems. You can choose to [install from packages](https://www.taosdata.com/en/getting-started/#Install-from-Package) or from the source code. This quick guide is for installation from the source only. At the moment, TDengine only supports building and running on Linux systems. You can choose to [install from packages](https://www.taosdata.com/en/getting-started/#Install-from-Package) or from the source code. This quick guide is for installation from the source only.
To build TDengine, use [CMake](https://cmake.org/) 2.8 or higher versions in the project directory: To build TDengine, use [CMake](https://cmake.org/) 2.8 or higher versions in the project directory.
Install CMake for example on Ubuntu:
```
sudo apt-get install -y cmake build-essential
```
Build TDengine:
```cmd ```cmd
mkdir build && cd build mkdir build && cd build
cmake .. && cmake --build . cmake .. && cmake --build .
``` ```
# Installing
After building successfully, TDengine can be installed by:
```cmd
make install
```
Users can find more information about directories installed on the system in the [directory and files](https://www.taosdata.com/en/documentation/administrator/#Directory-and-Files) section. It should be noted that installing from source code does not configure service management for TDengine.
Users can also choose to [install from packages](https://www.taosdata.com/en/getting-started/#Install-from-Package) for it.
# Running # Running
<!-- TDengine uses _/etc/taos/taos.cfg_ as the default configuration file. This behavior can be changed with _-c_ option. For a quick start, we will make directories structured as: <!-- TDengine uses _/etc/taos/taos.cfg_ as the default configuration file. This behavior can be changed with _-c_ option. For a quick start, we will make directories structured as:
...@@ -47,7 +62,7 @@ Then fill the configuration file _test/cfg/taos.cfg_: ...@@ -47,7 +62,7 @@ Then fill the configuration file _test/cfg/taos.cfg_:
echo -e "dataDir $(pwd)/test/data\nlogDir $(pwd)/test/log" > test/cfg/taos.cfg echo -e "dataDir $(pwd)/test/data\nlogDir $(pwd)/test/log" > test/cfg/taos.cfg
​``` --> ​``` -->
To start the TDengine server, run the command below in terminal: To start the TDengine server, run the command below in terminal:
```cmd ```cmd
./build/bin/taosd -c test/cfg ./build/bin/taosd -c test/cfg
``` ```
In another terminal, use the TDengine shell to connect the server: In another terminal, use the TDengine shell to connect the server:
...@@ -55,13 +70,6 @@ In another terminal, use the TDengine shell to connect the server: ...@@ -55,13 +70,6 @@ In another terminal, use the TDengine shell to connect the server:
./build/bin/taos -c test/cfg ./build/bin/taos -c test/cfg
``` ```
# Installing
After building successfully, TDengine can be installed by:
```cmd
make install
```
Users can find more information about directories installed on the system in the [directory and files](https://www.taosdata.com/en/documentation/administrator/#Directory-and-Files) section. It should be noted that installing from source code does not configure service management for TDengine.
Users can also choose to [install from packages](https://www.taosdata.com/en/getting-started/#Install-from-Package) for it.
Start the service in the terminal. Start the service in the terminal.
```cmd ```cmd
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册