zoukankan      html  css  js  c++  java
  • TiDB学习

    官网 https://www.pingcap.com/index-zh

    [admin@localhost tidb]$ ping 10.10.80.110
    PING 10.10.80.110 (10.10.80.110) 56(84) bytes of data.
    64 bytes from 10.10.80.110: icmp_seq=1 ttl=64 time=0.260 ms
    64 bytes from 10.10.80.110: icmp_seq=2 ttl=64 time=0.223 ms
    64 bytes from 10.10.80.110: icmp_seq=3 ttl=64 time=0.232 ms
    ^C
    --- 10.10.80.110 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2000ms
    rtt min/avg/max/mdev = 0.223/0.238/0.260/0.020 ms
    [admin@localhost tidb]$ su
    密码:
    [root@localhost tidb]# ll
    总用量 485696
    -rwxrwxrwx  1 root  root        391 8月   8 10:18 1.txt
    -rwxrwxrwx  1 admin admin       391 8月   8 10:18 1.txt~
    -rwxrwxrwx. 1 root  root    3397531 8月   6 14:10 goyacc
    -rwxrwxrwx. 1 root  root   12825692 8月   6 14:10 pd-ctl
    -rw-r--r--  1 root  root        957 8月   9 09:35 pd.log
    -rwxrwxrwx. 1 root  root   12282442 8月   6 14:10 pd-recover
    -rwxrwxrwx. 1 root  root   27258031 8月   6 14:10 pd-server
    -rwxrwxrwx. 1 root  root   11882863 8月   6 14:10 pd-tso-bench
    -rwxrwxrwx  1 root  root        206 8月   9 09:28 start.sh
    -rwxrwxrwx  1 root  root        206 8月   8 11:49 start.sh~
    -rwxrwxrwx. 1 root  root   38055862 8月   6 14:10 tidb-server
    -rwxrwxrwx. 1 root  root  182228888 8月   6 14:10 tikv-ctl
    -rwxrwxrwx. 1 root  root  209385552 8月   6 14:10 tikv-server
    [root@localhost tidb]# rm pd.log
    rm:是否删除普通文件 "pd.log"?y
    [root@localhost tidb]# ./pd-server --name=pd3 --data-dir=pd3 --client-urls="http://10.10.80.101:2379"  --peer-urls="http://10.10.80.101:2380" --join="http://10.10.80.110:2379" --log-file=pd.log&
    [1] 3660
    [root@localhost tidb]# ps -e |grep pd-server
    [1]+  退出 1                ./pd-server --name=pd3 --data-dir=pd3 --client-urls="http://10.10.80.101:2379" --peer-urls="http://10.10.80.101:2380" --join="http://10.10.80.110:2379" --log-file=pd.log
    [root@localhost tidb]# ps -e |grep pd-server[root@localhost tidb]# ./pd-server --name=pd3 --data-dir=pd3 --client-urls="http://10.10.80.101:2379"  --peer-urls="http://10.10.80.101:2380" --join="http://10.10.80.110:2379" --log-file=pd.log
    [root@localhost tidb]# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.10.80.101  netmask 255.255.255.0  broadcast 10.10.80.255
            inet6 fe80::ce3a:baf0:b734:349b  prefixlen 64  scopeid 0x20<link>
            inet6 fe80::5f73:4e5c:8421:caac  prefixlen 64  scopeid 0x20<link>
            ether 52:54:00:e4:1b:cc  txqueuelen 1000  (Ethernet)
            RX packets 378  bytes 103638 (101.2 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 176  bytes 19161 (18.7 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1  (Local Loopback)
            RX packets 72  bytes 6248 (6.1 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 72  bytes 6248 (6.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
            ether 52:54:00:47:3c:72  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    [root@localhost tidb]# ./pd-server --name=pd3 --data-dir=pd3 --client-urls="http://10.10.80.101:2379"  --peer-urls="http://10.10.80.101:2380" --log-file=pd.log^C

    [root@localhost tidb]./pd-server --name=pd3 --data-dir=pd3 --client-urls="http://10.10.80.101:2379"  --peer-urls="http://10.10.80.101:2380" --join="http://10.10.80.110:2379" --log-file=pd.log
    ^C

    [root@localhost tidb]ps -e |grep pd-server

    [root@localhost tidb]# ./pd-server --name=pd3 --data-dir=pd3 --client-urls="http://10.10.80.101:2379"  --peer-urls="http://10.10.80.101:2380" --join="http://10.10.80.110:2379" --log-file=pd.log&
    [1] 3748
    [root@localhost tidb]# ps -e |grep pd-server

            3748 pts/0    00:00:00 pd-server

  • 相关阅读:
    SQL未能排它地锁定数据库以执行该操作解决
    SQL日志文件丢失,只有MDF恢复
    ASP.Net2.0使用Log4Net(一)
    ASP.NET使用Memcached高缓存实例(初级教程)
    ASP.Net2.0使用Log4Net(二)
    Windows Server 2003域控制器的建立
    什么是SIP?
    [转].NET破解体验 ildasm.exe的使用
    Memcached深度分析(转载)
    X509证书帮助类
  • 原文地址:https://www.cnblogs.com/miaoer/p/7286638.html
Copyright © 2011-2022 走看看