
3.1 关闭防火墙
3.2 关闭SELINUX
3.3 设置主机名
3.4 检查时间和时区
修改时区:
3.5 安装系统依赖包
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
systemctl status NetworkManager.service
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux
setenforce 0
hostnamectl set-hostname light
[root@lightdb ~]# hostnamectl status
Static hostname: linuxtest9774
Icon name: computer-vm
Chassis: vm
Machine ID: c62c42ac1768435494307927eb93a8b0
Boot ID: b1246d8e0d14426eb18eaa23f07bb95f
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-862.11.6.el7.x86_64
Architecture: x86-64
[root@lightdb ~]# timedatectl
Local time: Thu 2021-07-22 10:54:39 CST
Universal time: Thu 2021-07-22 02:54:39 UTC
RTC time: Thu 2021-07-22 02:54:39
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
timedatectl set-timezone Asia/Shanghai
1.需要安装的依赖包列表如下:
readline zlib pam libxml2 libxslt openldap python2 openssl uuid
2.检查当前系统是否安装相关系统依赖包
操作命令格式如下:
rpm -qa |grep -w 依赖包名|grep -v devel
如果安装列表目录存在,则不需要安装此依赖包
示例:
(1)readline包,确保依赖列表如下:
rpm -qa |grep -w readline|grep -v devel
评论