01 2021 档案
摘要:〇、前言 之前单机部署了squid代理服务器,现在实现一下高可用。 还有自定义squid的error页面 准备:两台centos7(1C2GB) 三个可用IP,一主一备一虚拟IP(VIP) 一、安装squid(两台) yum install squid -y # 具体配置略 二、安装keepal
阅读全文
摘要:〇、前言 好久没碰数据库了 准备环境: centos7自带的MariaDB,没有的话下面是安装命令 yum install -y mariadb mariadb-server systemctl restart mariadb # 进行数据库初始化(设密码啥的) mysql_secure_insta
阅读全文
摘要:1、设置时区(同步时间前先设置) timedatectl set-timezone Asia/Shanghai 2、安装组件 yum -y install ntp systemctl enable ntpd systemctl start ntpd 3、同步时间 ntpdate -u cn.pool
阅读全文