linux
文章平均质量分 60
wmy_0707
这个作者很懒,什么都没留下…
展开
-
Linux字符集正常,但是Springboot打包jar后new File取不到中文路径,启动日志乱码
问题点线上某次服务器器重启后,导致jar包启动的日志乱码,添加 -Dfile.encoding=utf-8 后日志输出正常,但是存在new File 取不到中文路径的情况。file.exists()返回false;排查思路解决日志乱码问题启动脚本中 java -jar命令添加-Dfile.encoding = utf-8 解决日志乱码的问题,但是中文路径依旧取不到文件,应该不是该问题导致。判断还是系统层面编码问题。linux系统编码排查查看linux系统的编码是UTF8编码,文件的编码也是ut原创 2021-01-09 13:54:42 · 1090 阅读 · 1 评论 -
2020-08-25
近期遇到的线上问题总结1、redis异常 Redis is configured to save RDB smapshots,but is currently not able to persist on disk. Commands that may modify the data set are disabled.Please reids logs for details about the error解决方案 :将stop-writes-on-bgsave-error设置为no1..原创 2020-08-25 10:33:48 · 193 阅读 · 0 评论 -
linux open files修改
永久解决办法(需重启后生效):(* 表示用户 需要重启 reboot)# vim /etc/security/limits.conf * soft nofile 65535 * hard nofile 65535# vim /etc/security/limits.d/90-nproc.conf * soft nproc 65535 记录一下另外一个采坑...原创 2018-12-05 14:01:41 · 7227 阅读 · 2 评论