{ Pattern }

Pattern Ref —自分用覚書

phpライブラリmemcache

11 月 4th, 2009
Posted by yref
未分類
Comments Off

[root@localhost memcached]# pecl install memcache

[root@localhost memcached]# ls /usr/lib/php/modules/

[root@localhost memcached]# ls /etc/php.d/

[root@localhost memcached]# vi /etc/php.d/memcache.ini
; Enable memcache extension module
extension=memcache.so

[root@localhost memcached]# /etc/init.d/httpd restart
httpd を停止中: [...]

read more from this post...

キャッシュサーバmemcached

11 月 1st, 2009
Posted by yref
未分類

memcachedは高性能な分散メモリキャッシュサーバです。

参考:

memcachedを知り尽くす
memcached 1.4の到来
[perl] Memcachedのインストール・利用方法
memcached(OFFICIAL)
memcached
memcached導入手順
memcachedをインストールしphpから使用する
備忘録::memcached
CentOSにmemcachedをインストールする為のSRPMを作成しました
■なぜmemcachedをセッション管理用に使うのか

参考:クライアントライブラリ

最近のmemcached界隈の賑わいについてのメモ
cache::memcached::fast とか ::XS とかとのベンチはどれくらい?
■perl の memcached libraries の速度検証CommentsAdd Star
ruby,php,perlでmemcacheの中身を使い回す
memcachedを介して、PerlとRubyでデータをほげほげしてみる
memcached+PostgreSQLで実現する
ハイパフォーマンスWebアプリケーション構築
[MySQL]Memcached Functions for MySQLCommentsAdd Star
memcached functions for MySQL をセットアップしてみる
memcachedのステータスをtop風に「memcache-top」

監視ツール

[PHP]APCのWebインターフェースっぽいmemcacheの管理画面
[memcached] PHPでmemcachedの稼働状況をチェック
memcachedの内容を確認するには

[root@localhost ~]# /usr/local/src/memcached-1.4.2/scripts/memcached-tool

■アーカイブをget
[root@localhost src]# wget http://memcached.googlecode.com/files/memcached-1.4.2.tar.gz

[root@localhost src]# tar zxvf memcached-1.4.2.tar.gz
[root@localhost src]# cd memcached-1.4.2
[root@localhost memcached-1.4.2]# ./configure
If it’s already installed, specify its path using –with-libevent=/dir/

★libeventのパスを指定しろと言われる。

[root@localhost memcached-1.4.2]# rpm -qa libevent
libevent-1.1a-3.2.1
★libeventはインストールされているのに。。。

■libevent-develをインストール
[root@localhost memcached-1.4.2]# yum install -y libevent-devel.i386
Installing [...]

read more from this post...

サーバ監視ツール nagios

11 月 1st, 2009
Posted by yref
未分類

参考

監視ツール Nagios
統合監視システム構築(Nagios)
玄箱/Fedora9へのNagiosのインストール
Centos 5.3 x86_64 のインストールではまったこと

■gdのインストール

[root@localhost src]# yum -y install gd gd-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
* addons: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
Setting up Install Process
Parsing package install arguments
Package gd-2.0.33-9.4.el5_1.1.i386 already installed and latest version
Package gd-devel-2.0.33-9.4.el5_1.1.i386 already installed and latest version
Nothing to do

■ユーザー作成 nagios:******
[root@localhost src]# useradd -m nagios
[root@localhost src]# passwd nagios
Changing password for [...]

read more from this post...

svn

7 月 27th, 2009
Posted by yref
未分類

■■■■■ http接続でのDigest認証 ■■■■■
http://blog.riywo.com/2008/04/01/134909

★ subversion.conf に追記。

/* /etc/httpd/conf.d/subversion.conf */

<Location /srv/svn>
DAV svn
##   SVNParentPath /var/www/svn
SVNParentPath /srv/svn

#
#   # Limit write permission to list of valid users.
<LimitExcept GET PROPFIND OPTIONS REPORT>
#      # Require SSL connection for password protection.
#      # SSLRequireSSL
#
#      AuthType Basic
#      AuthName “Authorization Realm”
#      AuthUserFile /path/to/passwdfile
#      Require valid-user

AuthType Digest
AuthName “Subversion-Rep”
AuthUserFile /srv/passwd/.htdigest
Require valid-user

</LimitExcept>
</Location>

/* END  /etc/httpd/conf.d/subversion.conf */

★ subversion.conf ファイルの、AuthUserFile /srv/passwd/.htdigest で指定したフォルダを作成し、Digestパスワード登録。

[root@localhost ~]# [...]

read more from this post...

CMS

6 月 15th, 2009
Posted by yref
未分類

concrete5

マイコミ
ある意味CMSの理想型かも。『Concrete5』を試す!

ThinIT
Concrete5を試そう!

read more from this post...

wp

5 月 5th, 2009
Posted by yref
未分類

WordPressブログ

 <?php
 HiLite();
 
 function HiLite {
     echo ‘コードハイライト’;
 }
 ?>

read more from this post...

BookMark

4 月 12th, 2009
Posted by yref
未分類

Social Bookmark

read more from this post...

PowerShellスクリプトの基本

4 月 8th, 2009
Posted by yref
未分類

PowerShellスクリプトの基本

ls が使えたりする♪

Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights res [...]

read more from this post...

limixライブラリ

4 月 1st, 2009
Posted by yref
未分類

#!/usr/bin/perl

#### Limixdb 使用方法 ####
#### /usr/lib/perl5/site_perl/Limixdb.pm ####

##— Limixdbをuseする —##
use Limixdb;
use DBI;
use CGI::Carp qw(fatalsToBrowser);

print "Content-type: text/html; charaset=UTF-8\n\n";

##########################
#### package Limixdb ####

##— Limixdbオブジェクトを生成 —##
my $ddhh = new Limixdb;

##— setMethod関数で、データベース情報を送信 —##
#### 必須※ 引数(1) DBドライバ[mysql || Pg] ####
#### 必須※ 引数(2) データベース名 ####
#### 省略可※ 引数(3) ユーザ名 ####
#### 省略可※ 引数(4) パスワード ####
#### (3)(4)のデフォルトは、MYSQL→root、Postgres→ootomo ####

# $ddhh->setMethod(’mysql’, ‘DB名’);
$ddhh->setMethod(’Pg’, ‘DB名’);

##— sqlCon関数で、コネクト —##
my $dbh = $ddhh->sqlCon;

my $sth = $dbh->prepare("SELECT * FROM limix");
$sth->execute;
while(@lis = $sth->fetchrow_array){
print $lis[0], "\n";
print $lis[1], "\n\n";
}

#########################
#### [...]

read more from this post...

オブジェクト指向プログラムで getter/setterメソッドを使わなければならない 10の理由

3 月 13th, 2009
Posted by yref
未分類

オブジェクト指向プログラムで
getter/setterメソッドを使わなければならない
10の理由
福盛 秀雄
fukumori at m.ieice.org

JavaやC++などのオブジェクト指向言語でプ [...]

read more from this post...

Your Own Photos Or Artwork

This is just a sample.....260 X 100

  • sample1
  • sample1
  • sample1
ホットワード 分類 自分 備忘録 httpd
割引クーポンまとめ情報 - クー割