# 添加用户
useradd esuser
# 新用户密码
passwd nFnEjiAGfpmhhD7L
esuser/nFnEjiAGfpmhhD7L
# 启动 elasticsearch 先分配用户
# 执行新用户修改密码操作,使用root账户
[root@hecs-356640 ~]# passwd esuser
Changing password for user esuser.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[esuser@hecs-356640 bin]$ ./elasticsearch
Exception in thread "main" java.nio.file.AccessDeniedException: /home/soft/elasticsearch-6.8.0/config/jvm.options
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:60)