解決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無法訪問。
相關文章
- java.lang.Exception: Socket bind failed: [730048]JavaExceptionAI
- 解決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
- Initialization of bean failed; nested exception is java.lang.StackOverflowErrorBeanAIExceptionJavaError
- pyenv BUILD FAILED解決方法UIAI
- Exception in thread “main” 終極解決方案ExceptionthreadAI
- 解決:Failed to load ApplicationContextAIAPPContext
- Failed to execute aapt的奇怪解決方法AIAPT
- CRS啟動報錯Failed 3 to bind listening endpointAI
- n [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoAIExceptionRPC
- 詳解bind
- ElasticSearch實戰系列十一: ElasticSearch錯誤問題解決方案Elasticsearch
- 解決:Failed to download metadata for repo ‘base‘AI
- 解決Xmanager-AIX XDMCP Connection failedAI
- org.hibernate.exception.SQLGrammarException: could not extract ResultSet解決方案ExceptionSQL
- identity server4 授權成功頁面跳轉時遇到錯誤:Exception: Correlation failed. Unknown location的解決方法IDEServerExceptionAI
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- 解決 yum clean all Error rpmdb open failedErrorAI
- flutter packages get - pub get failed (1)解決方案FlutterPackageAI
- 解決ssh的"Write failed: Broken pipe"問題AI
- [IOS]解決Failed to start Instruments daemon for ‘iOS’ on iPhoneiOSAIiPhone
- Failed to install *.apk on device null解決辦法AIAPKdevNull
- Redhat 下 ASM oracleasm deletedisk -failed 的解決方法RedhatASMOracledeleteAI
- Elasticsearch——併發衝突以及解決方案Elasticsearch
- 解決org.hibernate.exception.GenericJDBCException: Cannot open connectionExceptionJDBC
- bind (ERROR 502): bind(0.0.0.0:8811) failed. Error: Address already in use [98] (埠被佔用)ErrorAI
- INSTALL_FAILED_NO_MATCHING_ABIS錯誤解決AI
- Apache無法啟動解決 the requested operation has failedApacheAI
- Ping:Transmit Failed, Error Code 65問題解決MITAIError
- ORA-09817: Write to audit file failed 的解決AI
- socket write failed(24) _Netbackup的問題解決AI
- 解決 eclipse出現 Address already in use: bindEclipse
- Address already in use: JVM_Bind:80 解決方案JVM
- win10系統system service exception藍屏怎麼解決Win10Exception
- unknown software exception應用程式錯誤的解決辦法Exception
- oracle dbca報Exception in thread main 問題解決一例OracleExceptionthreadAI
- INSTALL_FAILED_NO_MATCHING_ABIS終極解決方案AI
- Gentoo startx出現Failed to load module問題解決AI