background
就是有炫酷的大屏 给领导看的 一直搭建在vps上 但是这东西要传承 直接做虚拟机系统吧
环境准备
centos7的系统
备份源
cp -rp /etc/yum.repos.d/ /etc/yum.repos.d_back
|
下载
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo
|
更新
yum clean all yum makecache
|
关闭防火墙
systemctl stop firewalld systemctl disable firewalld
|
设置自动同步时间
yum -y install ntp ntpdate ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ntpdate ntp.ubuntu.com
|
安装mysql
yum -y install wget wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm rpm -ivh mysql57-community-release-el7-8.noarch.rpm cd /etc/yum.repos.d/ yum -y install mysql-server systemctl start mysqld
|
报密钥错误
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
|
配置mysql
获取mysql临时密码 cat /var/log/mysqld.log|grep password
修改密码策略 set global validate_password_policy=LOW; set global validate_password_length=5;
改root密码 ALTER USER 'root'@'localhost' IDENTIFIED BY 'admin';
允许远程连接 update user set Host='%' where User='root';
刷新权限 flush privileges;
|
安装docker 开机自启
yum install docker systemctl disable docker systemctl enable docker.service
|
https://github.com/05sec/Cardinal/releases
后面就是平台的配置和docker靶机的配置了 没啥好说的