{"id":1381,"date":"2023-03-19T10:56:32","date_gmt":"2023-03-19T02:56:32","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1381"},"modified":"2023-04-28T21:12:24","modified_gmt":"2023-04-28T13:12:24","slug":"kibana-login-authentication-settings","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/kibana-login-authentication-settings\/","title":{"rendered":"Kibana\u767b\u5f55\u8ba4\u8bc1\u8bbe\u7f6e"},"content":{"rendered":"<p>Kibana\u4ece5.5\u5f00\u59cb\u4e0d\u63d0\u4f9b\u8ba4\u8bc1\u529f\u80fd\uff0c\u60f3\u7528\u5b98\u65b9\u7684\u8ba4\u8bc1<code>X-Pack<\/code>\uff0c\u6536\u8d39\u6ef4<\/p>\n<p>\u6240\u4ee5\u81ea\u5df1\u52a8\u624b\uff0c\u4f7f\u7528Nginx\u7684\u4ee3\u7406\u529f\u80fd<\/p>\n<p><!-- more --><\/p>\n<h3>\u5b89\u88c5Nginx<\/h3>\n<h3>\u5b89\u88c5Apache\u5bc6\u7801\u751f\u4ea7\u5de5\u5177<\/h3>\n<pre><code># yum install httpd-tools<\/code><\/pre>\n<h3>\u751f\u6210\u5bc6\u7801\u6587\u4ef6<\/h3>\n<pre><code># mkdir -p \/etc\/nginx\/passwd\n# htpasswd -c -b \/etc\/nginx\/passwd\/kibana.passwd user ******<\/code><\/pre>\n<h3>\u914d\u7f6eNginx<\/h3>\n<pre><code># vim \/usr\/local\/nginx\/nginx.conf<\/code><\/pre>\n<pre><code>server {\n  listen 192.168.10.10:5601;\n\n  auth_basic &quot;Kibana Auth&quot;;\n  auth_basic_user_file \/etc\/nginx\/passwd\/kibana.passwd;\n\n  location \/ {\n    proxy_pass http:\/\/127.0.0.1:5601;\n    proxy_redirect off;\n  }\n}<\/code><\/pre>\n<h3>\u4fee\u6539Kibana\u914d\u7f6e\u6587\u4ef6<\/h3>\n<pre><code># vim \/usr\/local\/kibana\/config\/kibana.yml<\/code><\/pre>\n<pre><code># The host to bind the server to.\nserver.host: &quot;localhost&quot;<\/code><\/pre>\n<h3>\u91cd\u542fKibana\u670d\u52a1\uff0c\u914d\u7f6e\u6587\u4ef6\u751f\u6548<\/h3>\n<pre><code># ps -ef | grep node\n# kill -9 xxxx\n# nohup .\/bin\/kibana &gt;\/dev\/null &amp;<\/code><\/pre>\n<h3>\u91cd\u8f7dNginx\u914d\u7f6e<\/h3>\n<pre><code># nginx -s reload<\/code><\/pre>\n<h3>\u767b\u5f55Kibana<\/h3>\n<p>URL: <a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/192.168.10.10:5601\">http:\/\/192.168.10.10:5601<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kibana\u4ece5.5\u5f00\u59cb\u4e0d\u63d0\u4f9b\u8ba4\u8bc1\u529f\u80fd\uff0c\u60f3\u7528\u5b98\u65b9\u7684\u8ba4\u8bc1X-Pack\uff0c\u6536\u8d39\u6ef4 \u6240\u4ee5\u81ea\u5df1\u52a8\u624b\uff0c\u4f7f\u7528Nginx\u7684\u4ee3\u7406 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[345],"tags":[344],"class_list":["post-1381","post","type-post","status-publish","format-standard","hentry","category-elk","tag-kibana"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1381"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1381\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}