一、和redis一起使用會(huì)造成netty啟動(dòng)沖突問(wèn)題,所以需要在***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對(duì)應(yīng)的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
四、刪除用戶
刪除用戶前需要把該用戶的進(jìn)程kill掉
pkill 或 kill -9 <pid>
例:刪除用戶user
userdel user
例:刪除用戶 user,同時(shí)刪除他的工作目錄
userdel –r user
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。