xferlogログとは

2017.04.29 Saturday 21:33
0
    xferlogログとは

    /var/logでみつけた、xferlogファイル
    なんやろね。中身をみると以前つかったFTPのログだった
    xferlogとは、FTPサーバの転送ログ情報が格納されるログファイルね

    category:サーバー | by:ittoocomments(0)trackbacks(0) | -

    1件当たりの申告漏れ所得金額が高額な上位10業種

    2017.04.28 Friday 23:32
    0
      1件当たりの申告漏れ所得金額が高額な上位10業種

      順位 業種目 1件当たりの申告漏れ所得金額 1件当たりの追徴税額 (含加算税) 前年の順位 万円 万円 位
      1 貸金業 5,896 1,325 4
      2 風俗業 3,952 1,515 6
      3 パチンコ 2,584 988 2
      4 病院 2,075 731 1
      5 皮膚科医 1,614 643 −
      6 くず金卸売業 1,460 429 9
      7 情報サービス 1,410 356 −
      8 食肉小売業 1,212 201 10
      9 くず紙卸売業 1,142 301 −
      10 電気機械器具製造卸売業 1,140 308

      category:税金 | by:ittoocomments(0)trackbacks(0) | -

      centOSにkibanaのインストールしたった!

      2017.04.09 Sunday 04:52
      0
        kibanaのインストール

        # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

        # vi /etc/yum.repos.d/kibana.repo

        [kibana-5.x]
        name=Kibana repository for 5.x packages
        baseurl=https://artifacts.elastic.co/packages/5.x/yum
        gpgcheck=1
        gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
        enabled=1
        autorefresh=1
        type=rpm-md


        # yum install kibana

        # systemctl enable kibana
        # systemctl start kibana
        接続を設定します。

        # vi /etc/kibana/kibana.yml
        server.host: "192.168.33.10"
        elasticsearch.url: "http://192.168.33.10:9200"

        # systemctl restart kibana
        ブラウザで確認する

        http://192.168.33.10:5601


        ★作業履歴
        [root@localhost install]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
        [root@localhost install]#
        [root@localhost install]# yum install kibana
        Loaded plugins: fastestmirror
        Loading mirror speeds from cached hostfile
        * base: ftp.jaist.ac.jp
        * epel: ftp.jaist.ac.jp
        * extras: ftp.jaist.ac.jp
        * remi-safe: mirror.innosol.asia
        * updates: ftp.jaist.ac.jp
        Resolving Dependencies
        --> Running transaction check
        ---> Package kibana.x86_64 0:5.3.0-1 will be installed
        --> Finished Dependency Resolution

        Dependencies Resolved

        =========================================================================================================================================================
        Package Arch Version Repository Size
        =========================================================================================================================================================
        Installing:
        kibana x86_64 5.3.0-1 elasticsearch-5.x 38 M

        Transaction Summary
        =========================================================================================================================================================
        Install 1 Package

        Total download size: 38 M
        Installed size: 142 M
        Is this ok [y/d/N]: y
        Downloading packages:
        kibana-5.3.0-x86_64.rpm | 38 MB 00:00:28
        Running transaction check
        Running transaction test
        Transaction test succeeded
        Running transaction
        Installing : kibana-5.3.0-1.x86_64 1/1
        Verifying : kibana-5.3.0-1.x86_64 1/1

        Installed:
        kibana.x86_64 0:5.3.0-1

        Complete!
        [root@localhost install]#
        [root@localhost install]# vi /etc/kibana.yml
        server.host: "192.168.33.10"
        elasticsearch.url: "http://192.168.33.10:9200"
        に変更した

        [root@localhost install]#
        [root@localhost install]# systemctl enable kibana
        Created symlink from /etc/systemd/system/multi-user.target.wants/kibana.service to /etc/systemd/system/kibana.service.
        [root@localhost install]#
        [root@localhost install]# systemctl start kibana
        [root@localhost install]#

        [root@localhost install]# ps -ef | grep kibana
        kibana 6358 1 99 19:07 ? 00:00:09 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
        root 6370 5784 0 19:07 pts/1 00:00:00 grep --color=auto kibana
        [root@localhost install]#

        [root@localhost install]# lsof -n -P | grep TCP | grep kibana
        node 6358 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        node 6358 6360 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        V8 6358 6361 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        V8 6358 6362 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        V8 6358 6363 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        V8 6358 6364 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        node 6358 6365 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        node 6358 6366 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        node 6358 6367 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        node 6358 6368 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
        [root@localhost install]#
        ポート番号 5601だね


        ブラウザからアクセス
        http://192.168.33.10:5601/
        category:kibana | by:ittoocomments(0)trackbacks(0) | -

        centOSにkibanaのインストールしたった!

        2017.04.09 Sunday 04:51
        0
          kibanaのインストール

          # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

          # vi /etc/yum.repos.d/kibana.repo

          [kibana-5.x]
          name=Kibana repository for 5.x packages
          baseurl=https://artifacts.elastic.co/packages/5.x/yum
          gpgcheck=1
          gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
          enabled=1
          autorefresh=1
          type=rpm-md


          # yum install kibana

          # systemctl enable kibana
          # systemctl start kibana
          接続を設定します。

          # vi /etc/kibana/kibana.yml
          server.host: "192.168.33.10"
          elasticsearch.url: "http://192.168.33.10:9200"

          # systemctl restart kibana
          ブラウザで確認する

          http://192.168.33.10:5601


          ★作業履歴
          [root@localhost install]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
          [root@localhost install]#
          [root@localhost install]# yum install kibana
          Loaded plugins: fastestmirror
          Loading mirror speeds from cached hostfile
          * base: ftp.jaist.ac.jp
          * epel: ftp.jaist.ac.jp
          * extras: ftp.jaist.ac.jp
          * remi-safe: mirror.innosol.asia
          * updates: ftp.jaist.ac.jp
          Resolving Dependencies
          --> Running transaction check
          ---> Package kibana.x86_64 0:5.3.0-1 will be installed
          --> Finished Dependency Resolution

          Dependencies Resolved

          =========================================================================================================================================================
          Package Arch Version Repository Size
          =========================================================================================================================================================
          Installing:
          kibana x86_64 5.3.0-1 elasticsearch-5.x 38 M

          Transaction Summary
          =========================================================================================================================================================
          Install 1 Package

          Total download size: 38 M
          Installed size: 142 M
          Is this ok [y/d/N]: y
          Downloading packages:
          kibana-5.3.0-x86_64.rpm | 38 MB 00:00:28
          Running transaction check
          Running transaction test
          Transaction test succeeded
          Running transaction
          Installing : kibana-5.3.0-1.x86_64 1/1
          Verifying : kibana-5.3.0-1.x86_64 1/1

          Installed:
          kibana.x86_64 0:5.3.0-1

          Complete!
          [root@localhost install]#
          [root@localhost install]# vi /etc/kibana.yml
          server.host: "192.168.33.10"
          elasticsearch.url: "http://192.168.33.10:9200"
          に変更した

          [root@localhost install]#
          [root@localhost install]# systemctl enable kibana
          Created symlink from /etc/systemd/system/multi-user.target.wants/kibana.service to /etc/systemd/system/kibana.service.
          [root@localhost install]#
          [root@localhost install]# systemctl start kibana
          [root@localhost install]#

          [root@localhost install]# ps -ef | grep kibana
          kibana 6358 1 99 19:07 ? 00:00:09 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
          root 6370 5784 0 19:07 pts/1 00:00:00 grep --color=auto kibana
          [root@localhost install]#

          [root@localhost install]# lsof -n -P | grep TCP | grep kibana
          node 6358 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          node 6358 6360 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          V8 6358 6361 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          V8 6358 6362 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          V8 6358 6363 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          V8 6358 6364 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          node 6358 6365 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          node 6358 6366 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          node 6358 6367 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          node 6358 6368 kibana 10u IPv4 26876 0t0 TCP 127.0.0.1:5601 (LISTEN)
          [root@localhost install]#
          ポート番号 5601だね


          ブラウザからアクセス
          http://192.168.33.10:5601/
          category:kibana | by:ittoocomments(0)trackbacks(0) | -

          Could not resolve hostのエラー 解決した

          2017.04.09 Sunday 03:51
          0
            Could not resolve hostのエラー
            ぐぐって調べるとネットワーク系のえらーっぽい。
            外の公共の無線LANつかっている際にえらーになったが
            自宅かえっておなじことをやると、無事にうまくいった

            [root@localhost install]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
            curl: (6) Could not resolve host: artifacts.elastic.co; Unknown error
            error: https://artifacts.elastic.co/GPG-KEY-elasticsearch: import read failed(2).
            [root@localhost install]#

            インストールしてもエラーになる
            [root@localhost install]# yum install kibana
            Loaded plugins: fastestmirror
            ・・・
            Downloading packages:
            kibana-5.3.0-x86_64.rpm FAILED
            https://artifacts.elastic.co/packages/5.x/yum/5.3.0/kibana-5.3.0-x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: artifacts.elastic.co; Unknown error"
            Trying other mirror.
            Error downloading packages:
            kibana-5.3.0-1.x86_64: [Errno 256] No more mirrors to try.
            category:サーバー | by:ittoocomments(0)trackbacks(0) | -

            Vagrantで仮想マシンのメモリサイズを変更する方法

            2017.04.08 Saturday 21:56
            0
              Vagrantで仮想マシンのメモリサイズを変更する方法
              Vagrantfile でMB単位で指定する。以下は2GBに設定した

              Vagrant.configure(2) do |config|
              config.vm.provider "virtualbox" do |vb|
              vb.memory = "2048"
              end
              end
              ↑メモリ割り当てを2Gにしました。

              仮想マシンを起動でメモリサイズ確認。

              -bash-4.2$ free -m
              total used free shared buff/cache available
              Mem: 1840 105 1498 8 236 1599
              Swap: 999 0 999
              -bash-4.2$
              2G割り当てられてました
              category:vagrant | by:ittoocomments(0)trackbacks(0) | -

              linux 自分のipアドレスを調べるのにipコマンドをつかおう

              2017.04.08 Saturday 15:33
              0
                linux 自分のipアドレスを調べる
                ipコマンドを使う ip aでわかる
                以下、vagrant環境でやってみたよ

                [root@localhost log]# ip a
                1: lo: mtu 65536 qdisc noqueue state UNKNOWN
                link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                inet 127.0.0.1/8 scope host lo
                valid_lft forever preferred_lft forever
                inet6 ::1/128 scope host
                valid_lft forever preferred_lft forever
                2: enp0s3: mtu 1500 qdisc pfifo_fast state UP qlen 1000
                link/ether 08:00:27:6c:3e:95 brd ff:ff:ff:ff:ff:ff
                inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
                valid_lft 56532sec preferred_lft 56532sec
                inet6 fe80::a00:27ff:fe6c:3e95/64 scope link
                valid_lft forever preferred_lft forever
                3: enp0s8: mtu 1500 qdisc pfifo_fast state UP qlen 1000
                link/ether 08:00:27:be:06:ae brd ff:ff:ff:ff:ff:ff
                inet 192.168.33.10/24 brd 192.168.33.255 scope global enp0s8 ★これ
                valid_lft forever preferred_lft forever
                inet6 fe80::a00:27ff:febe:6ae/64 scope link
                valid_lft forever preferred_lft forever
                [root@localhost log]#
                category:サーバー | by:ittoocomments(0)trackbacks(0) | -

                キャッシュとバッファの違い

                2017.04.08 Saturday 15:15
                0
                  パソコンやサーバーにおけるキャッシュとバッファの違い

                  両方、物理的にいえばメモリ。意味合いとしても両方、記憶領域になる。

                  ・キャッシュとは
                  キャッシュは、使用頻度の高いデーターを蓄えておき、即時実行できるようにするメモリ
                  ある領域から他の領域へ情報を転送する際、その転送遅延を極力隠蔽化させ転送効率を向上させるためにの記憶階層の実現手段。
                  性能の向上に役立てる為の仕組。

                  ・バッファとは
                  バッファは、処理速度や転送速度の差を補うためにデータを一時的に保存しておくメモリ
                  入出力と処理との間で時間のズレを吸収・調整をするために一時的に情報を記憶する装置や記憶領域のこと。
                  クッション的な使われ方。
                  category:サーバー | by:ittoocomments(0)trackbacks(0) | -

                  ポート番号を調べるのに lsofコマンドが便利なのでメモ

                  2017.04.08 Saturday 15:09
                  0
                    ポート番号を調べるのに lsofコマンドが便利なのでメモ

                    lsofコマンドの使い方
                    lsofとは
                    PortやPID、プロセス名からファイルがオープンしている情報を表示するコマンド。
                    lsofを使ってプロセスが利用しているポートを確認

                    lsof -i
                    オプション-i:ポート番号でそのポートを利用しているプロセスを調べることができます。

                    以下だとapacheが post番号80をつかってる
                    [root@localhost install]# lsof -i:80
                    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
                    httpd 14063 root 4u IPv6 161290 0t0 TCP *:http (LISTEN)
                    httpd 14064 apache 4u IPv6 161290 0t0 TCP *:http (LISTEN)
                    httpd 14065 apache 4u IPv6 161290 0t0 TCP *:http (LISTEN)
                    httpd 14066 apache 4u IPv6 161290 0t0 TCP *:http (LISTEN)
                    httpd 14067 apache 4u IPv6 161290 0t0 TCP *:http (LISTEN)
                    httpd 14068 apache 4u IPv6 161290 0t0 TCP *:http (LISTEN)
                    [root@localhost install]#


                    あるプロセスが開いているポート番号を調べる方法
                    lsof コマンドを使うとプロセスが開いているファイル(ソケットも含む)を見れるのをそれを使う。
                    -n は名前解決しないためのオプション。-P はポート番号をポート名に変換しないようするオプション


                    lsofコマンドは名前解決をかってにしちゃうし、ポート番号をポート名に変えて表示してしまうためわかりにくい。
                    -n は名前解決しないためのオプション。-P はポート番号をポート名に変換しないようするオプション をつけるとわかりやすい
                    たくさんでるので grep TCP とかつけるとわかりやすい

                    [root@localhost kibana]# lsof -n -P | grep TCP ★これめっちゃつかえる
                    sshd 918 root 3u IPv4 14590 0t0 TCP *:22 (LISTEN)


                    ポート番号から、プロセスIDを調べる場合は lsof -i:[PORT]
                    ※ 補足: ホスト名まで指定する場合は -i@[HOST]:[PORT]

                    [root@localhost kibana]# lsof -P -i:5601
                    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
                    node 6358 kibana 10u IPv4 26876 0t0 TCP localhost:5601 (LISTEN)
                    [root@localhost kibana]#
                    category:サーバー | by:ittoocomments(0)trackbacks(0) | -

                    elasticsearchをvagrant環境につくったcentOSにインストール

                    2017.04.08 Saturday 14:38
                    0
                      elasticsearchをvagrant環境につくったcentOSにインストール

                      --------------------------------------------------------------------------------------------
                      概要

                      ▼1 # yum install java-1.8.0-openjdk
                      ▼2 # java -version
                      ▼3 # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
                      ▼4 # repoファイル作成
                      vi /etc/yum.repos.d/elasticsearch.repo
                      ▼5 # yum install elasticsearch -y
                      ▼6 # elasticsearch/jvm.options のメモリサイズを変更する
                      (以降の処理で足りないとエラーになる)
                      ▼7 # systemctl start elasticsearch
                      ▼8 # systemctl status elasticsearch
                      ▼9 起動確認 curl lsof
                      --------------------------------------------------------------------------------------------

                      ・実際の作業履歴など
                      ▼1 # yum install java-1.8.0-openjdk

                      [root@localhost install]# yum install java-1.8.0-openjdk
                      Loaded plugins: fastestmirror
                      base | 3.6 kB 00:00:00
                      extras | 3.4 kB 00:00:00
                      mongodb-org-3.0 | 2.5 kB 00:00:00
                      puppetlabs-pc1 | 2.5 kB 00:00:00
                      remi-safe | 2.9 kB 00:00:00
                      updates | 3.4 kB 00:00:00
                      (1/2): puppetlabs-pc1/x86_64/primary_db | 113 kB 00:00:01
                      (2/2): remi-safe/primary_db | 917 kB 00:00:04
                      Loading mirror speeds from cached hostfile
                      * base: ftp.jaist.ac.jp
                      * epel: ftp.jaist.ac.jp
                      * extras: ftp.jaist.ac.jp
                      * remi-safe: repo1.sea.innoscale.net
                      * updates: ftp.jaist.ac.jp
                      Resolving Dependencies
                      --> Running transaction check
                      ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.121-0.b13.el7_3 will be installed
                      --> Processing Dependency: java-1.8.0-openjdk-headless = 1:1.8.0.121-0.b13.el7_3 for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libjli.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: libXcomposite.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64
                      --> Running transaction check
                      ---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
                      --> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
                      --> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
                      ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.121-0.b13.el7_3 will be installed
                      --> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: nss(x86-64) >= 3.21.3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: copy-jdk-configs >= 1.1-3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: chkconfig >= 1.7 for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: chkconfig >= 1.7 for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      --> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64
                      ---> Package libXcomposite.x86_64 0:0.4.4-4.1.el7 will be installed
                      ---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
                      ---> Package libXi.x86_64 0:1.7.4-2.el7 will be installed
                      ---> Package libXrender.x86_64 0:0.9.8-2.1.el7 will be installed
                      ---> Package libXtst.x86_64 0:1.2.2-2.1.el7 will be installed
                      ---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
                      --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
                      --> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
                      --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
                      --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
                      --> Running transaction check
                      ---> Package chkconfig.x86_64 0:1.3.61-5.el7 will be updated
                      ---> Package chkconfig.x86_64 0:1.7.2-1.el7 will be an update
                      ---> Package copy-jdk-configs.noarch 0:1.2-1.el7 will be installed
                      ---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
                      --> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
                      --> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch
                      ---> Package libICE.x86_64 0:1.0.9-2.el7 will be installed
                      ---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed
                      ---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
                      ---> Package nss.x86_64 0:3.19.1-19.el7_2 will be updated
                      --> Processing Dependency: nss = 3.19.1-19.el7_2 for package: nss-sysinit-3.19.1-19.el7_2.x86_64
                      --> Processing Dependency: nss(x86-64) = 3.19.1-19.el7_2 for package: nss-tools-3.19.1-19.el7_2.x86_64
                      ---> Package nss.x86_64 0:3.28.2-1.6.el7_3 will be an update
                      --> Processing Dependency: nss-util >= 3.28.2-1.1 for package: nss-3.28.2-1.6.el7_3.x86_64
                      --> Processing Dependency: nss-softokn(x86-64) >= 3.16.2.3-14.2 for package: nss-3.28.2-1.6.el7_3.x86_64
                      --> Processing Dependency: nspr >= 4.13.1 for package: nss-3.28.2-1.6.el7_3.x86_64
                      --> Processing Dependency: libnssutil3.so(NSSUTIL_3.24)(64bit) for package: nss-3.28.2-1.6.el7_3.x86_64
                      --> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.28.2-1.6.el7_3.x86_64
                      ---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed
                      ---> Package tzdata-java.noarch 0:2017b-1.el7 will be installed
                      ---> Package xorg-x11-font-utils.x86_64 1:7.5-20.el7 will be installed
                      --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-20.el7.x86_64
                      --> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-20.el7.x86_64
                      --> Running transaction check
                      ---> Package libXfont.x86_64 0:1.5.1-2.el7 will be installed
                      ---> Package libfontenc.x86_64 0:1.1.2-3.el7 will be installed
                      ---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
                      ---> Package nspr.x86_64 0:4.10.8-2.el7_1 will be updated
                      ---> Package nspr.x86_64 0:4.13.1-1.0.el7_3 will be an update
                      ---> Package nss-softokn.x86_64 0:3.16.2.3-13.el7_1 will be updated
                      ---> Package nss-softokn.x86_64 0:3.16.2.3-14.4.el7 will be an update
                      --> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.16.2.3-14.4.el7 for package: nss-softokn-3.16.2.3-14.4.el7.x86_64
                      ---> Package nss-sysinit.x86_64 0:3.19.1-19.el7_2 will be updated
                      ---> Package nss-sysinit.x86_64 0:3.28.2-1.6.el7_3 will be an update
                      ---> Package nss-tools.x86_64 0:3.19.1-19.el7_2 will be updated
                      ---> Package nss-tools.x86_64 0:3.28.2-1.6.el7_3 will be an update
                      ---> Package nss-util.x86_64 0:3.19.1-4.el7_1 will be updated
                      ---> Package nss-util.x86_64 0:3.28.2-1.1.el7_3 will be an update
                      ---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
                      --> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
                      --> Running transaction check
                      ---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-13.el7_1 will be updated
                      ---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-14.4.el7 will be an update
                      ---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
                      --> Finished Dependency Resolution

                      Dependencies Resolved

                      ===========================================================================================================
                      Package Arch Version Repository Size
                      ===========================================================================================================
                      Installing:
                      java-1.8.0-openjdk x86_64 1:1.8.0.121-0.b13.el7_3 updates 232 k
                      Installing for dependencies:
                      copy-jdk-configs noarch 1.2-1.el7 base 14 k
                      giflib x86_64 4.1.6-9.el7 base 40 k
                      java-1.8.0-openjdk-headless x86_64 1:1.8.0.121-0.b13.el7_3 updates 31 M
                      javapackages-tools noarch 3.4.1-11.el7 base 73 k
                      libICE x86_64 1.0.9-2.el7 base 65 k
                      libSM x86_64 1.2.2-2.el7 base 39 k
                      libXcomposite x86_64 0.4.4-4.1.el7 base 22 k
                      libXext x86_64 1.3.3-3.el7 base 39 k
                      libXfont x86_64 1.5.1-2.el7 base 150 k
                      libXi x86_64 1.7.4-2.el7 base 40 k
                      libXrender x86_64 0.9.8-2.1.el7 base 25 k
                      libXtst x86_64 1.2.2-2.1.el7 base 20 k
                      libfontenc x86_64 1.1.2-3.el7 base 30 k
                      libxslt x86_64 1.1.28-5.el7 base 242 k
                      lksctp-tools x86_64 1.0.17-2.el7 base 88 k
                      python-javapackages noarch 3.4.1-11.el7 base 31 k
                      python-lxml x86_64 3.2.1-4.el7 base 758 k
                      ttmkfdir x86_64 3.0.9-42.el7 base 48 k
                      tzdata-java noarch 2017b-1.el7 updates 183 k
                      xorg-x11-font-utils x86_64 1:7.5-20.el7 base 87 k
                      xorg-x11-fonts-Type1 noarch 7.5-9.el7 base 521 k
                      Updating for dependencies:
                      chkconfig x86_64 1.7.2-1.el7 base 175 k
                      nspr x86_64 4.13.1-1.0.el7_3 updates 126 k
                      nss x86_64 3.28.2-1.6.el7_3 updates 873 k
                      nss-softokn x86_64 3.16.2.3-14.4.el7 base 306 k
                      nss-softokn-freebl x86_64 3.16.2.3-14.4.el7 base 204 k
                      nss-sysinit x86_64 3.28.2-1.6.el7_3 updates 58 k
                      nss-tools x86_64 3.28.2-1.6.el7_3 updates 496 k
                      nss-util x86_64 3.28.2-1.1.el7_3 updates 73 k

                      Transaction Summary
                      ===========================================================================================================
                      Install 1 Package (+21 Dependent packages)
                      Upgrade ( 8 Dependent packages)

                      Total download size: 36 M
                      Is this ok [y/d/N]: y
                      Downloading packages:
                      Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
                      (1/30): copy-jdk-configs-1.2-1.el7.noarch.rpm | 14 kB 00:00:00
                      (2/30): giflib-4.1.6-9.el7.x86_64.rpm | 40 kB 00:00:00
                      (3/30): chkconfig-1.7.2-1.el7.x86_64.rpm | 175 kB 00:00:00
                      (4/30): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00:00
                      (5/30): libICE-1.0.9-2.el7.x86_64.rpm | 65 kB 00:00:00
                      (6/30): libSM-1.2.2-2.el7.x86_64.rpm | 39 kB 00:00:00
                      (7/30): libXcomposite-0.4.4-4.1.el7.x86_64.rpm | 22 kB 00:00:00
                      (8/30): libXext-1.3.3-3.el7.x86_64.rpm | 39 kB 00:00:00
                      (9/30): libXfont-1.5.1-2.el7.x86_64.rpm | 150 kB 00:00:00
                      (10/30): libXi-1.7.4-2.el7.x86_64.rpm | 40 kB 00:00:00
                      (11/30): libXrender-0.9.8-2.1.el7.x86_64.rpm | 25 kB 00:00:00
                      (12/30): libXtst-1.2.2-2.1.el7.x86_64.rpm | 20 kB 00:00:00
                      (13/30): libfontenc-1.1.2-3.el7.x86_64.rpm | 30 kB 00:00:00
                      (14/30): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00:00
                      (15/30): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:00
                      (16/30): java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64.rpm | 232 kB 00:00:01
                      (17/30): nspr-4.13.1-1.0.el7_3.x86_64.rpm | 126 kB 00:00:00
                      (18/30): nss-3.28.2-1.6.el7_3.x86_64.rpm | 873 kB 00:00:01
                      (19/30): nss-sysinit-3.28.2-1.6.el7_3.x86_64.rpm | 58 kB 00:00:00
                      (20/30): nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64.rpm | 204 kB 00:00:01
                      (21/30): nss-softokn-3.16.2.3-14.4.el7.x86_64.rpm | 306 kB 00:00:02
                      (22/30): nss-tools-3.28.2-1.6.el7_3.x86_64.rpm | 496 kB 00:00:00
                      (23/30): nss-util-3.28.2-1.1.el7_3.x86_64.rpm | 73 kB 00:00:00
                      (24/30): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00:00
                      (25/30): ttmkfdir-3.0.9-42.el7.x86_64.rpm | 48 kB 00:00:00
                      (26/30): xorg-x11-font-utils-7.5-20.el7.x86_64.rpm | 87 kB 00:00:00
                      (27/30): python-lxml-3.2.1-4.el7.x86_64.rpm | 758 kB 00:00:01
                      (28/30): tzdata-java-2017b-1.el7.noarch.rpm | 183 kB 00:00:01
                      (29/30): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm | 521 kB 00:00:01
                      (30/30): java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64.rpm | 31 MB 00:00:09
                      -----------------------------------------------------------------------------------------------------------
                      Total 3.3 MB/s | 36 MB 00:00:11
                      Running transaction check
                      Running transaction test
                      Transaction test succeeded
                      Running transaction
                      Updating : nspr-4.13.1-1.0.el7_3.x86_64 1/38
                      Updating : nss-util-3.28.2-1.1.el7_3.x86_64 2/38
                      Installing : libXext-1.3.3-3.el7.x86_64 3/38
                      Installing : libXi-1.7.4-2.el7.x86_64 4/38
                      Installing : libfontenc-1.1.2-3.el7.x86_64 5/38
                      Installing : libICE-1.0.9-2.el7.x86_64 6/38
                      Updating : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 7/38
                      Updating : nss-softokn-3.16.2.3-14.4.el7.x86_64 8/38
                      Installing : libxslt-1.1.28-5.el7.x86_64 9/38
                      Updating : chkconfig-1.7.2-1.el7.x86_64 10/38
                      Updating : nss-sysinit-3.28.2-1.6.el7_3.x86_64 11/38
                      Updating : nss-3.28.2-1.6.el7_3.x86_64 12/38
                      Installing : python-lxml-3.2.1-4.el7.x86_64 13/38
                      Installing : python-javapackages-3.4.1-11.el7.noarch 14/38
                      Installing : javapackages-tools-3.4.1-11.el7.noarch 15/38
                      Installing : libSM-1.2.2-2.el7.x86_64 16/38
                      Installing : giflib-4.1.6-9.el7.x86_64 17/38
                      Installing : libXfont-1.5.1-2.el7.x86_64 18/38
                      Installing : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 19/38
                      Installing : libXtst-1.2.2-2.1.el7.x86_64 20/38
                      Installing : tzdata-java-2017b-1.el7.noarch 21/38
                      Installing : copy-jdk-configs-1.2-1.el7.noarch 22/38
                      Installing : lksctp-tools-1.0.17-2.el7.x86_64 23/38
                      Installing : 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64 24/38
                      Installing : libXrender-0.9.8-2.1.el7.x86_64 25/38
                      Installing : libXcomposite-0.4.4-4.1.el7.x86_64 26/38
                      Installing : ttmkfdir-3.0.9-42.el7.x86_64 27/38
                      Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch 28/38
                      Installing : 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64 29/38
                      Updating : nss-tools-3.28.2-1.6.el7_3.x86_64 30/38
                      Cleanup : nss-tools-3.19.1-19.el7_2.x86_64 31/38
                      Cleanup : nss-sysinit-3.19.1-19.el7_2.x86_64 32/38
                      Cleanup : nss-3.19.1-19.el7_2.x86_64 33/38
                      Cleanup : nss-softokn-3.16.2.3-13.el7_1.x86_64 34/38
                      Cleanup : nss-util-3.19.1-4.el7_1.x86_64 35/38
                      Cleanup : nspr-4.10.8-2.el7_1.x86_64 36/38
                      Cleanup : nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64 37/38
                      Cleanup : chkconfig-1.3.61-5.el7.x86_64 38/38
                      Verifying : libXext-1.3.3-3.el7.x86_64 1/38
                      Verifying : nspr-4.13.1-1.0.el7_3.x86_64 2/38
                      Verifying : giflib-4.1.6-9.el7.x86_64 3/38
                      Verifying : nss-tools-3.28.2-1.6.el7_3.x86_64 4/38
                      Verifying : libXtst-1.2.2-2.1.el7.x86_64 5/38
                      Verifying : python-lxml-3.2.1-4.el7.x86_64 6/38
                      Verifying : nss-softokn-3.16.2.3-14.4.el7.x86_64 7/38
                      Verifying : nss-sysinit-3.28.2-1.6.el7_3.x86_64 8/38
                      Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64 9/38
                      Verifying : nss-util-3.28.2-1.1.el7_3.x86_64 10/38
                      Verifying : ttmkfdir-3.0.9-42.el7.x86_64 11/38
                      Verifying : chkconfig-1.7.2-1.el7.x86_64 12/38
                      Verifying : python-javapackages-3.4.1-11.el7.noarch 13/38
                      Verifying : libXcomposite-0.4.4-4.1.el7.x86_64 14/38
                      Verifying : nss-3.28.2-1.6.el7_3.x86_64 15/38
                      Verifying : libXrender-0.9.8-2.1.el7.x86_64 16/38
                      Verifying : lksctp-tools-1.0.17-2.el7.x86_64 17/38
                      Verifying : copy-jdk-configs-1.2-1.el7.noarch 18/38
                      Verifying : xorg-x11-fonts-Type1-7.5-9.el7.noarch 19/38
                      Verifying : libxslt-1.1.28-5.el7.x86_64 20/38
                      Verifying : tzdata-java-2017b-1.el7.noarch 21/38
                      Verifying : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 22/38
                      Verifying : libICE-1.0.9-2.el7.x86_64 23/38
                      Verifying : libXfont-1.5.1-2.el7.x86_64 24/38
                      Verifying : javapackages-tools-3.4.1-11.el7.noarch 25/38
                      Verifying : libXi-1.7.4-2.el7.x86_64 26/38
                      Verifying : libSM-1.2.2-2.el7.x86_64 27/38
                      Verifying : libfontenc-1.1.2-3.el7.x86_64 28/38
                      Verifying : 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64 29/38
                      Verifying : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 30/38
                      Verifying : nss-softokn-3.16.2.3-13.el7_1.x86_64 31/38
                      Verifying : nss-sysinit-3.19.1-19.el7_2.x86_64 32/38
                      Verifying : nss-3.19.1-19.el7_2.x86_64 33/38
                      Verifying : nss-tools-3.19.1-19.el7_2.x86_64 34/38
                      Verifying : chkconfig-1.3.61-5.el7.x86_64 35/38
                      Verifying : nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64 36/38
                      Verifying : nspr-4.10.8-2.el7_1.x86_64 37/38
                      Verifying : nss-util-3.19.1-4.el7_1.x86_64 38/38

                      Installed:
                      java-1.8.0-openjdk.x86_64 1:1.8.0.121-0.b13.el7_3

                      Dependency Installed:
                      copy-jdk-configs.noarch 0:1.2-1.el7 giflib.x86_64 0:4.1.6-9.el7
                      java-1.8.0-openjdk-headless.x86_64 1:1.8.0.121-0.b13.el7_3 javapackages-tools.noarch 0:3.4.1-11.el7
                      libICE.x86_64 0:1.0.9-2.el7 libSM.x86_64 0:1.2.2-2.el7
                      libXcomposite.x86_64 0:0.4.4-4.1.el7 libXext.x86_64 0:1.3.3-3.el7
                      libXfont.x86_64 0:1.5.1-2.el7 libXi.x86_64 0:1.7.4-2.el7
                      libXrender.x86_64 0:0.9.8-2.1.el7 libXtst.x86_64 0:1.2.2-2.1.el7
                      libfontenc.x86_64 0:1.1.2-3.el7 libxslt.x86_64 0:1.1.28-5.el7
                      lksctp-tools.x86_64 0:1.0.17-2.el7 python-javapackages.noarch 0:3.4.1-11.el7
                      python-lxml.x86_64 0:3.2.1-4.el7 ttmkfdir.x86_64 0:3.0.9-42.el7
                      tzdata-java.noarch 0:2017b-1.el7 xorg-x11-font-utils.x86_64 1:7.5-20.el7
                      xorg-x11-fonts-Type1.noarch 0:7.5-9.el7

                      Dependency Updated:
                      chkconfig.x86_64 0:1.7.2-1.el7 nspr.x86_64 0:4.13.1-1.0.el7_3
                      nss.x86_64 0:3.28.2-1.6.el7_3 nss-softokn.x86_64 0:3.16.2.3-14.4.el7
                      nss-softokn-freebl.x86_64 0:3.16.2.3-14.4.el7 nss-sysinit.x86_64 0:3.28.2-1.6.el7_3
                      nss-tools.x86_64 0:3.28.2-1.6.el7_3 nss-util.x86_64 0:3.28.2-1.1.el7_3

                      Complete!
                      [root@localhost install]#



                      ▼2 # java -version

                      [root@localhost install]# java -version
                      openjdk version "1.8.0_121"
                      OpenJDK Runtime Environment (build 1.8.0_121-b13)
                      OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
                      [root@localhost install]#


                      ▼3 # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
                      [root@localhost install]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch



                      ▼4 # repoファイル作成
                      vi /etc/yum.repos.d/elasticsearch.repo

                      [elasticsearch-5.x]
                      name=Elasticsearch repository for 5.x packages
                      baseurl=https://artifacts.elastic.co/packages/5.x/yum
                      gpgcheck=1
                      gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
                      enabled=1
                      autorefresh=1
                      type=rpm-md

                      ▼5 # yum install elasticsearch -y

                      [root@localhost install]# vi /etc/yum.repos.d/elasticsearch.repo


                      [root@localhost install]# yum install elasticsearch -y
                      Loaded plugins: fastestmirror
                      elasticsearch-5.x | 1.3 kB 00:00:00
                      elasticsearch-5.x/primary | 40 kB 00:00:01
                      Loading mirror speeds from cached hostfile
                      * base: ftp.jaist.ac.jp
                      * epel: ftp.jaist.ac.jp
                      * extras: ftp.jaist.ac.jp
                      * remi-safe: mirrors.thzhost.com
                      * updates: ftp.jaist.ac.jp
                      elasticsearch-5.x 98/98
                      Resolving Dependencies
                      --> Running transaction check
                      ---> Package elasticsearch.noarch 0:5.3.0-1 will be installed
                      --> Finished Dependency Resolution

                      Dependencies Resolved

                      ===========================================================================================================
                      Package Arch Version Repository Size
                      ===========================================================================================================
                      Installing:
                      elasticsearch noarch 5.3.0-1 elasticsearch-5.x 32 M

                      Transaction Summary
                      ===========================================================================================================
                      Install 1 Package

                      Total download size: 32 M
                      Installed size: 36 M
                      Downloading packages:
                      elasticsearch-5.3.0.rpm | 32 MB 00:00:10
                      Running transaction check
                      Running transaction test
                      Transaction test succeeded
                      Running transaction
                      Creating elasticsearch group... OK
                      Creating elasticsearch user... OK
                      Installing : elasticsearch-5.3.0-1.noarch 1/1
                      ### NOT starting on installation, please execute the following statements to configure elasticsearch servic
                      e to start automatically using systemd
                      sudo systemctl daemon-reload
                      sudo systemctl enable elasticsearch.service
                      ### You can start elasticsearch service by executing
                      sudo systemctl start elasticsearch.service
                      Verifying : elasticsearch-5.3.0-1.noarch 1/1

                      Installed:
                      elasticsearch.noarch 0:5.3.0-1

                      Complete!
                      [root@localhost install]#
                      [root@localhost install]#


                      ▼6 # elasticsearch/jvm.options のメモリサイズを変更する
                      (以降の処理で足りないとエラーになる)

                      # vi /etc/elasticsearch/jvm.options
                      #-Xms2g
                      #-Xmx2g
                      -Xms1g
                      -Xmx1g

                      [root@localhost install]# systemctl daemon-reload
                      [root@localhost install]# systemctl start elasticsearch
                      [root@localhost install]# systemctl status elasticsearch
                      ● elasticsearch.service - Elasticsearch
                      Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
                      Active: failed (Result: exit-code) since Fri 2017-04-07 20:18:38 BST; 11s ago
                      Docs: http://www.elastic.co
                      Process: 13109 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
                      Process: 13106 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
                      Main PID: 13109 (code=exited, status=1/FAILURE)

                      Apr 07 20:18:37 localhost.localdomain systemd[1]: Started Elasticsearch.
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000008a660000, 19730268...rno=12)
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: #
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # There is insufficient memory for the Java Runtime Environment to continue.
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # Native memory allocation (mmap) failed to map 1973026816 bytes for committing reserved memory.
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # An error report file with more information is saved as:
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # /tmp/hs_err_pid13109.log
                      Apr 07 20:18:38 localhost.localdomain systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
                      Apr 07 20:18:38 localhost.localdomain systemd[1]: Unit elasticsearch.service entered failed state.
                      Apr 07 20:18:38 localhost.localdomain systemd[1]: elasticsearch.service failed.
                      Hint: Some lines were ellipsized, use -l to show in full.


                      エラーがでた
                      メモリーが足りないというエラーらしい


                      [root@localhost install]# systemctl status elasticsearch
                      ● elasticsearch.service - Elasticsearch
                      Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
                      Active: failed (Result: exit-code) since Fri 2017-04-07 20:18:38 BST; 58min ago
                      Docs: http://www.elastic.co
                      Process: 13109 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
                      Process: 13106 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
                      Main PID: 13109 (code=exited, status=1/FAILURE)

                      Apr 07 20:18:37 localhost.localdomain systemd[1]: Started Elasticsearch.
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000008a660000, 19730268...rno=12)
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: #
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # There is insufficient memory for the Java Runtime Environment to continue.
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # Native memory allocation (mmap) failed to map 1973026816 bytes for committing reserved memory.
                      ## the heap to 4 GB, set:
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # An error report file with more information is saved as:
                      Apr 07 20:18:38 localhost.localdomain elasticsearch[13109]: # /tmp/hs_err_pid13109.log
                      Apr 07 20:18:38 localhost.localdomain systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
                      Apr 07 20:18:38 localhost.localdomain systemd[1]: Unit elasticsearch.service entered failed state.
                      Apr 07 20:18:38 localhost.localdomain systemd[1]: elasticsearch.service failed.
                      Hint: Some lines were ellipsized, use -l to show in full.
                      [root@localhost install]#


                      [root@localhost install]# systemctl start elasticsearch
                      [root@localhost install]#
                      [root@localhost install]# vi /etc/elasticsearch/jvm.options
                      [root@localhost install]#
                      [root@localhost install]# systemctl start elasticsearch
                      [root@localhost install]#
                      [root@localhost install]#


                      ▼7 # systemctl start elasticsearch
                      ▼8 # systemctl status elasticsearch



                      ▼9 起動確認
                      [root@localhost install]# ps -ef | grepelasticsearch
                      -bash: grepelasticsearch: command not found
                      [root@localhost install]# ps -ef | grep elasticsearch
                      elastic+ 13414 1 97 04:47 ? 00:00:53 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/usr/share/elasticsearch -cp /usr/share/elasticsearch/lib/elasticsearch-5.3.0.jar:/usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -p /var/run/elasticsearch/elasticsearch.pid --quiet -Edefault.path.logs=/var/log/elasticsearch -Edefault.path.data=/var/lib/elasticsearch -Edefault.path.conf=/etc/elasticsearch
                      root 13460 12568 0 04:48 pts/1 00:00:00 grep --color=auto elasticsearch
                      [root@localhost install]#


                      [root@localhost install]# lsof -i:9200
                      COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
                      java 13414 elasticsearch 129u IPv6 146075 0t0 TCP localhost:wap-wsp (LISTEN)
                      java 13414 elasticsearch 130u IPv6 146076 0t0 TCP localhost:wap-wsp (LISTEN)
                      [root@localhost install]#
                      [root@localhost install]#
                      [root@localhost install]# curl localhost:9200
                      {
                      "name" : "uO1KpJW",
                      "cluster_name" : "elasticsearch",
                      "cluster_uuid" : "SM8-AG97QamXTz5nxOiidQ",
                      "version" : {
                      "number" : "5.3.0",
                      "build_hash" : "3adb13b",
                      "build_date" : "2017-03-23T03:31:50.652Z",
                      "build_snapshot" : false,
                      "lucene_version" : "6.4.1"
                      },
                      "tagline" : "You Know, for Search"
                      }
                      [root@localhost install]#
                      category:elasticsearch | by:ittoocomments(0)trackbacks(0) | -

                      ad
                      Calender
                           12
                      3456789
                      10111213141516
                      17181920212223
                      24252627282930
                      << September 2017 >>
                      Selected entry
                      PR
                      Category
                      Archives
                      Recent comment
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        66hills
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        ssd
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        max
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        DOM
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        DOM
                      • コンピュータ業界の根本的な変化
                        cloud
                      • コンピュータ業界の根本的な変化
                        Dellの仮想化
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        えちごや
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        touch
                      • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
                        bob77777
                      Recent trackback
                      • スマートフォンの法人活用例
                        無線LANネットのブログ
                      • Yahoo!オークションからのアフィリエイト収入が一気に70%減になってしまい涙目になってる話
                        特選情報
                      Recommend
                      Link
                      Profile
                      Search
                      Others
                      Mobile
                      qrcode
                      Powered
                      無料ブログ作成サービス JUGEM