全文検索:
- MySQLコマンド @02_freebsd:04_database:01_mysql
- d6.3 (i386) using 5.2 Connection id: 104553 Current database: syslog Current user... ort: mysql-server-5.1.28 Protocol version: 10 Connection: Localhost via UNIX socke... ql.sock Uptime: 15 days 11 hours 10 min 32 sec Threads: 2 Questions: 2293516 Slo
- 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>
- PostgreSQLコマンド @02_freebsd:04_database:02_posgresql
- | | matsui | 100 | t | f | f | md5a88cf8... id ------ 0017 0015 0014 0012 0011 0010 0009 0008 0007 0006 0005 0003 0002 0001
- 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
- MySQL - バックアップ @02_freebsd:04_database:01_mysql
- sqldump --all-databases | ssh -i key root@192.168.10.10 'cat > dump.sql' ==== リモートへ圧縮してコピー ==== mysqldump --all-databases | gzip | ssh -i key root@192.168.10.10 'cat > dump.sql.gz' ==== リモートへSSHしてからdumpの場合 ==== ssh root@host "mysqldump --all-databases"
- 01 sed 指定した行を表示 @02_freebsd:80_unixコマンド
- ====== 01 sed 指定した行を表示 ====== ===== 100行目を表示 ===== sed -n 100p testfile ===== 100-110行目を表示する ===== sed -n 110,110p testfile {{tag>sed }}
- 18 MySQLでALTER TABLEの進捗確認 @02_freebsd:04_database:01_mysql
- ===== 下記の例だと、テーブルに12万行あって 1秒間に、200000行処理しているので、およそ106分くらいで終わるという計算になる。 <code> mysql> select count(id)... ----+ | 1273517123 | +------------+ 1 row in set (10 min 26.05 sec) $ bash alert_progress.sh 200000 2
- ifconfig @02_freebsd:80_unixコマンド
- eth0にIPを設定する ===== <code console> # ifconfig eth0 10.15.201.201 netmask 255.255.0.0 # ifconfig eth0 10.15.201.201/16 </code> SecondaryとしてIPを追加するときは、[[02
- whois @02_freebsd:80_unixコマンド
- Corporation m. [Administrative Contact] HA14103JP n. [Technical Contact] KM43416JP p. [... /11/17 [Last Update] 2017/04/20 10:09:53 (JST) </code> ===== 管理者情報を確認 ===== [Admin... ct]をwhoisで確認すると、管理者情報も確認できます。 <code> # whois HA14103JP [Querying whois.nic.ad.jp] [whois.nic.ad.jp] [... Information: a. [JPNIC Handle] HA14103JP c. [Last, First] Akiyoshi, Hisa
- 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
- 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
- ps @02_freebsd:80_unixコマンド
- ax -o pid,lstart,cmd | grep sshd 5875 Thu Jun 6 10:01:54 2013 grep sshd 7885 Thu Apr 12 13:31:26 20
- PostgreSQLインストール @02_freebsd:04_database:02_posgresql
- ====== 起動 ====== <code console> # /usr/local/etc/rc.d/010.pgsql.sh start </code> {{tag>PostgreSQL}}
- find @02_freebsd:80_unixコマンド
- サイズが10M以上のものを表示。 <code console> $ find ./ -size +10000k -exec ls -ahl {} \; -rwxr--r-- 1 matsui ma... JP.zip -rwxr--r-- 1 matsui matsui 3.3G 7 3 10:09 ./TEST/Fedora-9-i386-DVD.iso -rwxr--r-- 1 ma... 上のファイルを検索 <code console> $ find /var/log/ -size +1000k -exec ls -ahl {} \; </code> {{tag>Unixコマンド ファ
- 07 DHCPD @02_freebsd:01_net
- es DNS. option domain-name-servers 192.168.1.1, 210.147.240.193; # Servidores WINS. # Descomentar caso utilizado. #option netbios-name-servers 10.10.0.9; # Tempo padrao de alocacao em segundos. # Se o cliente nao especificar nenhum periodo de