MySQL数据库分库备份

#!/bin/bash #Date:2022-03-28 #Function:backup database PATH="/path/mysql/bin:$PATH" dbpath=/dbdata/backup myuser=root mypass=123 mycmd="mysql -u$myuser -p$mypass" mydump="mysqldump -u$myuser -p$mypass -B --master-data=2 --single-transaction" [ ! -d "$dbpath"...

358 0 0

Cacti安装默认账户无法登陆解决办法

安装最新版cacti-1.2.19碰到默认账户密码admin无法登陆问题。查看nginx错误日志后,发现session目录没权限。[root@localhost ~]# tailf /var/log/nginx/cacti_error.log 2022/03/07 17:58:15 [error] 958#958: *20 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/opt/remi/php74/lib/php/session/sess_jfsrms23i3qi1m...

387 0 0

Grafana8.3.1 Zabbix数据源丢失查询字段解决办法

Grafana升级到8.3.1后发现Zabbix数据源丢失查询字段,解决办法是升级Zabbix插件。[root@Zabbix-4 ~]# grafana-cli plugins install alexanderzobnin-zabbix-app ✔ Downloaded alexanderzobnin-zabbix-app v4.2.5 zip successfully Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessar...

422 0 0

FileZilla Server 0.9升级至1.1

注意:新版1.1数据不再保存于FileZilla Server.xml。安装新版会自动将数据和配置转换到新文件中。一、FileZilla Server 0.91.默认安装路径:C:\Program Files (x86)\FileZilla Server2.数据保存于(配置信息,账户信息等):FileZilla Server.xml二、FileZilla Server 1.11.默认安装路径:C:\Program Files\FileZilla Server2.数据保存路径(配置信息,账户信息等):C:\Windows\System32\config\systemprofile\AppD...

358 5 0

CentOS7使用chrony同步时间

最近发现ntp同步时间,NTP synchronized一直是no,时间总是跑偏。而CentOS7默认已经使用chrony替代ntp来同步时间;chrony可以更快更准确地同步系统时钟。所以换成chrony来同步时间。[root@Zabbix-4 ~]# yum install chrony [root@Zabbix-4 ~]# systemctl start chronyd [root@Zabbix-4 ~]# systemctl enable chronyd [root@Zabbix-4 ~]# timedatectl Local time: Wed 2021-12-08...

269 0 0