解決elasticsearch:Exception BindTransportException[Failed to bind to [9300-9400]]
Linux7.4使用elasticsearch2.2.1啟動報錯:
[2018-09-20 23:24:17,887][INFO ][node ] [Paibo] starting ...
Exception in thread "main" BindTransportException[Failed to bind to [9300-9400]]; nested: ChannelException[Failed to bind to: /192.168.0.1:9400]; nested: BindException[Cannot assign requested address];
Likely root cause: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Refer to the log for complete error details.
原因:
配置檔案/.../elasticsearch-2.2.1/config/elasticsearch.yml中
network.host不對
度娘部落格有的說用:0.0.0.0,有的說用127.0.0.1,實操發現:都是騙子。
解法:
改為當前伺服器內網ip即可(實操使用阿里雲伺服器)
另:改為127.0.0.1,報錯解決,但http無法訪問。
相關文章
- 解決nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)NginxAI
- 解決:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.ExceptionthreadAIJavaElasticsearch
- 解決:Failed to load ApplicationContextAIAPPContext
- Exception in thread “main” 終極解決方案ExceptionthreadAI
- 解決nacos報錯 Caused by: io.grpc.netty.shaded.io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: 地址已在使用RPCNettyErrorExceptionAI
- 解決:Failed to download metadata for repo ‘base‘AI
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- bind (ERROR 502): bind(0.0.0.0:8811) failed. Error: Address already in use [98] (埠被佔用)ErrorAI
- 解決 eclipse出現 Address already in use: bindEclipse
- Failed to execute aapt的奇怪解決方法AIAPT
- identity server4 授權成功頁面跳轉時遇到錯誤:Exception: Correlation failed. Unknown location的解決方法IDEServerExceptionAI
- org.hibernate.exception.SQLGrammarException: could not extract ResultSet解決方案ExceptionSQL
- 解決 yum clean all Error rpmdb open failedErrorAI
- 關於Failed to resolve的問題解決AI
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGramHTTPAIExceptionSpringFrameworkJDBCSQL
- 詳解bind
- flutter packages get - pub get failed (1)解決方案FlutterPackageAI
- 解決 Android studio Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refusedAndroid127.0.0.1AI
- INSTALL_FAILED_NO_MATCHING_ABIS終極解決方案AI
- ElasticSearch實戰系列十一: ElasticSearch錯誤問題解決方案Elasticsearch
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- idea系列:解決啟動 failed to load JVM DLL 提示IdeaAIJVM
- IDEA提示failed to load JVM DLL的解決辦法IdeaAIJVM
- Oracle Net Configuration Assistant failed異常的解決方案OracleAI
- Elasticsearch——併發衝突以及解決方案Elasticsearch
- 記錄JSch連線SFTP Exception:Algorithm negotiation fail問題解決JSFTPExceptionGoAI
- win10系統system service exception藍屏怎麼解決Win10Exception
- Unable to save settings: Failed to save settings. Please restart PyCharm解決AIRESTPyCharm
- 解決Spring Boot測試方法Failed to load ApplicationContext問題Spring BootAIAPPContext
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- vscode中Git: host key verification failed的解決辦法VSCodeGitAI
- remount of /system failed: Read-only file system原因及解決REMAI
- 【Bug解決】CentOS-8中“Failed to download metadata for repo ‘AppStreamCentOSAIAPP
- Exception in thread “main“ java.lang.ArrayStoreException解決方案(記錄一下)ExceptionthreadAIJava
- 解決 發生異常: RuntimeError (note: full exception trace is shown but execution is paused at: <module>)ErrorException
- dubbo和spring結合報錯 Invocation of init method failed; nested exception is java.lang.IllegalArgumentExceSpringAIExceptionJava
- 異常解決——Failed to introspect Class [com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration]AIROSGithub
- IDEA啟動時報Failed to create JVM錯誤的解決IdeaAIJVM