Elasticsearch issues
Elasticsearch startup errorjava.nio.file.AccessDeniedException: /opt/analysis/elasticsearch/
config/jvm.options
Solution
- problem causes
因为elasticsearh需要以非root的用户启动,有时启动会出现权限不够的情况
- Solution
Enter the following command in the terminal (execute as root)chown -R user elasticsearc
- user: The user created to start es, the creation method is as follows
- useradd user Create user user
- passwd testuser set a password for the created user testuser