![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
没有实践就没有发言权
遇到的问题以及解决办法
the_sky_is_blue
菜鸟的狂欢
展开
-
部署项目到rancher
我们项目中必要使用部署项目到jar,在这里整理一下整体步骤。1、上传jar包到有docker环境的服务器上。2、创建Dockerfile文件FROM openjdk:8-jdk-alpineRUN rm -rf /etc/localtime && echo 'Asia/Shanghai' >/etc/timezoneVOLUME /tmpRUN echo 'Asia/Shanghai' >/etc/timezoneEXPOSE 8888ENTRYPOINT ["j原创 2021-10-23 12:24:40 · 979 阅读 · 0 评论 -
安装rpm或者yum报错
error: rpmdb: BDB0113 Thread/process 5011/139994521003840 failed: BDB1507 Thread died in Berkeley DB libraryerror: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recoveryerror: cannot open Packages index using原创 2021-07-19 17:49:09 · 189 阅读 · 0 评论 -
开放防火墙遇到问题FirewallD is not running
防火墙设置基本步骤:查看防火墙状态service iptables status关闭防火墙service iptables stop开启防火墙service iptables start查看防火墙端口是否开启firewall-cmd --query-port=3306/tcp开放防火墙端口firewall-cmd --add-port=3306/tcp --permanent遇到的问题:此时在开启防火墙端口的时候,出现FirewallD is not running原创 2021-06-29 19:39:29 · 301 阅读 · 1 评论 -
安装erlang,需要source profile出现问题
-bash: HISTSIZE: readonly variable解决办法注释profile内HISTSIZE=1000的行,再次source解决思路:刚开始以为是权限问题,修改了644的权限为777,再次执行还是不可以在网上查找资料,发现有-bash: TIMEOUT: readonly variable的解决办法,没注意中间的TIMEOUT,网上说注释TIMEOUT行,修改后发现不可以3. 发现TIMEOUT 和HISTSIZE中间的区别使用命令查询 echo $HIS原创 2021-06-24 10:34:11 · 743 阅读 · 0 评论 -
找不到符号类
java: 程序包org.springframework.stereotype不存在windowsSetting——Build,Execution,Deployment——Maven——Runner—选择Delegate IDE,选择自己安装的JRE的路径mac :intelliJ IDEA->Preferences->搜索maven ->Runner->Delegate IDE builder/run actions toMeven勾选然后选中自己安装的JRE...原创 2021-06-21 17:49:09 · 106 阅读 · 0 评论 -
集成swagger报错
集成swagger报错 Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration required a single bean, but 15 were found: - modelBuilderPluginRegistry: defined in null - modelPropertyBuilderPluginRegistry: defined in nul原创 2021-06-18 13:51:21 · 143 阅读 · 0 评论 -
新建springboot启动后直接结束
项目现在没有成为一个web项目,项目中并没有相关的tomcat等的服务器 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>...原创 2021-06-18 13:45:24 · 372 阅读 · 0 评论 -
mongodb强制关闭导致报错
# 因为强制关闭导致无法启动的问题:关闭mongodb不能用kill -9关闭,会导致mongodb数据出错,导致无法再次启动。如果出现这个问题。1、可以尝试到mongo安装的db下删除所有的lock(可以启动的概率不大)2、可以尝试下面的操作 ①、到/tmp底下,将mongodb产生的sock备份,删除sock ②、到数据库的data目录下,删除所有的lock ③、将data改名 ④、重新去启动mongodb,启动后会看到生成新的sock文件 将data的名字修改回去,再...原创 2021-06-11 10:42:27 · 517 阅读 · 1 评论 -
能够ping通服务器的地址,但是没有办法访问到端口
把防火墙关闭关闭: systemctl stop firewalld启动: systemctl start firewalld查看所有打开的端口: firewall-cmd --zone=public--list-ports查看当前所有tcp端口:netstat -ntlp开放端口永久生效--permanent:firewall-cmd--zone=public--add-port=80/tcp--permanent参考原文链接:https://blog.csdn.net/q...转载 2020-06-09 14:45:54 · 3567 阅读 · 0 评论 -
GLIBCXX_3.4.15 not found
https://www.cnblogs.com/ct1104/p/3761264.html转载 2020-06-02 14:16:33 · 286 阅读 · 0 评论 -
spring-boot启动和fdfs-client的版本冲突
DEBUG org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter - Application failed to start due to an exceptionorg.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException: Configuration property name 'fdfs.thum原创 2020-05-19 15:10:26 · 749 阅读 · 0 评论 -
spring-boot启动报错
2020-05-19 09:41:19,423 [main] DEBUG org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter - Application failed to start due to an exceptionorg.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.ifl.原创 2020-05-19 09:43:32 · 880 阅读 · 0 评论 -
javax.imageio.IIOException: Can‘t read input file!
给图片添加水印的时候会报错javax.imageio.IIOException: Can't read input file!在网上查询到的资料,说是因为路径中包含.但实际上并不包含。因为是测试,用的是绝对路径在D:前再加一个/就可以了原创 2017-10-10 11:07:54 · 2475 阅读 · 0 评论 -
mysql启动报错Job for mysqld.service failed because the control process exited with error code
安装centos6安装mysql遇到各种问题,最后直接换成centos7安装mysql,一直很顺利,一直到启动mysql的时候,启动不起来,报上面的错误通过这个报错查看了网上的一些解答方式,各种方式试过之后,都没有结果。后来,给/var/lib/mysql添加了权限之后,就能够正常启动了chown -R mysql:mysql /var/lib/mysql-----------------------------------------------------------思路-...原创 2020-06-03 17:30:05 · 30265 阅读 · 3 评论 -
锁表清除session
1、select * from v$locked_object ; 获得 session_ID;--2、select object_name, object_type from dba_objects where object_id =session_ID;--如果只是去删除session,可以省略这一步骤3、selectsid,serial#, machine, prog原创 2017-12-05 15:15:27 · 353 阅读 · 0 评论