解決:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
Linux7.4 使用elasticsearch2.2.1,啟動遇到:
[root@ncx bin]# Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
原因:
出於系統安全考慮的設定 ,不允許root賬號啟動
解決:
建立一個新使用者,用於啟動elasticsearch
實操:
1)建立新使用者es
useradd es
2)賦予es使用者elasticsearch目錄許可權
chown -R es .../elasticsearch
3)切換至使用者es
su es
4)啟動elasticsearch
相關文章
- Exception in thread “main” 終極解決方案ExceptionthreadAI
- oracle dbca報Exception in thread main 問題解決一例OracleExceptionthreadAI
- oracle dbca報Exception in thread mainOracleExceptionthreadAI
- Exception in thread "main" java.lang.UnsupportedClassVersionError:ExceptionthreadAIJavaError
- Exception in thread "main" java.lang.NoClassDefFoundErrorExceptionthreadAIJavaError
- Exception in thread “main“ java.lang.ArrayStoreException解決方案(記錄一下)ExceptionthreadAIJava
- Exception in thread "main" java.lang.NullPointerException: Cannot invokeExceptionthreadAIJavaNull
- Java報錯:Exception in thread "main" java.lang.UnsupportedClassVersionErrorJavaExceptionthreadAIError
- Exception in thread "main" java.lang.ClassCastException: $Proxy13ExceptionthreadAIJavaAST
- jmeter報錯“Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]“JMeterExceptionthreadAI
- Exception in thread "main" java.lang.NoClassDefFoundError錯誤資訊(轉帖)ExceptionthreadAIJavaError
- Appcrawler 執行報錯 Exception in thread "main" java.lang.NullPointerExceptionAPPExceptionthreadAIJavaNull
- PostgreSQL DBA(117) - pgAdmin(Don't do this: Don't use serial)SQL
- mac osx Forbidden You don't have permission to access / on this server解決方法MacORBServer
- Exception in thread "main" org.apache.hadoop.security.AccessControlException: Permission deniedUseExceptionthreadAIApacheHadoop
- Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnecExceptionthreadAIJavaErrorApacheHTTP
- Oracle 11g 安裝RAC時報錯'Exception in thread "main" java.lang'OracleExceptionthreadAIJava
- Exception in thread "main" java.lang.UnsatisfiedLinkError: i386/libawt.soExceptionthreadAIJavaError
- PostgreSQL DBA(113) - pgAdmin(Don't do this:Don't use char(n))SQL
- PostgreSQL DBA(109) - pgAdmin(Don't do this:Don't use BETWEEN)SQL
- 解決elasticsearch:Exception BindTransportException[Failed to bind to [9300-9400]]ElasticsearchExceptionAI
- PostgreSQL DBA(108) - pgAdmin(Don't do this:Don't use upper names)SQL
- Exception in thread "main" ,設定Oracle9i,10g環境變數ExceptionthreadAIOracle變數
- PostgreSQL DBA(115) - pgAdmin(Don't do this:Don't use varchar(n) by default)SQL
- PostgreSQL DBA(116) - pgAdmin(Don't do this:Don't use money&serial)SQL
- PostgreSQL DBA(111) - pgAdmin(Don't do this:Don't use CURRENT_TIME)SQL
- PostgreSQL DBA(112) - pgAdmin(Don't do this:Don't use timestamptz(0))SQL
- You don't know CSSCSS
- PostgreSQL DBA(110) - pgAdmin(Don't do this: Don't use timestamp without tz)SQL
- myeclipse執行tomcat報錯Exception in thread "main" java.lang.OutOfMemoryError: PermGen space...EclipseTomcatExceptionthreadAIJavaError
- You don't know css(2)CSS
- Don't let me think 筆記筆記
- go run main.go undefined? golang main包那點事AIUndefinedGolang
- Don't overlook STATSPACK in Oracle 10gOracle 10g
- 為何在JBoss中釋出Message-Driven Bean總出Exception in thread "main" javax.naming.NamBeanExceptionthreadAIJava
- 網站提示:You Don’t Have Permission To Access網站
- don't cry(original) - guns and rosesROS
- 【原】MyEclipse8.5整合Tomcat7時啟動錯誤:Exception in thread “main” java.lang.NoClassDefFoundErrorEclipseTomcatExceptionthreadAIJavaError