K&

redis如果是物理机器想多实例部署那么记得

pidfile

logfile

cluster-config-file

不能一样不然起不来

 

redis5.0以下的玩法,5.0以上都是用cli

[root@fp-web-122 conf]# redis-trib.rb create --replicas 1 ip:7000  ip:7001 ip:7002 ip:7003 ip:7004 ip:7005 ip:7006
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- redis (LoadError)
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/bin/redis-trib.rb:25:in `<main>'

缺少redis库

如果没有gem去这下载Download RubyGems | RubyGems.org | Ruby 社区 Gem 托管

[root@fp-web-122 conf]# gem install redis


Fetching: redis-4.6.0.gem (100%)
ERROR:  Error installing redis:
        redis requires Ruby version >= 2.4.0.

 

就是ruby版本低

安装大于2.4的就行我这边直接在官网用源码编译的默认ruby会放在/usr/local/有需求可以prefix=/dir

 

 

 

配置文件部分

 

配置文件

 

apiVersion: v1
kind: ConfigMap
metadata:
  name: redis
  namespace: redis
  labels:
    app: redis
data:
  redis.conf: |
    port 6379
    cluster-enabled yes
    cluster-require-full-coverage no
    cluster-config-file /data/redis/nodes.conf
    cluster-node-timeout 15000
    appendonly yes
    dir /data/redis

 

 

服务文件

 

apiVersion: v1
kind: Service
metadata:
  name: redis
  namespace: redis
spec:
  clusterIP: None
  ports:
  - port: 6379
    name: redis-client
  - port: 16379
    name: redis
  selector:
    app: redis

 

 

应用文件

 

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: redis
  namespace: redis
  labels:
    app: redis
spec:
  replicas: 3
  selector:
    matchLabels:
      app: redis
  serviceName: redis
  template:
    metadata:
      name: redis
      labels:
        app: redis
    spec:
      containers:
      - name: redis
        image: redis
        imagePullPolicy: IfNotPresent
        command:
        - "redis-server"
        args:
        - "/etc/cluster/redis.conf"
        ports:
        - name: redis-client
          containerPort: 6379
        - name: redis-cluster
          containerPort: 16379
        volumeMounts:
        - name: config-map
          mountPath: /etc/cluster
        - name: data
          mountPath: /data/redis
        resources:
          requests:
            cpu: 0.3
            memory: 200Mi
      - name: busybox
        image: busybox:1.28.4
        imagePullPolicy: IfNotPresent
        command:
        - sleep
        - "3600"
      volumes:
      - name: config-map
        configMap:
          name: redis
          items:
            - key: "redis.conf"
              path: "redis.conf"
  volumeClaimTemplates:
  - metadata:
      name: data
    spec:
      accessModes: ["ReadWriteMany"]
      resources:
        requests:
          storage: 2Gi

 

 

 

初始化部分

 

修改Ubuntu源,执行

[root@ECS1 redis]# kubectl -n redis run -it ubuntu --image=ubuntu --restart=Never /bin/bash
If you don't see a command prompt, try pressing enter.
root@ubuntu:/# 
root@ubuntu:/# cat > /etc/apt/sources.list << EOF
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
> deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
> EOF

 

成功后,原项目要求执行如下命令安装基本的软件环境:

 

root@ubuntu:/# apt-get update
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease [247 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease [109 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 Packages [1558 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/restricted amd64 Packages [16.4 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/multiverse amd64 Packages [26.2 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 Packages [2559 kB]
Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 Packages [1544 kB]
Get:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/universe amd64 Packages [12.7 kB]
Get:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports/main amd64 Packages [10.9 kB]
Get:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/universe amd64 Packages [984 kB]
Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/main amd64 Packages [2051 kB]
Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/multiverse amd64 Packages [8820 B]
Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security/restricted amd64 Packages [15.9 kB]
Fetched 19.4 MB in 1s (13.5 MB/s)                         
Reading package lists... Done
root@ubuntu:/# apt-get install -y vim wget python3.5 python3-pip redis-tools dnsutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-pip : Depends: python3:any (>= 3.4~)
               Recommends: build-essential but it is not going to be installed
               Recommends: python3-dev (>= 3.2) but it is not going to be installed
               Recommends: python3-setuptools but it is not going to be installed
               Recommends: python3-wheel but it is not going to be installed
 python3.5 : Depends: libpython3.5-stdlib (= 3.5.2-2ubuntu0~16.04.13) but it is not going to be installed
 vim : Depends: libpython3.5 (>= 3.5.0~b1) but it is not going to be installed
       Depends: libtinfo5 (>= 6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

找到依赖重新安装

 

root@ubuntu:/# apt-get install -y vim wget python3.5 python3-pip redis-tools dnsutils libpython3.5-stdlib  libpython3.5 libtinfo5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bind9-host ca-certificates dh-python file geoip-database krb5-locales libbind9-140 libdns162 libexpat1 libgeoip1 libgpm2 libgssapi-krb5-2 libicu55
  libidn11 libisc160 libisccc140 libisccfg140 libjemalloc1 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblwres141 libmagic1 libmpdec2
  libncursesw5 libpython3-stdlib libpython3.5-minimal libreadline6 libsqlite3-0 libssl1.0.0 libxml2 mime-support multiarch-support openssl
  python-pip-whl python3 python3-minimal python3-pkg-resources python3-setuptools python3-wheel python3.5-minimal readline-common sgml-base
  vim-common vim-runtime xml-core
Suggested packages:
  libdpkg-perl rblcheck geoip-bin gpm krb5-doc krb5-user python3-doc python3-tk python3-venv python-setuptools-doc python3.5-venv python3.5-doc
  binutils binfmt-support readline-doc ruby-redis sgml-base-doc ctags vim-doc vim-scripts vim-gnome-py2 | vim-gtk-py2 | vim-gtk3-py2
  | vim-athena-py2 | vim-nox-py2 debhelper
Recommended packages:
  build-essential python3-dev
The following packages will be REMOVED:
  ncurses-base
The following NEW packages will be installed:
  bind9-host ca-certificates dh-python dnsutils file geoip-database krb5-locales libbind9-140 libdns162 libexpat1 libgeoip1 libgpm2 libgssapi-krb5-2
  libicu55 libidn11 libisc160 libisccc140 libisccfg140 libjemalloc1 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblwres141 libmagic1
  libmpdec2 libncursesw5 libpython3-stdlib libpython3.5 libpython3.5-minimal libpython3.5-stdlib libreadline6 libsqlite3-0 libssl1.0.0 libtinfo5
  libxml2 mime-support multiarch-support openssl python-pip-whl python3 python3-minimal python3-pip python3-pkg-resources python3-setuptools
  python3-wheel python3.5 python3.5-minimal readline-common redis-tools sgml-base vim vim-common vim-runtime wget xml-core
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  ncurses-base
0 upgraded, 56 newly installed, 1 to remove and 0 not upgraded.
E: Essential packages were removed and -y was used without --allow-remove-essential.不提示删除一些必要的东西,具体看提示删除了啥

 

继续上面的安装

 

root@ubuntu:/# apt-get install -y vim wget python3.5 python3-pip redis-tools dnsutils libpython3.5-stdlib  libpython3.5 libtinfo5 --allow-remove-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bind9-host ca-certificates dh-python file geoip-database krb5-locales libbind9-140 libdns162 libexpat1 libgeoip1 libgpm2 libgssapi-krb5-2 libicu55
  libidn11 libisc160 libisccc140 libisccfg140 libjemalloc1 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblwres141 libmagic1 libmpdec2
  libncursesw5 libpython3-stdlib libpython3.5-minimal libreadline6 libsqlite3-0 libssl1.0.0 libxml2 mime-support multiarch-support openssl
  python-pip-whl python3 python3-minimal python3-pkg-resources python3-setuptools python3-wheel python3.5-minimal readline-common sgml-base
  vim-common vim-runtime xml-core
Suggested packages:
  libdpkg-perl rblcheck geoip-bin gpm krb5-doc krb5-user python3-doc python3-tk python3-venv python-setuptools-doc python3.5-venv python3.5-doc
  binutils binfmt-support readline-doc ruby-redis sgml-base-doc ctags vim-doc vim-scripts vim-gnome-py2 | vim-gtk-py2 | vim-gtk3-py2
  | vim-athena-py2 | vim-nox-py2 debhelper
Recommended packages:
  build-essential python3-dev
The following packages will be REMOVED:
  ncurses-base
The following NEW packages will be installed:
  bind9-host ca-certificates dh-python dnsutils file geoip-database krb5-locales libbind9-140 libdns162 libexpat1 libgeoip1 libgpm2 libgssapi-krb5-2
  libicu55 libidn11 libisc160 libisccc140 libisccfg140 libjemalloc1 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblwres141 libmagic1
  libmpdec2 libncursesw5 libpython3-stdlib libpython3.5 libpython3.5-minimal libpython3.5-stdlib libreadline6 libsqlite3-0 libssl1.0.0 libtinfo5
  libxml2 mime-support multiarch-support openssl python-pip-whl python3 python3-minimal python3-pip python3-pkg-resources python3-setuptools
  python3-wheel python3.5 python3.5-minimal readline-common redis-tools sgml-base vim vim-common vim-runtime wget xml-core
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  ncurses-base
0 upgraded, 56 newly installed, 1 to remove and 0 not upgraded.
Need to get 29.1 MB of archives.
After this operation, 125 MB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.19 [1082 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libpython3.5-minimal amd64 3.5.2-2ubuntu0~16.04.13 [524 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libexpat1 amd64 2.1.0-7ubuntu0.16.04.5 [71.5 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 python3.5-minimal amd64 3.5.2-2ubuntu0~16.04.13 [1597 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 python3-minimal amd64 3.5.1-3 [23.3 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 mime-support all 3.59ubuntu1 [31.0 kB]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libmpdec2 amd64 2.4.2-1 [82.6 kB]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libtinfo5 amd64 6.0+20160213-1ubuntu1 [76.8 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libncursesw5 amd64 6.0+20160213-1ubuntu1 [115 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 readline-common all 6.3-8ubuntu2 [51.4 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libreadline6 amd64 6.3-8ubuntu2 [117 kB]
Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libsqlite3-0 amd64 3.11.0-1ubuntu1.5 [398 kB]
Get:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libpython3.5-stdlib amd64 3.5.2-2ubuntu0~16.04.13 [2135 kB]
Get:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 python3.5 amd64 3.5.2-2ubuntu0~16.04.13 [165 kB]
Get:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libpython3-stdlib amd64 3.5.1-3 [6818 B]
Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 dh-python all 2.20151103ubuntu1.2 [73.9 kB]
Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 python3 amd64 3.5.1-3 [8710 B]
Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 sgml-base all 1.26+nmu4ubuntu1 [12.5 kB]
Get:19 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 multiarch-support amd64 2.23-0ubuntu11.3 [6830 B]
Get:20 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libgpm2 amd64 1.20.4-6.1 [16.5 kB]
Get:21 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libmagic1 amd64 1:5.25-2ubuntu1.4 [216 kB]
Get:22 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 file amd64 1:5.25-2ubuntu1.4 [21.2 kB]
Get:23 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libidn11 amd64 1.32-3ubuntu1.2 [46.5 kB]
Get:24 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 vim-common amd64 2:7.4.1689-3ubuntu1.5 [104 kB]
Get:25 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libgeoip1 amd64 1.6.9-1 [70.1 kB]
Get:26 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libkrb5support0 amd64 1.13.2+dfsg-5ubuntu2.2 [31.2 kB]
Get:27 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libk5crypto3 amd64 1.13.2+dfsg-5ubuntu2.2 [81.2 kB]
Get:28 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 libkeyutils1 amd64 1.5.9-8ubuntu1 [9904 B]
Get:29 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libkrb5-3 amd64 1.13.2+dfsg-5ubuntu2.2 [273 kB]
Get:30 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libgssapi-krb5-2 amd64 1.13.2+dfsg-5ubuntu2.2 [120 kB]
Get:31 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libicu55 amd64 55.1-7ubuntu0.5 [7650 kB]
Get:32 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libxml2 amd64 2.9.3+dfsg1-1ubuntu0.7 [698 kB]
Get:33 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libisc160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [215 kB]
Get:34 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libdns162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [872 kB]
Get:35 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libisccc140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [16.3 kB]
Get:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libisccfg140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [40.5 kB]
Get:37 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libbind9-140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [23.6 kB]
Get:38 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 liblwres141 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [33.9 kB]
Get:39 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 bind9-host amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [38.3 kB]
Get:40 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.19 [492 kB]
Get:41 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 ca-certificates all 20210119~16.04.1 [148 kB]
Get:42 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 dnsutils amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [88.9 kB]
Get:43 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 geoip-database all 20160408-1 [1678 kB]
Get:44 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 krb5-locales all 1.13.2+dfsg-5ubuntu2.2 [13.7 kB]
Get:45 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.5 [299 kB]
Get:46 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 xml-core all 0.13+nmu2 [23.3 kB]
Get:47 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 libpython3.5 amd64 3.5.2-2ubuntu0~16.04.13 [1360 kB]
Get:48 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.6 [1112 kB]
Get:49 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 python3-pip all 8.1.1-2ubuntu0.6 [109 kB]
Get:50 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 python3-pkg-resources all 20.7.0-1 [79.0 kB]
Get:51 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 python3-setuptools all 20.7.0-1 [88.0 kB]
Get:52 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 python3-wheel all 0.29.0-1 [48.1 kB]
Get:53 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 libjemalloc1 amd64 3.6.0-9ubuntu1 [78.9 kB]
Get:54 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 redis-tools amd64 2:3.0.6-1ubuntu0.4 [95.5 kB]
Get:55 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 vim-runtime all 2:7.4.1689-3ubuntu1.5 [5169 kB]
Get:56 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 vim amd64 2:7.4.1689-3ubuntu1.5 [1036 kB]
Fetched 29.1 MB in 2s (14.1 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is an essential package; it should not be removed
(Reading database ... 4127 files and directories currently installed.)
Removing ncurses-base (6.2-0ubuntu2) ...
Selecting previously unselected package libssl1.0.0:amd64.
(Reading database ... 4057 files and directories currently installed.)
Preparing to unpack .../00-libssl1.0.0_1.0.2g-1ubuntu4.19_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.19) ...
Selecting previously unselected package libpython3.5-minimal:amd64.
Preparing to unpack .../01-libpython3.5-minimal_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../02-libexpat1_2.1.0-7ubuntu0.16.04.5_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-7ubuntu0.16.04.5) ...
Selecting previously unselected package python3.5-minimal.
Preparing to unpack .../03-python3.5-minimal_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking python3.5-minimal (3.5.2-2ubuntu0~16.04.13) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../04-python3-minimal_3.5.1-3_amd64.deb ...
Unpacking python3-minimal (3.5.1-3) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../05-mime-support_3.59ubuntu1_all.deb ...
Unpacking mime-support (3.59ubuntu1) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../06-libmpdec2_2.4.2-1_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.2-1) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../07-libtinfo5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libtinfo5:amd64 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package libncursesw5:amd64.
Preparing to unpack .../08-libncursesw5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libncursesw5:amd64 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../09-readline-common_6.3-8ubuntu2_all.deb ...
Unpacking readline-common (6.3-8ubuntu2) ...
Selecting previously unselected package libreadline6:amd64.
Preparing to unpack .../10-libreadline6_6.3-8ubuntu2_amd64.deb ...
Unpacking libreadline6:amd64 (6.3-8ubuntu2) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../11-libsqlite3-0_3.11.0-1ubuntu1.5_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.11.0-1ubuntu1.5) ...
Selecting previously unselected package libpython3.5-stdlib:amd64.
Preparing to unpack .../12-libpython3.5-stdlib_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Selecting previously unselected package python3.5.
Preparing to unpack .../13-python3.5_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking python3.5 (3.5.2-2ubuntu0~16.04.13) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../14-libpython3-stdlib_3.5.1-3_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.5.1-3) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../15-dh-python_2.20151103ubuntu1.2_all.deb ...
Unpacking dh-python (2.20151103ubuntu1.2) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.19) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Setting up libexpat1:amd64 (2.1.0-7ubuntu0.16.04.5) ...
Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.13) ...
Setting up python3-minimal (3.5.1-3) ...
Selecting previously unselected package python3.
(Reading database ... 5074 files and directories currently installed.)
Preparing to unpack .../python3_3.5.1-3_amd64.deb ...
Unpacking python3 (3.5.1-3) ...
Selecting previously unselected package sgml-base.
Preparing to unpack .../sgml-base_1.26+nmu4ubuntu1_all.deb ...
Unpacking sgml-base (1.26+nmu4ubuntu1) ...
Selecting previously unselected package multiarch-support.
Preparing to unpack .../multiarch-support_2.23-0ubuntu11.3_amd64.deb ...
Unpacking multiarch-support (2.23-0ubuntu11.3) ...
Setting up multiarch-support (2.23-0ubuntu11.3) ...
Selecting previously unselected package libgpm2:amd64.
(Reading database ... 5120 files and directories currently installed.)
Preparing to unpack .../00-libgpm2_1.20.4-6.1_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.4-6.1) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../01-libmagic1_1%3a5.25-2ubuntu1.4_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.25-2ubuntu1.4) ...
Selecting previously unselected package file.
Preparing to unpack .../02-file_1%3a5.25-2ubuntu1.4_amd64.deb ...
Unpacking file (1:5.25-2ubuntu1.4) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../03-libidn11_1.32-3ubuntu1.2_amd64.deb ...
Unpacking libidn11:amd64 (1.32-3ubuntu1.2) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../04-vim-common_2%3a7.4.1689-3ubuntu1.5_amd64.deb ...
Unpacking vim-common (2:7.4.1689-3ubuntu1.5) ...
Selecting previously unselected package libgeoip1:amd64.
Preparing to unpack .../05-libgeoip1_1.6.9-1_amd64.deb ...
Unpacking libgeoip1:amd64 (1.6.9-1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../06-libkrb5support0_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../07-libk5crypto3_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../08-libkeyutils1_1.5.9-8ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../09-libkrb5-3_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../10-libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2.2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package libicu55:amd64.
Preparing to unpack .../11-libicu55_55.1-7ubuntu0.5_amd64.deb ...
Unpacking libicu55:amd64 (55.1-7ubuntu0.5) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../12-libxml2_2.9.3+dfsg1-1ubuntu0.7_amd64.deb ...
Unpacking libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.7) ...
Selecting previously unselected package libisc160:amd64.
Preparing to unpack .../13-libisc160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package libdns162:amd64.
Preparing to unpack .../14-libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package libisccc140:amd64.
Preparing to unpack .../15-libisccc140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package libisccfg140:amd64.
Preparing to unpack .../16-libisccfg140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package libbind9-140:amd64.
Preparing to unpack .../17-libbind9-140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package liblwres141:amd64.
Preparing to unpack .../18-liblwres141_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package bind9-host.
Preparing to unpack .../19-bind9-host_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package openssl.
Preparing to unpack .../20-openssl_1.0.2g-1ubuntu4.19_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.19) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../21-ca-certificates_20210119~16.04.1_all.deb ...
Unpacking ca-certificates (20210119~16.04.1) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../22-dnsutils_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ...
Unpacking dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Selecting previously unselected package geoip-database.
Preparing to unpack .../23-geoip-database_20160408-1_all.deb ...
Unpacking geoip-database (20160408-1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../24-krb5-locales_1.13.2+dfsg-5ubuntu2.2_all.deb ...
Unpacking krb5-locales (1.13.2+dfsg-5ubuntu2.2) ...
Selecting previously unselected package wget.
Preparing to unpack .../25-wget_1.17.1-1ubuntu1.5_amd64.deb ...
Unpacking wget (1.17.1-1ubuntu1.5) ...
Selecting previously unselected package xml-core.
Preparing to unpack .../26-xml-core_0.13+nmu2_all.deb ...
Unpacking xml-core (0.13+nmu2) ...
Selecting previously unselected package libpython3.5:amd64.
Preparing to unpack .../27-libpython3.5_3.5.2-2ubuntu0~16.04.13_amd64.deb ...
Unpacking libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../28-python-pip-whl_8.1.1-2ubuntu0.6_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.6) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../29-python3-pip_8.1.1-2ubuntu0.6_all.deb ...
Unpacking python3-pip (8.1.1-2ubuntu0.6) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../30-python3-pkg-resources_20.7.0-1_all.deb ...
Unpacking python3-pkg-resources (20.7.0-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../31-python3-setuptools_20.7.0-1_all.deb ...
Unpacking python3-setuptools (20.7.0-1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../32-python3-wheel_0.29.0-1_all.deb ...
Unpacking python3-wheel (0.29.0-1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../33-libjemalloc1_3.6.0-9ubuntu1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-9ubuntu1) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../34-redis-tools_2%3a3.0.6-1ubuntu0.4_amd64.deb ...
Unpacking redis-tools (2:3.0.6-1ubuntu0.4) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../35-vim-runtime_2%3a7.4.1689-3ubuntu1.5_all.deb ...
Adding 'diversion of /usr/share/vim/vim74/doc/help.txt to /usr/share/vim/vim74/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim74/doc/tags to /usr/share/vim/vim74/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:7.4.1689-3ubuntu1.5) ...
Selecting previously unselected package vim.
Preparing to unpack .../36-vim_2%3a7.4.1689-3ubuntu1.5_amd64.deb ...
Unpacking vim (2:7.4.1689-3ubuntu1.5) ...
Setting up libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Setting up libgpm2:amd64 (1.20.4-6.1) ...
Setting up mime-support (3.59ubuntu1) ...
Setting up libjemalloc1 (3.6.0-9ubuntu1) ...
Setting up libsqlite3-0:amd64 (3.11.0-1ubuntu1.5) ...
Setting up libmagic1:amd64 (1:5.25-2ubuntu1.4) ...
Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up krb5-locales (1.13.2+dfsg-5ubuntu2.2) ...
Setting up file (1:5.25-2ubuntu1.4) ...
Setting up libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up vim-common (2:7.4.1689-3ubuntu1.5) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.2) ...
Setting up redis-tools (2:3.0.6-1ubuntu0.4) ...
Setting up libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libicu55:amd64 (55.1-7ubuntu0.5) ...
Setting up libgeoip1:amd64 (1.6.9-1) ...
Setting up sgml-base (1.26+nmu4ubuntu1) ...
Setting up libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up libmpdec2:amd64 (2.4.2-1) ...
Setting up vim-runtime (2:7.4.1689-3ubuntu1.5) ...
Setting up geoip-database (20160408-1) ...
Setting up openssl (1.0.2g-1ubuntu4.19) ...
Setting up libtinfo5:amd64 (6.0+20160213-1ubuntu1) ...
Setting up readline-common (6.3-8ubuntu2) ...
Setting up libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.7) ...
Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up wget (1.17.1-1ubuntu1.5) ...
Setting up ca-certificates (20210119~16.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2.2) ...
Setting up xml-core (0.13+nmu2) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.6) ...
Setting up libncursesw5:amd64 (6.0+20160213-1ubuntu1) ...
Setting up libreadline6:amd64 (6.3-8ubuntu2) ...
Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up libpython3-stdlib:amd64 (3.5.1-3) ...
Setting up python3.5 (3.5.2-2ubuntu0~16.04.13) ...
Setting up libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.13) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up vim (2:7.4.1689-3ubuntu1.5) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) ...
Setting up python3 (3.5.1-3) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Setting up python3-wheel (0.29.0-1) ...
Setting up python3-pip (8.1.1-2ubuntu0.6) ...
Setting up python3-pkg-resources (20.7.0-1) ...
Setting up dh-python (2.20151103ubuntu1.2) ...
Setting up python3-setuptools (20.7.0-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for ca-certificates (20210119~16.04.1) ...
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...

 

到此环境结束

 

安装初始化集群所需要的工具

 

root@ubuntu:/# pip3 install redis-trib==0.6.2
Collecting redis-trib==0.6.2
  Downloading https://files.pythonhosted.org/packages/40/d9/8bc42e4275a1644ad6eb52534fbb483df848372aa679c4fe113335c31412/redis-trib-0.6.2.tar.gz
Collecting click==6.7 (from redis-trib==0.6.2)
  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
    100% |################################| 71kB 1.0MB/s 
Collecting hiredis==0.2.0 (from redis-trib==0.6.2)
  Downloading https://files.pythonhosted.org/packages/39/a1/e045340316abf2d831a0fc320cb727ebe2e86d2e5c8a6698268dd7ba8331/hiredis-0.2.0-cp35-cp35m-manylinux1_x86_64.whl (47kB)
    100% |################################| 51kB 3.6MB/s 
Collecting retrying==1.3.3 (from redis-trib==0.6.2)
  Downloading https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Collecting six==1.11.0 (from redis-trib==0.6.2)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting Werkzeug==0.14.1 (from redis-trib==0.6.2)
  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
    100% |################################| 327kB 1.3MB/s 
Building wheels for collected packages: redis-trib, retrying
  Running setup.py bdist_wheel for redis-trib ... done
  Stored in directory: /root/.cache/pip/wheels/39/28/c1/07754183b01f56c6c2b5c203fc2ef6e992fb4bfa9310f2c3d3
  Running setup.py bdist_wheel for retrying ... done
  Stored in directory: /root/.cache/pip/wheels/d7/a9/33/acc7b709e2a35caa7d4cae442f6fe6fbf2c43f80823d46460c
Successfully built redis-trib retrying
Installing collected packages: click, hiredis, six, retrying, Werkzeug, redis-trib
Successfully installed Werkzeug-0.14.1 click-6.7 hiredis-0.2.0 redis-trib-0.6.2 retrying-1.3.3 six-1.11.0
You are using pip version 8.1.1, however version 21.1.3 is available.    可以忽略
You should consider upgrading via the 'pip install --upgrade pip' command.

 

开始初始化

 

创建只有Master节点的集群

root@ubuntu:/# redis-trib.py create \
>   `dig +short redis-0.redis.redis.svc.cluster.local`:6379 \
>   `dig +short redis-1.redis.redis.svc.cluster.local`:6379 \
>   `dig +short redis-2.redis.redis.svc.cluster.local`:6379 
Redis-trib 0.6.2 Copyright (c) HunanTV Platform developers
Traceback (most recent call last):
  File "/usr/local/bin/redis-trib.py", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/redistrib/console.py", line 181, in main
    cli()
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 676, in main
    _verify_python3_env()
  File "/usr/local/lib/python3.5/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env
    'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment.  Consult http://click.pocoo.org/python3/for mitigation steps.

This system supports the C.UTF-8 locale which is recommended.
You might be able to resolve your issue by exporting the
following environment variables:

    export LC_ALL=C.UTF-8
    export LANG=C.UTF-8

 

C.utf8=POSIX标准兼容的默认语言环境。只有严格的ASCII字符才是有效的,扩展后允许基本使用UTF-8

en_US.utf8=美式英语UTF-8语言环境。

 

继续主节点初始化

 

root@ubuntu:/# export LC_ALL=C.UTF-8
root@ubuntu:/# export LANG=C.UTF-8
root@ubuntu:/# redis-trib.py create   `dig +short redis-0.redis.redis.svc.cluster.local`:6379   `dig +short redis-1.redis.redis.svc.cluster.local`:6379   `dig +short redis-2.redis.redis.svc.cluster.local`:6379 
Redis-trib 0.6.2 Copyright (c) HunanTV Platform developers
INFO:root:Instance at 10.20.109.54:6379 checked
INFO:root:Instance at 10.20.71.214:6379 checked
INFO:root:Instance at 10.20.109.53:6379 checked
INFO:root:Add 5462 slots to 10.20.109.54:6379
INFO:root:Add 5461 slots to 10.20.71.214:6379
INFO:root:Add 5461 slots to 10.20.109.53:6379

 

其次,为每个Master添加Slave

 

root@ubuntu:/# redis-trib.py replicate \
>   --master-addr `dig +short redis-0.redis.redis.svc.cluster.local`:6379 \
>   --slave-addr `dig +short redis-3.redis.redis.svc.cluster.local`:6379
Redis-trib 0.6.2 Copyright (c) HunanTV Platform developers

INFO:root:Instance at 10.20.109.55:6379 has joined 10.20.109.53:6379; now set replica
INFO:root:Instance at 10.20.109.55:6379 set as replica to a1d55046b4bf31f4a5b3c9e63c489dbcf0ef5c96


root@ubuntu:/# redis-trib.py replicate \
>   --master-addr `dig +short redis-1.redis.redis.svc.cluster.local`:6379 \
>   --slave-addr `dig +short redis-4.redis.redis.svc.cluster.local`:6379
Redis-trib 0.6.2 Copyright (c) HunanTV Platform developers

INFO:root:Instance at 10.20.109.56:6379 has joined 10.20.71.214:6379; now set replica
INFO:root:Instance at 10.20.109.56:6379 set as replica to 8d7ba46567e8465d76a79846f39abb726ab0ec92


root@ubuntu:/# redis-trib.py replicate \
>   --master-addr `dig +short redis-2.redis.redis.svc.cluster.local`:6379 \
>   --slave-addr `dig +short redis-5.redis.redis.svc.cluster.local`:6379
Redis-trib 0.6.2 Copyright (c) HunanTV Platform developers

INFO:root:Instance at 10.20.71.218:6379 has joined 10.20.109.54:6379; now set replica
INFO:root:Instance at 10.20.71.218:6379 set as replica to 51b10f9c984639ca7c7b4dea2e4c4f4e0a533c5c

 

posted on 2021-06-28 20:04  K&  阅读(360)  评论(0)    收藏  举报