• 银河麒麟V10(Kylin Linux V10)安装 Kibana-7.15.2


    前言

    操作系统:Kylin Linux Advanced Server release V10 (Tercel)

    Kibana-7.15.2

    一、下载地址

    https://artifacts.elastic.co/downloads/kibana/kibana-7.15.2-linux-aarch64.tar.gz

    image

    image

    二、安装

    下载压缩包并解压之后,需要关注两个文件夹,一个是config文件夹,里面的kibana.yml是配置文件;一个是bin文件夹,里面有kibana启动的bat脚本

    上传kibana-7.15.2-linux-aarch64.tar.gz文件到 /opt目录下,并解压

    tar -zxvf kibana-7.15.2-linux-aarch64.tar.gz

    在目录/usr/local下创建目录:kibana-7.15.2

    mkdir kibana-7.15.2

    复制解压后的文件到/usr/local/kibana-7.15.2目录下

    cp -R /opt/kibana-7.15.2-linux-aarch64/* /usr/local/kibana-7.15.2/

    设置 kibana-7.15.2 目录权限给elasticsearch用户

    chown -R elasticsearch:elasticsearch kibana-7.15.2/

    三、设置配置文件

    修改/usr/local/kibana-7.6.0/config/kibana.yml

    设置ElasticSearch的访问地址:

    elasticsearch.hosts: [http://192.168.1.111:9200]

    设置Kibana的访问地址,如果不设置则只能本机访问。

    server.host: "192.168.1.111"  或者 server.host: "0.0.0.0"
    1. # Kibana is served by a back end server. This setting specifies the port to use.
    2. #server.port: 5601
    3. # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
    4. # The default is 'localhost', which usually means remote machines will not be able to connect.
    5. # To allow connections from remote users, set this parameter to a non-loopback address.
    6. server.host: "0.0.0.0"
    7. # Enables you to specify a path to mount Kibana at if you are running behind a proxy.
    8. # Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
    9. # from requests it receives, and to prevent a deprecation warning at startup.
    10. # This setting cannot end in a slash.
    11. #server.basePath: ""
    12. # Specifies whether Kibana should rewrite requests that are prefixed with
    13. # `server.basePath` or require that they are rewritten by your reverse proxy.
    14. # This setting was effectively always `false` before Kibana 6.3 and will
    15. # default to `true` starting in Kibana 7.0.
    16. #server.rewriteBasePath: false
    17. # Specifies the public URL at which Kibana is available for end users. If
    18. # `server.basePath` is configured this URL should end with the same basePath.
    19. #server.publicBaseUrl: ""
    20. # The maximum payload size in bytes for incoming server requests.
    21. #server.maxPayload: 1048576
    22. # The Kibana server's name. This is used for display purposes.
    23. #server.name: "your-hostname"
    24. # The URLs of the Elasticsearch instances to use for all your queries.
    25. elasticsearch.hosts: ["http://localhost:9200"]
    26. # Kibana uses an index in Elasticsearch to store saved searches, visualizations and
    27. # dashboards. Kibana creates a new index if the index doesn't already exist.
    28. #kibana.index: ".kibana"
    29. # The default application to load.
    30. #kibana.defaultAppId: "home"
    31. # If your Elasticsearch is protected with basic authentication, these settings provide
    32. # the username and password that the Kibana server uses to perform maintenance on the Kibana
    33. # index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
    34. # is proxied through the Kibana server.
    35. #elasticsearch.username: "kibana_system"
    36. #elasticsearch.password: "pass"
    37. # Kibana can also authenticate to Elasticsearch via "service account tokens".
    38. # If may use this token instead of a username/password.
    39. # elasticsearch.serviceAccountToken: "my_token"
    40. # Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
    41. # These settings enable SSL for outgoing requests from the Kibana server to the browser.
    42. #server.ssl.enabled: false
    43. #server.ssl.certificate: /path/to/your/server.crt
    44. #server.ssl.key: /path/to/your/server.key
    45. # Optional settings that provide the paths to the PEM-format SSL certificate and key files.
    46. # These files are used to verify the identity of Kibana to Elasticsearch and are required when
    47. # xpack.security.http.ssl.client_authentication in Elasticsearch is set to required.
    48. #elasticsearch.ssl.certificate: /path/to/your/client.crt
    49. #elasticsearch.ssl.key: /path/to/your/client.key
    50. # Optional setting that enables you to specify a path to the PEM file for the certificate
    51. # authority for your Elasticsearch instance.
    52. #elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]
    53. # To disregard the validity of SSL certificates, change this setting's value to 'none'.
    54. #elasticsearch.ssl.verificationMode: full
    55. # Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of
    56. # the elasticsearch.requestTimeout setting.
    57. #elasticsearch.pingTimeout: 1500
    58. # Time in milliseconds to wait for responses from the back end or Elasticsearch. This value
    59. # must be a positive integer.
    60. #elasticsearch.requestTimeout: 30000
    61. # List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side
    62. # headers, set this value to [] (an empty list).
    63. #elasticsearch.requestHeadersWhitelist: [ authorization ]
    64. # Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
    65. # by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration.
    66. #elasticsearch.customHeaders: {}
    67. # Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
    68. #elasticsearch.shardTimeout: 30000
    69. # Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
    70. #elasticsearch.logQueries: false
    71. # Specifies the path where Kibana creates the process ID file.
    72. #pid.file: /run/kibana/kibana.pid
    73. # Enables you to specify a file where Kibana stores log output.
    74. #logging.dest: stdout
    75. # Set the value of this setting to true to suppress all logging output.
    76. #logging.silent: false
    77. # Set the value of this setting to true to suppress all logging output other than error messages.
    78. #logging.quiet: false
    79. # Set the value of this setting to true to log all events, including system usage information
    80. # and all requests.
    81. #logging.verbose: false
    82. # Set the interval in milliseconds to sample system and process performance
    83. # metrics. Minimum is 100ms. Defaults to 5000.
    84. #ops.interval: 5000
    85. # Specifies locale to be used for all localizable strings, dates and number formats.
    86. # Supported languages are the following: English - en , by default , Chinese - zh-CN .
    87. #i18n.locale: "en"

    四、启动

    如果用root用户启动会报错:

    Kibana should not be run as root.  Use --allow-root to continue.

    切换elasticsearch用户,并进入目录:/usr/local/kibana-7.15.2/bin 启动服务

    ./kibana

    五、测试访问

    http://192.168.1.111:5601/app/home#/

    image

    六、开机启动

    建立服务文件

    vi /lib/systemd/system/kibana.service
    1. [Unit]
    2. Description=Kibana
    3. [Service]
    4. LimitNOFILE=100000
    5. LimitNPROC=100000
    6. ExecStart=/usr/local/kibana-7.15.2/bin/kibana
    7. User=elasticsearch
    8. Group=elasticsearch
    9. [Install]
    10. WantedBy=multi-user.target

    设置开机自启动

    重新加载systemd的守护线程:
    1. systemctl daemon-reload
    2. systemctl enable kibana

    其它

    1. 启动elasticsearch.service:
    2. systemctl start kibana.service
    3. 查看kibana.serivce状态:
    4. systemctl status kibana.service
    ps aux|grep kibana
    如果出现错误可以使用如下命令查看日志:
    journalctl -u kibana.service
  • 相关阅读:
    C#实现一个万物皆可排序的队列
    GitHub 和 GitLab 同时管理
    走进Redis-常用指令
    Go 运算符
    跬智信息(Kyligence)入选 IDC《中国数据智能市场生态图谱V4.0》
    PaddleSharp:跨越一年的版本更新与亮点
    (52)性能分析 ---CPU的性能分析
    【修复】centos定时任务python top不能输出
    MATLAB Simulink和S7-1200PLC MOBUSTCP通信
    【LeetCode】最短的桥 [M](宽度优先遍历)
  • 原文地址:https://blog.csdn.net/qq_30665009/article/details/126054249