ip addr show
cd /etc/sysconfig/
ls
cd network-scripts/
ls
vi ifcfg-ens192
system restart network
systemctl restart network
ping www.baidu.com
systemctl disable firewalld
hostname
hostnamectl set-hostname Centos7Del
hostname
cd /etc/
ls
vi hostname
ls
reboot
hostname
ip addr show
systemctl stop firewalld
2、下载zabbix-agent2
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
#交互式切换到一个常规可用的源,便于后续安装软件。
yum install zabbix-agent2 #提示找不到文件。
yum makecache
yum install zabbix-agent2
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/6.0/rhel/7/x86_64/zabbix-agent2-6.0.41-release1.el7.x86_64.rpm
dnf -ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/6.0/rhel/7/x86_64/zabbix-agent2-6.0.41-release1.el7.x86_64.rpm
#提示安装缺少依赖 再找途径:
cd /etc/yum.repos.d
ls
vi CentOS-Base.repo
rpm -Uvh htt