CenterOS 7インストールElasticsearch

443 ワード

1、環境準備
1)CenterOS 7 2)JDK 8 3)Elasticsearch-6.0.0
 
2、elasticsearchユーザーの作成
Elasticsearchではrootユーザーを使用して起動できないため、elasticsearch専用アカウントを作成する必要があります.
#      
[root@localhost ~]# groupadd esgroup

#         
[root@localhost ~]# useradd -g esgroup esuser

#   
[root@localhost ~]# chown -R esuser:esgroup /home/esuser/

#    
[root@localhost ~]# passwd esuser

#    
[root@localhost home]# su - esuser