随笔分类 -  各类问题

摘要:编译中断。 原因:编译安装nginx的fastdfs插件的头文件没有找到,由于编译nginx时候系统会到/usr/local /include,而编译安装fastdfs-nginx-module时则默认保存在了/usr/include目录。修复:ln -s /usr/include/fast* /u 阅读全文
posted @ 2022-01-26 17:01 John_2011 阅读(681) 评论(0) 推荐(0)
摘要:关于运行kafka-run-class.sh报Could not find or load main class kafka.tools.ConsumerOffsetChecker错误 今天在查询kafka检查消费者位置时运行 ./kafka-run-class.sh kafka.tools.Con 阅读全文
posted @ 2022-01-14 14:35 John_2011 阅读(849) 评论(0) 推荐(2)
摘要:Centos 安装mysql57 运行 yum install mysql-community-server 出现以下错误:1.No match for argument: mysql-community-server2.Error: Unable to find a match: mysql-co 阅读全文
posted @ 2021-12-29 16:35 John_2011 阅读(234) 评论(0) 推荐(0)
摘要:问题: create table: Specified key was too long; max key length is 767 bytes 原因:数据库表采用utf8编码,其中varchar(255)的column进行了唯一键索引,而mysql默认情况下单个列的索引不能超过767位,于是ut 阅读全文
posted @ 2021-12-29 16:32 John_2011 阅读(124) 评论(0) 推荐(0)
摘要:rpm -Uvh mysql-community-*.rpm提示 perl(JSON) is needed by mysql-community-test-5.7.30-1.el7.x86_64 解决办法: yum install perl-JSON 阅读全文
posted @ 2021-10-27 17:23 John_2011 阅读(1439) 评论(0) 推荐(1)
摘要:现象: 执行安装docker镜像命令使提示如下: ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-8 阅读全文
posted @ 2021-09-25 16:22 John_2011 阅读(110) 评论(0) 推荐(0)
摘要:该错误出现原因: 事务大小超过数据库默认大小。 show global variables like '%group_replication_transaction_size_limit%'; 一般大小为141M(150000000),修改为2倍 set global group_replicati 阅读全文
posted @ 2021-08-07 14:54 John_2011 阅读(4565) 评论(0) 推荐(1)
摘要:问题一: "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 阅读(120) 评论(0) 推荐(0)
摘要:现象: 登录WordPress,提示“重定向的次数过多” 原因: 可能在http和https之间来回跳转,就出了问题。 解决办法: 修改网站根目录下的wp-config.php文件,在<?php下面加入下面这几行: $_SERVER['HTTPS'] = 'on'; define('FORCE_SS 阅读全文
posted @ 2021-06-16 14:04 John_2011 阅读(1398) 评论(0) 推荐(0)
摘要:这个问题几年前遇到,现在再次遇到,然而第一反应却没想到是这个问题。 现象: 写的bash脚本,运行时报$'\r': command not found错误。 原因: windows和Linux的换行符不同(windows是\r\n,而Linux是\n)导致的 解决办法: # vi filename 阅读全文
posted @ 2021-06-16 09:44 John_2011 阅读(771) 评论(0) 推荐(0)
摘要:现象: nginx反向代理vue项目,提示Invalid Host header。 原因: 出于安全考虑,默认检查hostname,如果hostname不是配置内的就不能访问。 解决办法: 添加disableHostCheck: true,跳过检查。 举例: 在vue.config.js中,修改配置 阅读全文
posted @ 2021-06-08 16:18 John_2011 阅读(668) 评论(0) 推荐(0)
摘要:现象: docker run 命令在容器内运行一个应用程序,提示 You have to remove (or rename) that container to be able to reuse that name. 原因: 启动的容器已在容器中使用,必须删除或者重命名该容器才能使用。 解决办法: 阅读全文
posted @ 2021-05-12 15:59 John_2011 阅读(1102) 评论(0) 推荐(0)
摘要:配置jdk环境变量时,修改了/etc/profile执行后,发现ls等命令不可用了,也不能重新编辑vi了,执行如下命令即可再次重新编辑/etc/profile,修改正确即可正常使用 export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ 阅读全文
posted @ 2021-05-03 16:19 John_2011 阅读(376) 评论(0) 推荐(0)