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
评论