ELK elasticsearch設定密碼訪問

2022-02-03 22:09:56 字數 3105 閱讀 6090

1.需要在配置檔案中開啟x-pack驗證, 修改config目錄下面的elasticsearch.yml檔案,在裡面新增如下內容,並重啟.

xpack.security.enabled: true

xpack.license.self_generated.type: basic

xpack.security.transport.ssl.enabled:

true

bin/elasticsearch-setup-passwords interactive

initiating the setup of passwords for

reserved users elastic,kibana,logstash_system,beats_system.

you will be prompted to enter passwords

asthe process progresses.

please confirm that you would like to

continue [y/n]y

enter password

for[elastic]:

passwords must be at least [

6] characters long

try again.

enter password

for[elastic]:

reenter password

for[elastic]:

passwords

donot match.

try again.

enter password

for[elastic]:

reenter password

for[elastic]:

enter password

for[kibana]:

reenter password

for[kibana]:

enter password

for[logstash_system]:

reenter password

for[logstash_system]:

enter password

for[beats_system]:

reenter password

for[beats_system]:

changed password

foruser [kibana]

changed password

foruser [logstash_system]

changed password

foruser [beats_system]

changed password

foruser [elastic]

curl -h "

" -xpost -u elastic '

' -d '

'

1.需要在配置檔案中開啟x-pack驗證, 修改config目錄下面的elasticsearch.yml檔案,在裡面新增如下內容,並重啟.

xpack.security.enabled: true

xpack.license.self_generated.type: basic

xpack.security.transport.ssl.enabled:

true

bin/elasticsearch-setup-passwords interactive

initiating the setup of passwords for

reserved users elastic,kibana,logstash_system,beats_system.

you will be prompted to enter passwords

asthe process progresses.

please confirm that you would like to

continue [y/n]y

enter password

for[elastic]:

passwords must be at least [

6] characters long

try again.

enter password

for[elastic]:

reenter password

for[elastic]:

passwords

donot match.

try again.

enter password

for[elastic]:

reenter password

for[elastic]:

enter password

for[kibana]:

reenter password

for[kibana]:

enter password

for[logstash_system]:

reenter password

for[logstash_system]:

enter password

for[beats_system]:

reenter password

for[beats_system]:

changed password

foruser [kibana]

changed password

foruser [logstash_system]

changed password

foruser [beats_system]

changed password

foruser [elastic]

curl -h "

" -xpost -u elastic '

' -d '

'

配置Redis伺服器 設定密碼並允許IP訪問

設定ip訪問 預設繫結localhost,修改 bind 127.0.0.1 這一行,將127.0.0.1改為自己的ip bind 128.103.5.48 設定訪問密碼 修改 requirepass 的值 requirepass 自己的密碼 複製 編輯redis配置檔案 sudo vi etc r...

安裝mysql沒有設定密碼,設定密碼

跳過許可權檢查,強制修改mysql密碼 也可以用來解決安裝mysql時沒有設定密碼 停止mysql服務,cmd開啟dos視窗,輸入 net stop mysql 在cmd命令列視窗,進入mysql安裝目錄 比如e program files mysql mysql server 5.0 bin 示範...

ubuntu16 0 4設定mysql遠端訪問

ubuntu16.0.4設定mysql遠端訪問 一般程式開發過程為了方便除錯中會需要遠端訪問資料庫,而mysql本身是預設只能訪問localhost,所以需要做一些設定。1.首先,需要修改mysql的配置,執行 vi etc mysql mysql.conf.d mysqld.cnf注釋掉如下內容 ...