谷粒商城 踩坑记录

谷粒商城 踩坑记录,第1张

rabbitmq 容器方式启动

docker run -d --name rabbitmq -p 5671:5671 -p 5672:5672 -p 4369:4369 -p 25672:25672 -p 15671:15671 -p 15672:15672 rabbitmq:management

zipkin 安装

docker run -d -p 9411:9411 openzipkin/zipkin

修改容器内容

zikipin Terminating due to java.lang.OutOfMemoryError: Java heap space

Docker环境下Java应用的最大内存和堆内存的设置

docker run -d --name user-service -m 512m --env LOG_LEVEL=ERROR  -e "spring.profiles.active=dev"  -p 8090:8090  user-service

Docker环境下Java应用的最大内存和堆内存的设置_shenzhen_zsw的博客-CSDN博客_docker 默认最大内存Docker中设置Memory和CPU限制_独正己身的博客-CSDN博客_docker memoryDocker环境下Java应用的最大内存和堆内存的设置_shenzhen_zsw的博客-CSDN博客_docker 默认最大内存

Spring Cloud Feign 第一次调用超时(Read timed out)的解决办法

springcloud之Feign超时问题(Read timed out executing POST http://***)_Moshow郑锴的博客-CSDN博客

#hystrix的超时时间
hystrix:
    command:
        default:
            execution:
              timeout:
                enabled: true
              isolation:
                    thread:
                        timeoutInMilliseconds: 30000
#ribbon的超时时间
ribbon:
  ReadTimeout: 30000
  ConnectTimeout: 30000
 内网穿透:

哲西信科-续断内网穿透,决明子异地组网,远志远程控制

kubesphere 安装devops报错 创建 pvc报错

ErrorCode: InvalidDiskSize.NotSupported

解决

https://github.com/gardener/gardener-extension-provider-alicloud/issues/4d​​​​​​​d

阿里云申请的pv云盘 最小要申请20G

打包时在WebContent/WEB-INF/文件夹下找不到web.xml文件

Maven打包时报Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war解决方案_享叔的博客-CSDN博客


    
        org.apache.maven.plugins
        maven-war-plugin
        3.0.0
        
            false
        
    

Could not initialize class com.alibaba.csp.sentinel.context.ContextUtil

Could not initialize class com.alibaba.csp.sentinel.context.ContextUtil · Issue #1763 · alibaba/Sentinel · GitHub

 本地都很正常,生产docker不行

最后是因为linux sentinel会在 /root/logs/csp/xxx保存日志,但是没权限,所以修改日志目录

/opt/gulimall/logs/csp/

nacos也存在这个问题

/opt/gulimall/logs/nacos/

三、nacos 客户端日志输出位置修改_HuntFalcon的博客-CSDN博客_nacos错误日志位置

"sh","-c","java  -Dname=AuthServer  -DJM.LOG.PATH=/opt/gulimall/logs/nacos   -DJM.SNAPSHOT.PATH=/opt/gulimall/logs/nacos/snapshot  -Dspring.profiles.active=prod -cp  ./ org.springframework.boot.loader.WarLauncher"
打包admin-vue-app时候,npm run build报错 ​​​​​​​How to fix "ReferenceError: primordials is not defined" in Node.js

sass - How to fix "ReferenceError: primordials is not defined" in Node.js - Stack Overflow

package.json 新增

"scripts": {
  "preinstall": "npx npm-force-resolutions"
},
"resolutions": {
  "graceful-fs": "^4.2.9"
}

Mybatis中出现的Invalid bound statement (not found)问题的解决办法

xml文件没有对应mapper方法

Mybatis中出现的Invalid bound statement (not found)问题的解决办法_下里巴人丶的博客-CSDN博



 

The Bean Validation API is on the classpath but no implementation could be found sass - How to fix "ReferenceError: primordials is not defined" in Node.js - Stack Overflow
 

node-sass 安装失败 “v8::String::Utf8Value

 node-sass 安装失败 “v8::String::Utf8Value_『IT界码仔』的博客-CSDN博客

npm install报错:gyp verb `which` failed Error: not found: python2

npm install报错:gyp verb `which` failed Error: not found: python2_火 烈 鸟的博客-CSDN博客

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/872154.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-13
下一篇 2022-05-13

发表评论

登录后才能评论

评论列表(0条)

保存