TDengine a variety of installation and uninstallation package

TDengine open source version provides a deb, rpm, tar.gz three installation packages, the user can select the appropriate installation package for your operating environment. Deb ubuntu which support systems, rpm centos support system, tar.gz package Both systems support.

deb packages to install and uninstall

First, install

1. deb be downloaded from the official website of the installation package, such tdengine-1.6.1.5.deb;
2. tdengine-1.6.1.5.deb into the directory where the installation package performs the following installation command:

 1plum@ubuntu:~/git/taosv16$ sudo dpkg -i tdengine-1.6.1.5.deb 
 2Selecting previously unselected package tdengine.
 3(Reading database ... 193536 files and directories currently installed.)
 4Preparing to unpack tdengine-1.6.1.5.deb ...
 5Unpacking tdengine (1.6.1.5) ...
 6Setting up tdengine (1.6.1.5) ...
 7Start to install TDEngine...
 8Created symlink from /etc/systemd/system/multi-user.target.wants/taosd.service to /etc/systemd/system/taosd.service.
 9TDengine is installed successfully!
10To configure TDengine : edit /etc/taos/taos.cfg
11To start TDengine     : sudo systemctl start taosd
12To access TDengine    : use taos in shell
13TDengine is installed successfully!

Second, unloading carrier

Uninstall command as follows:  

1plum@ubuntu:~/git/tdengine/debs$ sudo dpkg -r tdengine
2(Reading database ... 193718 files and directories currently installed.)
3Removing tdengine (1.6.1.5) ...
4TDEngine is removed successfully!
5plum@ubuntu:~/git/tdengine/debs$ 

Install and uninstall the rpm package

First, install

1. Download rpm obtained from the official website of the installation package, such tdengine-1.6.1.5-3.el7.x86_64.rpm;
2. tdengine-1.6.1.5-3.el7.x86_64.rpm into the installation package directory, execute the following installation command:

 1[root@bogon x86_64]# rpm -iv tdengine-1.6.1.5-3.el7.x86_64.rpm 
 2Preparing packages...
 3tdengine-1.6.1.5-3.el7.x86_64
 4Start to install TDEngine...
 5Created symlink from /etc/systemd/system/multi-user.target.wants/taosd.service to /etc/systemd/system/taosd.service.
 6TDengine is installed successfully!
 7To configure TDengine : edit /etc/taos/taos.cfg
 8To start TDengine     : sudo systemctl start taosd
 9To access TDengine    : use taos in shell
10TDengine is installed successfully!

Second, unloading carrier

Uninstall command as follows:  

1[root@bogon x86_64]# rpm -e tdengine
2TDEngine is removed successfully!

Tar.gz package to install and uninstall

First, install

1. Download tar.gz obtained from the official website installation package, such as Linux-1.6.1.5--Taos 2019-08-08-11-02.tar.gz;
2. proceeds to taos-1.6.1.5-linux-2019-08 -08-11-02.tar.gz installation package directory, after first extracting files, enter the subdirectory where the execution of install.sh installation script:

 1plum@ubuntu:~/git/tdengine/release$ sudo tar -xzvf taos-1.6.1.5-linux-2019-08-08-11-02.tar.gz
 2plum@ubuntu:~/git/tdengine/release$ ll
 3total 3796
 4drwxr-xr-x  3 root root    4096 Aug  9 14:20 ./
 5drwxrwxr-x 11 plum plum    4096 Aug  8 11:03 ../
 6drwxr-xr-x  5 root root    4096 Aug  8 11:03 taos-1.6.1.5-linux-2019-08-08-11-02/
 7-rw-r--r--  1 root root 3871844 Aug  8 11:03 taos-1.6.1.5-linux-2019-08-08-11-02.tar.gz
 8plum@ubuntu:~/git/tdengine/release$ cd taos-1.6.1.5-linux-2019-08-08-11-02/
 9plum@ubuntu:~/git/tdengine/release/taos-1.6.1.5-linux-2019-08-08-11-02$ ll
10total 2640
11drwxr-xr-x 5 root root    4096 Aug  8 11:03 ./
12drwxr-xr-x 3 root root    4096 Aug  9 14:20 ../
13drwxr-xr-x 5 root root    4096 Aug  8 11:03 connector/
14drwxr-xr-x 2 root root    4096 Aug  8 11:03 driver/
15drwxr-xr-x 8 root root    4096 Aug  8 11:03 examples/
16-rwxr-xr-x 1 root root      87 Aug  8 11:03 install_client.sh*
17-rwxr-xr-x 1 root root   13095 Aug  8 11:03 install.sh*
18-rw-r--r-- 1 root root    6253 Aug  8 11:03 release_note
19-rw-r--r-- 1 root root 2651954 Aug  8 11:03 taos.tar.gz
20plum@ubuntu:~/git/tdengine/release/taos-1.6.1.5-linux-2019-08-08-11-02$ sudo ./install.sh
21Start to install TDEngine...
22Created symlink from /etc/systemd/system/multi-user.target.wants/taosd.service to /etc/systemd/system/taosd.service.
23TDengine is installed successfully!
24To configure TDengine : edit /etc/taos/taos.cfg
25To start TDengine     : sudo systemctl start taosd
26To access TDengine    : use taos in shell
27TDengine is installed successfully!

Second, unloading carrier

Uninstall command as follows:  

1plum@ubuntu:~/git/tdengine/release/taos-1.6.1.5-linux-2019-08-08-11-02$ rmtaos 
2TDEngine is removed successfully!

Installation Directory Description

After TDengine successfully installed, the main installation directory is / usr / local / taos, directory as follows:

 1plum@ubuntu:/usr/local/taos$ cd /usr/local/taos
 2plum@ubuntu:/usr/local/taos$ ll
 3total 36
 4drwxr-xr-x  9 root root 4096 Aug  9 14:33 ./
 5drwxr-xr-x 13 root root 4096 Aug  9 14:33 ../
 6drwxr-xr-x  2 root root 4096 Aug  9 14:33 bin/
 7drwxr-xr-x  2 root root 4096 Aug  9 14:33 cfg/
 8drwxr-xr-x  5 root root 4096 Aug  9 14:33 connector/
 9lrwxrwxrwx  1 root root   13 Aug  9 14:33 data -> /var/lib/taos/
10drwxr-xr-x  2 root root 4096 Aug  9 14:33 driver/
11drwxr-xr-x  8 root root 4096 Aug  9 14:33 examples/
12drwxr-xr-x  2 root root 4096 Aug  9 14:33 include/
13drwxr-xr-x  2 root root 4096 Aug  9 14:33 init.d/
14lrwxrwxrwx  1 root root   13 Aug  9 14:33 log -> /var/log/taos/

Automatically generated configuration file directory, database directory, log directory.
The default configuration file directory: /etc/taos/taos.cfg, soft links to /usr/local/taos/cfg/taos.cfg;
database default directory: / var / lib / taos, soft link to / usr / local / taos / data;
log default directory: / var / log / taos, soft link to / usr / local / Taos / log;
/ usr / local / Taos / executable files in the bin directory, will be soft link to / usr / bin directory;
/ usr / local / taos / DLL file in the driver directory, will be a soft link to the next / usr / lib directory;
the header file / usr / local / taos in the / include directory will be soft link to the / usr / include directory;

Precautions

TDengine offers a variety of installation package, it is preferred not to use tar.gz installation package or rpm and deb simultaneously mounted on a package system. Otherwise it will affect each other and cause problems during use.

For the deb package is installed, if the installation directory is accidentally deleted manually part, appear to uninstall, or reinstall not succeed. In this case, clear installation information tdengine package, run the following command:

1plum@ubuntu:~/git/tdengine/$ sudo rm -f /var/lib/dpkg/info/tdengine* 

And then reinstall it.

For the rpm package installation, if the installation directory is accidentally deleted manually part, appear to uninstall, or reinstall not succeed. In this case, clear installation information tdengine package, run the following command:

1[root@bogon x86_64]# rpm -e --noscripts tdengine

And then reinstall it.

At present, the number of TDengine Star on GitHub has more than 10000, Fork number more than 2600, click on the "read the original" welcome developers to build and TDengine together!

发布了6 篇原创文章 · 获赞 1 · 访问量 1791

Guess you like

Origin blog.csdn.net/taos_data/article/details/101443855