全文検索:
- MySQLコマンド @02_freebsd:04_database:01_mysql
- | | % | test\_% | | | 172.16.0.3 | mc_portal | mc_portal | | 172.20.0.35 | m... ==== <code> mysql> RENAME USER 'FROM_USER'@'192.168.0.%' TO 'TO_USER'@'192.168.1.%'; </code> ===== ②データベース関連 ===== ==== データベース作成 ==== <code console> ... | | | User | varchar(16) | NO | PRI | |
- tar @02_freebsd:80_unixコマンド
- 2004 etc/antivir.conf -rw-r--r-- root/wheel 1167 5 26 06:28 2004 etc/apmd.conf -rw-r--r-- root/... 6 work/ -rw-r--r-- 1 matsui users 4900 8 16 11:41 work.tar.gz -rw-r--r-- 1 matsui users 4348 8 16 11:40 work.tar.gz2 </code> ==== 特定ファイルだけを取り出す ==
- 05 rsync @02_freebsd:01_net
- =/usr/local/etc/rsyncd.secrets hosts allow = 192.168.1.0/24 hosts deny = * [all-home] comment ... ==== /etc/hosts.allowの編集 ==== <code> rsync : 192.168.1. : allow </code> <color red> inetdから起動するのではなく... 、standaloneで起動した場合は、rsyncd.confにhosts allow = 192.168.1.0/24 のように書いてアクセス制御します。 </color> ==== 実行例 ====... lete --force --delete-excluded rsync://backup@192.168.1.1/all-home /home --password-file ファイルからパスワードを
- PostgreSQLコマンド @02_freebsd:04_database:02_posgresql
- ----------+-------------- 19549 | postgres | 172.16.0.114 (1 row) </code> 「\x」を一回打っておく <code> testd... | 19549 usename | postgres client_addr | 172.16.0.114 </code> ==== パスワードなしにする ==== export P
- 15 MySQL 55 to 56 で問題 @02_freebsd:04_database:01_mysql
- is running in --secure-auth mode, but 'user'@'192.168.*.*' has a password in the old format; please ch
- ipコマンド/IPエイリアス追加 @02_freebsd:80_unixコマンド
- と、secondaryとして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
- MySQL - バックアップ @02_freebsd:04_database:01_mysql
- mysqldump --all-databases | ssh -i key root@192.168.10.10 'cat > dump.sql' ==== リモートへ圧縮してコピー ==== ... dump --all-databases | gzip | ssh -i key root@192.168.10.10 'cat > dump.sql.gz' ==== リモートへSSHしてからdum
- ifconfig @02_freebsd:80_unixコマンド
- etmask 255.255.0.0 # ifconfig eth0 10.15.201.201/16 </code> SecondaryとしてIPを追加するときは、[[02_freebsd:80_u
- Bonnie++ @02_freebsd:08_benchmarks
- P /sec %CP /sec %CP /sec %CP 16 2443 38 12962 86 12208 99 2241 35 14547 96... 0M,,51,99,13324,22,5277,8,140,99,13795,11,87.8,13,16,,,,,2443,38,12962,86,12208,99,2241,35,14547,96,12
- dig @02_freebsd:80_unixコマンド
- jp. 300 IN A 202.93.91.216 yahoo.co.jp. 300 IN A 2... . 300 IN A 202.229.198.216 yahoo.co.jp. 300 IN A 2... oo.co.jp. ;; Query time: 106 msec ;; SERVER: 192.168.1.11#53(192.168.1.11) ;; WHEN: Thu Dec 22 05:19:42 2005 ;; MSG SIZE rcvd: 473 </code> ■digコマンドでBIN
- 16 mysql community からyum @02_freebsd:04_database:01_mysql
- ====== 16 mysql community からyum ====== CentOS5 # rpm -ivh http://dev.mysql.com/get/mysql-community-
- ps @02_freebsd:80_unixコマンド
- root 8779 0.0 0.0 S Tue Aug 30 15:11:35 2016 /usr/sbin/sshd root 16253 0.3 0.0 S Tue Nov 15 11:48:32 2016 \_ sshd: matsui [priv] matsui 16255 0.1 0.0 S Tue Nov 15 11:48:33 2016 \_ sshd: matsui@pts/
- PostgreSQLインストール @02_freebsd:04_database:02_posgresql
- /pg_hba.conf host all all 192.168.1.0/24 md5 #ローカルネットワークからの md5 認証接続を許可 </c
- 07 DHCPD @02_freebsd:01_net
- # Servidores DNS. option domain-name-servers 192.168.1.1, 210.147.240.193; # Servidores WINS. # D... y local6; # Declaracao de Subrede. subnet 192.168.1.0 netmask 255.255.255.0 { # Faixa d... e IPs disponiveis para alocar. range 192.168.1.11 192.168.1.20; # Gateway. option routers 192.168.1.1; } host ThinkPad
- 06 squid @02_freebsd:01_net
- o_cache deny QUERY cache_dir ufs /work/squid 100 16 256 ↑cacheフォルダの場所指定/キャッシュ容量/サブフォルダ数/更にサブフォルダ数 c... acl CONNECT method CONNECT acl private src 192.168.1.0/255.255.255.0 http_access allow manager loc