全文検索:
- UNIXBENCH @02_freebsd:08_benchmarks
- s: 0.84, 0.44, 0.26 -r-xr-xr-x 1 root wheel 105152 3 13 21:47 /bin/sh /bin/sh: ELF 32-bit LS... /usr Dhrystone 2 using register variables 1072288.8 lps (10.0 secs, 10 samples) Double-Precision Whetstone 300.0 MWIPS (10.0 secs, 10 samples)
- tar @02_freebsd:80_unixコマンド
- 04 etc/amd.map -rw-rw-r-- root/antivir 3623 11 10 07:38 2004 etc/antivir.conf -rw-r--r-- root/whee... etc/auth.conf -rw-rw-r-- root/antivir 3730 11 10 07:31 2004 etc/avguard.conf -rw-r--r-- root/whee... 6:28 2004 etc/crontab -rw-r--r-- root/wheel 108 5 26 06:28 2004 etc/csh.cshrc -rw-r--r-- root/... .gz ./hoge </code> ==== tar でディレクトリ丸ごとコピー ==== 10.10.10.10の/mnt/ を 10.10.10.20の/mnt/ に丸ごとコピー <code>
- ipコマンド/IPエイリアス追加 @02_freebsd:80_unixコマンド
- condaryとしてIPが追加される。 <code> # ip addr add 192.168.100.5/24 brd 192.168.100.255 dev eth0 </code> ===== IP削除 ===== <code> # ip addr del 192.168.100.5/24 brd 192.168.100.255 dev eth0 </code> ===== IP確認 ===== <code> # ip -4 a 1: lo: <LOOPBACK,UP,LOW
- ifconfig @02_freebsd:80_unixコマンド
- ether 00:80:ad:71:82:d6 media: 10baseT/UTP status: active supported media: autoselect 10base5/AUI 10base2/BNC 10baseT/UTP <full-duplex> 10baseT/UTP # ifconfig de0 172.17.1.99 netmask 0xffffff00 bro
- traceroute @02_freebsd:80_unixコマンド
- ute flateight.com traceroute to flateight.com (59.106.13.38), 64 hops max, 40 byte packets 1 218.227... 247.126) 16.920 ms 17.880 ms 16.116 ms 3 219.107.255.254 (219.107.255.254) 19.165 ms 18.637 ms 18.326 ms 4 133.205.1.1 (133.205.1.1) 18.896 ms 18.610 ms 19.348 ms 5 210.173.176.63 (210.173.176.63)
- FreeBSD カーネル再構築 @02_freebsd:99_その他
- ip'') device em # Intel PRO/1000 adapter Gigabit Ethernet Card device ixgb # Intel PRO/10GbE Ethernet Card device txp ... bfe # Broadcom BCM440x 10/100 Ethernet #device bge # Broadcom BCM570xx Gigabit Ethernet #device
- 20 wait_timeoutとthread_cache_size @02_freebsd:04_database:01_mysql
- -----------------+-------+ | max_connect_errors | 10 | | max_connections | 100 | +--------------------+-------+ 2 rows in set (0.00 sec) </code... なっていないスレッドの数| <code|my.cnf> thread_cache_size = 100 </code> ===== オンラインで反映 ===== wait_timeoutとth... meout = 360; mysql>SET GLOBAL thread_cache_size = 100; </code> ===== thread_cache_sizeの考察 ===== [[h
- netstat @02_freebsd:80_unixコマンド
- eign Address (state) tcp4 0 0 105.233.75.202.e.50205 itpro.nikkeibp.c.http ESTABLISHED tcp4 0 0 105.233.75.202.e.http ThinkPad.4170 TIME_WAIT tcp4 0 0 105.233.75.202.e.http ThinkPad.4169 TIME_WAIT tcp4 0 0 105.233.75.202.e.http ThinkPad.4168 TIME_W
- 02 ProFTPD @02_freebsd:01_net
- roftpd.org/ より最新のtarballをダウンロードする。 最新はproftpd-1.2.10.tar.gz(2005年4月25日現在) <code console> > wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.10.tar.gz </code> ===== パッチを持ってくる ===== http://www... oft.com/haya/linux/proftpd-nlst-patch/proftpd-1.2.10-nlst-ffftp.patch </code> ===== ソースの展開 ===== <code console> > tar zxvf proftpd-1.2.10.tar.gz </code> ===== インストール ===== <code console>
- dig @02_freebsd:80_unixコマンド
- yahoo.co.jp. 300 IN A 210.80.242.236 yahoo.co.jp. 300 IN A 210.80.243.14 yahoo.co.jp. 300 IN A 210.81.3.241 yahoo.co.jp. 300 IN A 210.81.150.5 yahoo.co.jp. 900 IN
- unzip @02_freebsd:80_unixコマンド
- --- ---- ---- ---- 4 05-09-14 11:10 a.txt 4 05-09-14 11:10 b.txt 4 05-09-14 11:10 c.txt -------- ------- 12 ... -rw-rw-r-- 2.3 unx 4 tx stor 9-May-14 11:10 a.txt -rw-rw-r-- 2.3 unx 4 tx stor 9-May
- viエディタ @02_freebsd:80_unixコマンド
- の指定ができ、コマンドを実行するのにタイプ量を大幅に減らすことができます。 <code> ▼例 10L 10文字分カーソルを右に移動 3d 3単語前に移動 9dd 9行削除する 8yy 8行コピーする 5H ... を文字列Bに置換| |:::|:::|(全ての行で、合致するパターン全てを置換) | |:::|:10,50s/文字列A/文字列B/g|文字列Aを文字列Bに置換| |:::|:::|(10行目から50行目までの間で、合致するパターン全てを置換) | |:::|:10,$s/文字列A/文字列B/g|文字列
- IPアドレス-アドレスナンバー @02_freebsd:04_database:01_mysql
- umber) | +------+----------------------+ | 4611 | 10.10.0.3 | +------+----------------------+ 1 row in set (0.00 sec) </code> 逆は INET_ATON <code console> mysql> select INET_ATON('10.10.0.3'); +------------------------+ | INET_ATON('10.10.0.3') | +------------------------+ |
- 01 Wget @02_freebsd:01_net
- figure > make </code> これだけでコンパイルできる(筆者はFreeBSD4.10で確認済み)。なお、srcディレクトリの下にwgetができます。 あと、コンパイラさえあればWind... 応用的使い方 ===== ○応用1 <code console> wget -r -L -l 10 http://flateight.com/~matsui/index.html </code> h... /flateight....を再帰回収(-r)で相対リンクだけ(-L)をたどり 深さ10まで(-l 10)でダウンロードする。 HTTP(ホームページ)の場合はこの使い方が一般的。 ○応用2 <code
- suPHP @02_freebsd:02_www
- ==== <code console> $ ./configure --with-min-uid=100 --with-min-gid=100 \ --with-apache-user=www --with-php=/usr/local/bin/php \ --with-logfile=/var/lo... al notation umask=0022 ; Minimum UID min_uid=100 ; Minimum GID min_gid=100 [handlers] ;Handler for php-scripts x-httpd-php=php:/usr/local/