全文検索:
- 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 - CVSup @02_freebsd:01_net
- ===== # cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile ===== /etc/ports-supfileを修正 ===== <code> # vi /etc/ports-supfile --------------------------------- *default host... ==== 実行してみる ===== <code> # cvsup -g -L 2 /etc/supfile --------------------------------- . . . . .
- 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_その他
- <code> # cp /usr/share/examples/cvsup/stable-supfile /etc/stable-supfile # chmod 644 /etc/stable-supfile </code> ===== /etc/stable-supfileを修正 ===== <code> # vi /etc/stable-supfile --------------------------------- *default host
- 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:
- file @02_freebsd:80_unixコマンド
- ====== file ====== ===== 機能 ===== fileコマンドは、指定したファイルがどのような種類のファイルかを調べます。 テキストファイルか、ディレクトリか、データファイルか、シェ... プトか、 実行可能なバイナリファイルか、などを判別できます。 ===== 構文 ===== file ファイル名 ===== コマンド例 ===== <code console> > file /etc/hosts /etc/hostsを調べる /etc/hosts: ASCII text テキストファイルであることが分かる > file /etc /etcを調べる /etc: director
- 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
- tar @02_freebsd:80_unixコマンド
- をgzipで圧縮する(FreeBSD・Linux)| |j|bzip2を通して処理を行う | |X FILE|FILEに記述されたファイル(フォルダ)を除外する。| |C|指定したディレクトリにファイルを展開... ssh root@10.10.10.10 tar -C /mnt/ --sparse --one-file-system -zcp --numeric-owner --xattrs . | ssh root... tarで固めてバックアップ <code> tar -C /mnt/ --sparse --one-file-system -zcp --numeric-owner --xattrs . | ssh root
- 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でデータベース名が表示で
- WebDAV @02_freebsd:02_www
- --- </code> ■Makefileも修正 <code console> # vi Makefile -------------------修正個所----------------------- ... me "Please Input ID and Password." AuthUserfile /etc/webdav.passwd Require valid-user Order
- swapスペースを追加する方法 @02_freebsd:99_その他
- === <code console> # dd if=/dev/zero of=/usr/SWAPFILE bs=1m count=2000 </code> ====== /etc/rc.confに追加 ... <code console> # vi /etc/rc.conf ---追加---- swapfile="/usr/SWAPFILE" </code> ====== 確認 ====== <code console> # pstat -s Device 1K-blocks Use
- FreeBSD - vim @02_freebsd:99_その他
- nting on "set backup " keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more " than... tocmd BufRead *.txt set tw=78 " When editing a file, always jump to the last cursor position autoc
- 03 Postfix + amavisd + clamav @02_freebsd:03_mail
- qr'^\.(exe-ms|dll)$', # banned file(1) types, rudimentary # qr'^\.(exe|lha|tnef|cab|dll)$', # banned file(1) types ・ ・ ・ ); </code> この部分を <code> $banned_fi
- 01 sed 指定した行を表示 @02_freebsd:80_unixコマンド
- 示 ====== ===== 100行目を表示 ===== sed -n 100p testfile ===== 100-110行目を表示する ===== sed -n 110,110p testfile {{tag>sed }}
- 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