6、无法执行restart.sh启动脚本
赋予restart.sh脚本可执行权限:
chmod a+x restart.sh
7、编译redis时,提示“cc: error: …/deps/hiredis/libhiredis.a: No such file or directory
cc: error: …/deps/lua/src/liblua.a: No such file or directory”
解决方法:进入redis的redis-3.0.4/deps目录,执行make lua hiredis linenoise
8、nginx编译时出错
解决方法:使用yum安装nginx编译需要用到的软件包:yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
9、登录以后,首页显示不“完整”,部分图表未显示,网页提示“Error while extracting response for type [java.util.List<com.traffic.system.api.domain.SysUserAndRole>] and content type [application/json]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.ArrayList<com.traffic.system.api.domain.SysUserAndRole>
from Object value (token JsonToken.START_OBJECT
); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.util.ArrayList<com.traffic.system.api.domain.SysUserAndRole>
from Object value (token JsonToken.START_OBJECT
) at [Source: (PushbackInputStream); line: 1, column: 1]”错误
原因: mysql的配置文件有问题,后台查询报错后前端提示网页异常
解决方法:在my.cnf的[mysqld]部分,至少存在以下配置
lower_case_table_names=1
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
10、创建redis集群提示[ERR] Sorry, can’t connect to node 192.168.0.21:6379等类似的消息时,需要修改下述文件中的password部分
cp /usr/local/lib/ruby/gems/2.5.0/gems/redis-4.1.2/lib/redis/client.rb /usr/local/lib/ruby/gems/2.5.0/gems/redis-4.1.2/lib/redis/client.rb.bak20230617
vi /usr/local/lib/ruby/gems/2.5.0/gems/redis-4.1.2/lib/redis/client.rb
或者
vi /usr/local/share/gems/gems/redis-4.1.2/lib/redis/client.rb
了解更多内容 关注公众号