上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 问题一: "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 阅读(119) 评论(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 阅读(499) 评论(0) 推荐(0)
摘要: 现象: 登录WordPress,提示“重定向的次数过多” 原因: 可能在http和https之间来回跳转,就出了问题。 解决办法: 修改网站根目录下的wp-config.php文件,在<?php下面加入下面这几行: $_SERVER['HTTPS'] = 'on'; define('FORCE_SS 阅读全文
posted @ 2021-06-16 14:04 John_2011 阅读(1389) 评论(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 阅读(236) 评论(0) 推荐(0)
摘要: 这个问题几年前遇到,现在再次遇到,然而第一反应却没想到是这个问题。 现象: 写的bash脚本,运行时报$'\r': command not found错误。 原因: windows和Linux的换行符不同(windows是\r\n,而Linux是\n)导致的 解决办法: # vi filename 阅读全文
posted @ 2021-06-16 09:44 John_2011 阅读(768) 评论(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 阅读(267) 评论(0) 推荐(0)
摘要: 现象: nginx反向代理vue项目,提示Invalid Host header。 原因: 出于安全考虑,默认检查hostname,如果hostname不是配置内的就不能访问。 解决办法: 添加disableHostCheck: true,跳过检查。 举例: 在vue.config.js中,修改配置 阅读全文
posted @ 2021-06-08 16:18 John_2011 阅读(651) 评论(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 阅读(144) 评论(0) 推荐(0)
摘要: 现象: 1、swagger Base URL地址和下边的不一致; 2、通过swagger调试接口提示网络错误; 3、返回的接口地址是自己电脑的外网IP; 原因: nginx反向代理时配置如下: proxy_set_header Host $remote_addr;proxy_set_header X 阅读全文
posted @ 2021-05-26 10:51 John_2011 阅读(2187) 评论(0) 推荐(0)
摘要: 1、关闭firewalld.service (1)设置开机启用防火墙:systemctl enable firewalld.service (2)设置开机禁用防火墙:systemctl disable firewalld.service (3)启动防火墙:systemctl start firewa 阅读全文
posted @ 2021-05-21 17:42 John_2011 阅读(142) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页