tidb architecture - Localized Installation

Installation tidb
Description: This tutorial deployment (not automatically deployed by ansible) does not satisfy the hardware condition
 1 downloads respective packets
   tidb-v2.1.16-linux-amd64 managed version
  2 copies of a response packet to each server
  3 to start the corresponding service
    small Tip: start command will create the appropriate folders in the current path
    pd-server start
    nohup / usr / local / tidb / bin / pd-server -initial-cluster = "http: // host1: 2380" -client-urls = " http: // host1: 2379 "--data -dir = pd --log-file = pd.log & server start
    tikv start
    nohup / usr / local / tidb / bin / tikv-server --pd =" host1: 2379 "--addr =" host2: 27011 "--store = tikv --log-File = tikv.log &
    tidb-Server start
    nohup / usr / local / tidb / bin / tidb-server --store = tikv --path = "host1: 2379" --log-tidb.log & File = 
 4 to access the test
   the default port 4000
   MySQL-uroot--P4000 -h127.0.0.1 for the first time need to Log on
   to create a user
   All privileges ON * * Grant to 'tidb_user' @ '%' IDENTIFIED by 'tidb_user' with the Option Grant.
5 supplement
  1 glibc error to solve
    a view glibc version /lib64/libc.so.6 strings | grep GLIBC_
   2 Add glibc-2.17
     https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz wget
     the tar-2.17.tar.gz -zxvf the glibc
     CD-the glibc 2.17
     mkdir Build
     CD Build
     ../configure --prefix = / usr Profile---enable the Add---disable-ONS --with-headers = / usr / the include --with-binutils = / usr / bin
    the make the make the install &&
    If compilation error occurs try the install for libcap * -Y yum
 2 Add tidb -server
   directly start the appropriate service to any machine in the cluster
 3 Add tikv 
   started directly in the cluster can service any machine corresponding
 4 Server add-pd
  pd-Server need to be added in the form of cluster members

Guess you like

Origin www.cnblogs.com/danhuangpai/p/11806822.html