
Linux
linux
scluis
越枯燥越有趣
展开
-
Linux没有root权限使用apt安装软件(源码安装)
Linux源码方式安装软件原创 2022-12-10 19:02:52 · 2200 阅读 · 1 评论 -
Docker中的Oracle无法启动sqlplus(Error 6 initializing SQL*Plus,You may need to set ORACLE_HOME 错误解决)
错误复现进入docker的oracle容器docker exec -it oracle11g bash启动sqlplussqlplus /nolog此时报错Error 6 initializing SQL*PlusSP2-0667: Message file sp1<lang>.msb not foundSP2-0750: You may need to set ORACLE_HOME to your Oracle software directory解决在oracle原创 2022-01-07 14:54:57 · 4824 阅读 · 0 评论 -
Docker启动报错unable to configure the Docker daemon with file daemon.json:cannot unmarshal s…[]错误解决
服务器重启后,发现Docker启动不起来了[root@iZ2ze9d5m6vjfbqzb49i5qZ ~]# systemctl start dockerJob for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.按照提示,使用systemctl statu原创 2022-01-06 17:58:02 · 2807 阅读 · 0 评论 -
The temporary upload location [/tmp/tomcat.676427832.80/work/Tomcat/localhost/ROOT] is not valid错误解决
前言今天用到了项目的图片上传,发现之前好好的图片上传,今天突然传不上去了,记录一下解决过程。问题图片传不上去后,查看了一下日志报错,报错信息如下:org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/tmp/tomca原创 2021-03-31 17:01:17 · 923 阅读 · 0 评论 -
Could not initialize class sun.awt.X11GraphicsEnvironment,java.awt.HeadlessException解决办法
前言最近甲方突然提出了一个新需求,web端登录的时候,在用户输入密码错误过多的情况下,需要显示验证码,并输入验证码进行登录,感觉不是很难,从网上随便找了个Java生成验证码的类,并自己加了一些显示和隐藏的逻辑后,功能完成了,在Windows上也使用正常,但是部署到Linux上的时候出现了问题问题一开始部署到Linux服务器上之后,验证码显示不出来,于是测试了一下生成验证码的接口,果然报错了:报错信息如下:HTTP Status 500 - Handler processing failed; n原创 2020-12-22 15:13:53 · 11575 阅读 · 0 评论 -
Linux服务器上重启tomcat
Linux服务器上重启tomcat最近项目需要重新部署到本地服务器上,涉及到重启tomcat,写下来记录一下首先,进入Tomcat下的bin目录;执行脚本关闭tomcat( ./shutdown.sh);查看tomcat是否已经关闭成功(ps -ef|grep tomcat);可以看到,我的tomcat还在1526端口跑着,需要手动杀死tomcat进程杀死tomcat进程(sudo kill -9 1526);再次查看tomcat进程是否已经被杀死了;可以看到,我的tomcat进程已经原创 2020-08-11 20:20:05 · 863 阅读 · 0 评论