一、和redis一起使用會造成netty啟動沖突問題,所以需要在***Application入口文件中添加方法:
@PostConstruct
public void init() {
// see Netty4Utils.setAvailableProcessors()
System.setProperty("es.set.netty.runtime.available.processors", "false");
}
二、NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{V4jtTT-tQQqULCNjSNSfgg}{192.168.116.128}{192.168.116.128:9300}]
解決方法:
更換和你的spring-boot-starter-data-elasticsearch對應的elasticsearch版本。
三、OpenJDK 64-Bit Server VM warning: $ Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
解決方法:
將jvm.options文件里的內(nèi)容修改為:
-XX:+UseConcMarkSweepGC 改為 -XX:+UseG1GC
四、刪除用戶
刪除用戶前需要把該用戶的進程kill掉
pkill 或 kill -9 <pid>
例:刪除用戶user
userdel user
例:刪除用戶 user,同時刪除他的工作目錄
userdel –r user
以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。