环境准备
- 需要会点linux基础 (不会的话看一遍就会了)
- CentOS 7 (本文操作系统)
- 使用Xshell或其它软件连接远程服务器进行操作
环境查看
[root@iZwz98goak0taot32597zqZ /]# uname -r
3.10.0-957.21.3.el7.x86_64
系统版本CentOS 7以上
[root@iZwz98goak0taot32597zqZ /]# cat /etc/os-release
NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”
HOME_URL=“https://www.centos.org/”
BUG_REPORT_URL=“https://bugs.centos.org/”CENTOS_MANTISBT_PROJECT=“CentOS-7” CENTOS_MANTISBT_PROJECT_VERSION=“7”
REDHAT_SUPPORT_PRODUCT=“centos” REDHAT_SUPPORT_PRODUCT_VERSION=“7”