Common commands based on Linux system (unfinished, continuously updated...)

1. Download file instruction
(1) wget
example: download mysql database compression package

[root@iZjknh12ghi052Z ~]# wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz

(2) Unzip
tar -zxvf

[root@iZjknh12ghi052Z ~]# tar -zxvf mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz

(3) Move the decompressed file to the specified folder
Move to the /usr/local/mysql folder, provided that there is no mysql folder

[root@iZjknh12ghi052Z ~]# mv mysql-5.7.24-linux-glibc2.12-x86_64 /usr/local/mysql

(4) Create a folder

[root@iZjknh12ghi052Z ~]# mkdir /usr/local/mysql/data

(5) Delete the folder,
rm -rf

Guess you like

Origin blog.csdn.net/Wangdiankun/article/details/106601815