首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Elasticsearch 监控4

Elasticsearch 监控4

作者头像
franket
发布2022-02-10 20:25:12
发布2022-02-10 20:25:12
2910
举报
文章被收录于专栏:技术杂记技术杂记

创建nginx用户

代码语言:javascript
复制
[root@es_node cert]# useradd nginx 
[root@es_node cert]# grep nginx /etc/passwd
nginx:x:505:505::/home/nginx:/bin/bash
[root@es_node cert]# chown -R nginx.nginx /usr/local/nginx/
[root@es_node cert]# ll 
total 12
-rw------- 1 nginx nginx 1249 Jan  6 19:54 es.crt
-rw------- 1 nginx nginx 1025 Jan  6 19:53 es.csr
-rw------- 1 nginx nginx 1675 Jan  6 19:49 es.key
[root@es_node cert]# 

生成认证密码

代码语言:javascript
复制
[nginx@es_node nginx]$ ll
total 28
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:54 cert
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:46 conf
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:46 html
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:46 include
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:46 logs
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:46 modules
drwxr-xr-x 2 nginx nginx 4096 Jan  6 19:46 sbin
[nginx@es_node nginx]$ mkdir pass
[nginx@es_node nginx]$ cd pass/
[nginx@es_node pass]$ perl -e 'print  crypt(espass,espass)'
esPl/R9yBFjpA[nginx@es_node pass]$ vim es.passwd
[nginx@es_node pass]$ cat es.passwd 
test:esPl/R9yBFjpA
[nginx@es_node pass]$

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 创建nginx用户
  • 生成认证密码
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档