06 2021 档案

摘要:需求: 默认情况下,zabbix获取到的数值大于1000之后自动转换成1k显示,但是有时候我们希望显示实际值。 解决办法:vim /usr/share/zabbix/include/func.inc.php $blackList = ['%', 'ms', 'rpm', 'RPM','个']; #增 阅读全文
posted @ 2021-06-30 18:01 John_2011 阅读(243) 评论(0) 推荐(0) 编辑
摘要:问题一: "this is incompatible with sql_mode=only_full_group_by"错误解决方案 1、首先查看 select @@GLOBAL.sql_mode; 2、临时性修改 set @@GLOBAL.sql_mode='STRICT_TRANS_TABLES 阅读全文
posted @ 2021-06-30 17:47 John_2011 阅读(111) 评论(0) 推荐(0) 编辑
摘要:问题:在使用yum安装时,卡死并且无法Ctrl+c终止,需要将其杀死才能停止。如下图:When using yum to install, it is stuck and cannot be terminated by Ctrl+c. You need to kill it to stop. 解决办 阅读全文
posted @ 2021-06-21 13:33 John_2011 阅读(447) 评论(0) 推荐(0) 编辑
摘要:现象: 登录WordPress,提示“重定向的次数过多” 原因: 可能在http和https之间来回跳转,就出了问题。 解决办法: 修改网站根目录下的wp-config.php文件,在<?php下面加入下面这几行: $_SERVER['HTTPS'] = 'on'; define('FORCE_SS 阅读全文
posted @ 2021-06-16 14:04 John_2011 阅读(1360) 评论(0) 推荐(0) 编辑
摘要:1、mysql连数据库的时候报错: 1251 client does not support authentication protocol requested by server;consider upgrading Mysql client ERROR 1396 (HY000): Operati 阅读全文
posted @ 2021-06-16 10:01 John_2011 阅读(216) 评论(0) 推荐(0) 编辑
摘要:这个问题几年前遇到,现在再次遇到,然而第一反应却没想到是这个问题。 现象: 写的bash脚本,运行时报$'\r': command not found错误。 原因: windows和Linux的换行符不同(windows是\r\n,而Linux是\n)导致的 解决办法: # vi filename 阅读全文
posted @ 2021-06-16 09:44 John_2011 阅读(753) 评论(0) 推荐(0) 编辑
摘要:1、安装ntp yum install -y ntp 2、配置 [root@master ~]# vim /etc/ntp.conf 把配置文件下面四行注释掉: server 0.centos.pool.ntp.org iburst server 1.centos.pool.ntp.org ibur 阅读全文
posted @ 2021-06-09 10:37 John_2011 阅读(256) 评论(0) 推荐(0) 编辑
摘要:现象: nginx反向代理vue项目,提示Invalid Host header。 原因: 出于安全考虑,默认检查hostname,如果hostname不是配置内的就不能访问。 解决办法: 添加disableHostCheck: true,跳过检查。 举例: 在vue.config.js中,修改配置 阅读全文
posted @ 2021-06-08 16:18 John_2011 阅读(589) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash DATE=`date +%Y-%m-%d_%H-%M` Project=shuyun WORKING_PATH=`pwd` echo "#### [$WORKING_PATH]start begin ... #####" SUBDIRS="tomcat8080 tomcat8 阅读全文
posted @ 2021-06-07 15:24 John_2011 阅读(139) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示