全文検索:
- UNIXBENCH @02_freebsd:08_benchmarks
- 117.7 lps (29.8 secs, 3 samples) File Read 1024 bufsize 2000 maxblocks 77817.0 KBps (30.0 secs, 3 samples) File Write 1024 bufsize 2000 maxblocks 15344.0 KBps (30.0 secs, 3 samples) File Copy 1024 bufsize 2000 maxblocks 15387.0 KBps (30.0 secs, 3 samples) File Read 256 bufsize 500 maxblocks 24471.0 KBps
- FreeBSD カーネル再構築 @02_freebsd:99_その他
- de> # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO88... is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or nec
- FreeBSD - CVSup @02_freebsd:01_net
- i-16.1h_2 # make install </code> ===== ports-supfileを用意 ===== # cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile ===== /etc/ports-supfileを修正 ===== <code> # vi /etc/ports-supfile ---------------------------------
- FreeBSD - vim @02_freebsd:99_その他
- <code> set nobackup if v:lang =~ "^ko" set fileencodings=euc-kr set guifontset=-*-*-medium-r-... -*-*-*-*-*-*-* elseif v:lang =~ "^ja_JP" set fileencodings=euc-jp set guifontset=-misc-fixed-me... -*-*-*-*-*-*-* elseif v:lang =~ "^zh_TW" set fileencodings=big5 set guifontset=-sony-fixed-medi... 5-c-160-big5-0 elseif v:lang =~ "^zh_CN" set fileencodings=gb2312 set guifontset=*-r-* endif
- 05 rsync @02_freebsd:01_net
- 使う。 \\ 空行と、';' または '#' で始まる行は無視されます。 | |--exclude FILE|「--exclude」オプションと似ていますが、代わりに FILE に除外するファイルのリストを記述します。FILE の空行と、';' または '#' で始まる行は無視されます。 | |--stats|コピーの結果を表示する。指定しないといっさいのメッセージは表示されない ... ==== /usr/local/etc/rsyncd.conf ==== <code> pid file = /var/run/rsyncd.pid log file = /var/log/rsync.
- FreeBSD - アップグレード @02_freebsd:99_その他
- 1h_2 # make install </code> ===== /etc/stable-supfileを用意 ===== <code> # cp /usr/share/examples/cvsup/stable-supfile /etc/stable-supfile # chmod 644 /etc/stable-supfile </code> ===== /etc/stable-supfileを修正 ===== <code> # vi /etc/stable-
- MySQL - レプリケーション @02_freebsd:04_database:01_mysql
- </code> ===== 更新ログの状態を取得する ===== 実行したら、画面に出力された「File」と「Position」カラムの内容をメモしておきます。\\ これは、現時点での更新ログファイル名と... D='<replication password>', MASTER_LOG_FILE='<recorded log file name>', MASTER_LOG_POS=<recorded log offset>; mysql> START SLAVE; </c... Connect_Retry: 60 Master_Log_File: mysql-bin.000007 Read_Master_Log_Pos:
- Bonnie++ @02_freebsd:08_benchmarks
- 'em...done...done...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done.
- file @02_freebsd:80_unixコマンド
- ====== file ====== ===== 機能 ===== fileコマンドは、指定したファイルがどのような種類のファイルかを調べます。 テキストファイルか、ディレクトリか、データファイルか、シェルスクリプトか、 実行可能なバイナリファイルか、などを判別できます。 ===== 構文 ===== file ファイル名 ===== コマンド例 ===== <code console> > file /etc/hosts /etc/hostsを調べる /etc/hosts: AS
- suPHP @02_freebsd:02_www
- er=www --with-php=/usr/local/bin/php \ --with-logfile=/var/log/apache/suphp.log --with-apxs=/usr/local/... /usr/local/etc/suphp.conf [global] ;Path to logfile logfile=/var/log/apache/suphp.log ;Loglevel loglevel=info ;User Apache is running as webserver... t ;chroot=/mychroot ; Security options allow_file_group_writeable=false allow_file_others_writeabl
- chmod @02_freebsd:80_unixコマンド
- 変更する。 ===== 構文 ===== <code> chmod (オプション) [a+w] [file name] chmod (オプション) [644] [file name] </code> ===== オプション ===== <code> -R 指定されたディレクトリ以下のファイルのアクセス... |x|1|実行可能| ===== コマンド例 ===== <code> > chmod a+w file1 全てのユーザーに書き込み権限を付加&br; > chmod 644 file2 file2を644(rw-r--r--)に変更&br; > chmod 701 *.cgi 拡張子がc
- tar @02_freebsd:80_unixコマンド
- をgzipで圧縮する(FreeBSD・Linux)| |j|bzip2を通して処理を行う | |X FILE|FILEに記述されたファイル(フォルダ)を除外する。| |C|指定したディレクトリにファイルを展開する| ===== コマンド例 ===== ==== /etcディレクトリ以下のファイルをフロッピーデ... イルだけを取り出す ==== <code console> $ tar zxvf foo.tgz filename </code> ==== 指定したディレクトリに展開する ==== hogeディレクト... ssh root@10.10.10.10 tar -C /mnt/ --sparse --one-file-system -zcp --numeric-owner --xattrs . | ssh root
- 03 Postfix + amavisd + clamav @02_freebsd:03_mail
- </code> === 添付ファイルがあるとはじかれる === <code> $banned_filename_re = new_RE( ### BLOCKED ANYWHERE # qr'^UNDE... qr'^\.(exe-ms|dll)$', # banned file(1) types, rudimentary # qr'^\.(exe|lha|tnef|cab|dll)$', # banned file(1) types ・ ・ ・ ); </code> この部分を <code> $banned_filename_re = new_RE(); </code> === 参考URL === [[http
- 02 ProFTPD @02_freebsd:01_net
- ストールする場合 ==== <code console> # cd /usr/ports/distfiles # wget http://www.hayasoft.com/haya/linux/proft... nlst-ffftp.patch # vi /usr/ports/ftp/proftpd/Makefile.local PATCHFILES += proftpd-1.3.1-nlst-ffftp.patch PATCH_DIST_STRIP = -p1 NO_CHECKSUM = yes </code>
- Apache 2.0 + MySQL + PHP @02_freebsd:02_www
- WITH_SUEXEC=yes SUEXEC_DOCROOT=/home \ SUEXEC_LOGFILE=/var/log/apache/suexec.log \ install </code> ===... /sh /usr/l ocal/bin/mysqld_safe --defaults-extra-file=/var/db/m mysql 22702 0.0 7.7 65468 24832 ... 0.96 /usr/local/l ibexec/mysqld --defaults-extra-file=/var/db/mysql/my.c </code> mysqlshowでデータベース名が表示で