2014年07月25日のつぶやき

0
    14:47
    newrelicめも http://t.co/VC3WcG6un6 #jugem_blog
    15:02
    newrelicめも http://t.co/kf6m4Dr6WF #jugem_blog
    • 2014.07.26 Saturday
    • -
    • 03:01
    • -
    • -
    • -
    • -
    • by orz

    newrelicめも

    0
      newrelicのインストール 

      事前にアカウント登録が必要

      newrelic-sysmondのインストール 
      # rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
      # yum install newrelic-sysmond

      ライセンスキーの登録 
      コマンドを実行することで、リソース状況の確認がとれる
      https://rpm.newrelic.comのアカウントセッティングから、確認できる
      # nrsysmond-config --set license_key=**************************************

      プラグイン導入のための準備 
      LICENSE_KEY=************************************ ¥
      bash -c "$(curl -sSL https://download.newrelic.com/npi/release/install-npi-linux-redhat-x86.sh)"

      mysqlのプラグインを入れる場合
      # /root/newrelic-npi/npi install com.newrelic.plugins.mysql.instance


      sample
      こんな感じになる模様

       

      2014年07月04日のつぶやき

      0
        15:11
        cpanmとか http://t.co/9h7J5i1GUF #jugem_blog
        • 2014.07.05 Saturday
        • -
        • 03:01
        • -
        • -
        • -
        • -
        • by orz

        cpanmとか

        0
          cpanm用の設定ファイルを作成するスクリプトをかいてみた。
          #!/usr/bin/perl
          use Data::Dumper;
          use ExtUtils::Installed;
          my $mod_name;
          my $ver;
          my $mod_ref= ExtUtils::Installed->new;
          foreach my $m ($mod_ref->modules) {
             $mod_name = $m;
             $ver      = $mod_ref->version($m);
             if ( $ver ) {
                print "requires ¥'$mod_name¥',¥'== $ver¥';¥n";
             }
             else {
                print "requires ¥'$mod_name¥',¥'¥';¥n";
             }
          }

           結果をcpanfileに掃出し、インストールしてみたところ
          なんとなく動いた。うへへ。
          # perl cpanm --installdeps .

          2014年07月03日のつぶやき

          0
            18:43
            え?最近まで知らなかったよ! http://t.co/9QOaDKy9Cq #jugem_blog
            • 2014.07.04 Friday
            • -
            • 03:02
            • -
            • -
            • -
            • -
            • by orz

            え?最近まで知らなかったよ!

            0
              え?最近まで知らなかったよ!

              久しぶりに、小池さんのお題でテンションあがりましたよ!!
              まさか、某議員ネタをだしてくるとは・・・
              最近まで知らなかったことといえば、cpanmでcpanもジュールの
              バージョンを固定できることかなぁ
               

              1

              calendar

              S M T W T F S
                12345
              6789101112
              13141516171819
              20212223242526
              2728293031  
              << July 2014 >>

              selected entries

              categories

              archives

              recent comment

              recent trackback

              recommend

              links

              profile

              書いた記事数:219 最後に更新した日:2022/09/09

              search this site.

              others

              mobile

              qrcode

              powered

              無料ブログ作成サービス JUGEM