投稿

1月, 2010の投稿を表示しています

ファイル内文字検索 find grep

特定のディレクトリ内のファイルの中身で 文字列にマッチするファイルを検索するコマンド find [ディレクトリ] -print | xargs grep [検索文字]

CPANの起動コマンド

CAPNの起動コマンド sudo perl -MCPAN -e shell  cpan[1]>   ←CPANのコマンドプロンプトが表示される cpan[2]> install  MooseX::Singleton    ←インストール方法 cpan[3]> quit    ←終了コマンド

perlの動作設定

/etc/apache2/httpd.conf の編集 白紙だったhttpd.confファイルに以下の内容を記述 # ScriptAlias ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin">     AllowOverride None     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch     Order allow,deny     Allow from all </Directory> /etc/apache2/mods-available/mime.conf の編集 以下のコメントアウトを外し有効にする AddHandler cgi-script .cgi .pl その後、apacheの再起動を行う。 sudo /etc/init.d/apache2 restart

MySQL

 ログインコマンド mysql -u root -p root  ←-u [ユーザ]  -p [DB名]   Enter password: xxxx  ←パスワードを入力]