Download Ubuntu 18.04 LTS from the Windows store

  • Setting a User Name

  • Set the password

  • Su Has the permission to log in to root

    Authentication failure

    Setting the root password

  • sudo passwd

    Enter the password set in step 2 to set the root password

  • Enter the ubuntu18.04 LTS

  • In the source

    1. The backupsudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
    2. Clear (vi edit command line input – delete from current line to trailing line):.,$d
    3. Change the source IP address
  • update

    1. sudo apt-get update
    2. sudo apt-get upgrade
  • Mysql installation

    1. sudo apt-get install mysql-server
    2. sudo apt-get install mysql-client
  • Setting mysql encoding

    1. vi /etc/mysql/mysql.conf.d/mysqld.cnf
    2. The new configuration
  • Install redis

    1. The installationsudo apt-get install redis-server
    2. configurationvi /etc/redis/redis.conf
    3. Start theredis-server /etc/redis/redis.conf

1. Deb USTC source https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse # deb - SRC https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse 2. Ali source deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverseCopy the code


[client] default-character-set = utf8mb4 [mysql] default-character-set = utf8mb4 [mysqld] character-set-client-handshake  = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ciCopy the code