全文検索:
- MySQLコマンド @02_freebsd:04_database:01_mysql
- LL PRIVILEGES ON *.* TO 'testdb_user'@'localhost' IDENTIFIED BY PASSWORD '370f8eb673c9467f' | +------... ザ作成 ==== <code> CREATE USER 'matsui'@'localhost' IDENTIFIED BY 'pass'; </code> ==== ユーザに権限を付ける ==== ... all privileges on test.* to 'matsui'@'localhost' identified by 'pass'; </code> === ユーザに権限を付ける(ユーザ作成権... rant all privileges on test.* to matsui@localhost identified by 'pass' with grant option; </code> ===
- at コマンド @02_freebsd:80_unixコマンド
- de> ジョブの一覧 <code> at -l </code> 指定したジョブの削除 <code> at -d [job id] </code> {{tag>Unixコマンド ジョブ・タスク管理}}
- 05 rsync @02_freebsd:01_net
- る。コピー先としてネットワークでつながった別のホストを指定するときに使う | |--numeric-ids|ユーザとグループの id 番号を転送して、転送後にマッピング| |--force|ディレクトリが空でなくても削除| |--delete-excluded|受信側にある exclud ファイルも削除| ... e> ==== /usr/local/etc/rsyncd.conf ==== <code> pid file = /var/run/rsyncd.pid log file = /var/log/rsync.log syslog facility = local5 uid = root gid
- PostgreSQLコマンド @02_freebsd:04_database:02_posgresql
- s=# select * from pg_shadow ; usename | usesysid | usecreatedb | usesuper | usecatupd | ... ===== PostgreSQLでのゼロパディング ===== # select lpad(id,4,'0') as id from t_images order by id desc; こんな感じで表示される <code> id ------ 0017 0015 0014 0012 0011
- ipコマンド/IPエイリアス追加 @02_freebsd:80_unixコマンド
- ip link add link eth1 name eth1.210 type vlan id 210 ==== UP ==== ip link set eth1.210 up ===... ip link add link eth0 name eth0.100 type vlan id 100 ===== Bonding作成 ===== <code> # ip link add... link set bond0 up </code> ===== 仮想インターフェイス作成/Bridgeへ追加 ===== <code> ip link add name ethdummy10 type dummy ip link set dev ethdummy10 master [bridge] ip addr add 192.168.100.101/24 dev ethdummy10
- ApacheのCustomLog @02_freebsd:02_www
- {Foobar}i|リクエストヘッダ(Foobarで指定したもの)の内容| |%l|リモートログ名(identdをクライアントがサポートしているとき)| |%{Foobar}n|ほかのモジュールからのノー... |%p|リクエストを受けたポートの番号| |%P|リクエストを受けたApacheのプロセス番号(PID)| |%r|リクエストの最初の行| |%s|リクエストに対するHTTPのステータスコード(表3参照
- sed @02_freebsd:80_unixコマンド
- -- Sunday Monday Tuseday Wensday Thursday Friday Saturday ------------------------------------... eek.txt ------------------------------------- Friday Saturday ------------------------------------
- 18 MySQLでALTER TABLEの進捗確認 @02_freebsd:04_database:01_mysql
- そ106分くらいで終わるという計算になる。 <code> mysql> select count(id) from test_table; +------------+ | count(id) | +------------+ | 1273517123 | +------------+ 1 row in
- 01 MySQL インデックス @02_freebsd:04_database:01_mysql
- mysql> create table cloudstack_domain_resource( id int not null auto_increment, name text n... null created_at datetime not null, primary key (id), key index_date(created_at), key index_domain(
- whois @02_freebsd:80_unixコマンド
- hois.jprs.jp] [whois.jprs.jp] [ JPRS database provides information on network administration. Its use ... nic.ad.jp] [whois.nic.ad.jp] [ JPNIC database provides information regarding IP address and ASN. Its u
- MySQL - シェルで枠まで出力する @02_freebsd:04_database:01_mysql
- estdb -e 'select * from table1' +------+------+ | id | name | +------+------+ | 1 | A | | ... select * from table1' > /tmp/aaa # cat /tmp/aaa id name 1 A 2 B 3 C 4 D 5 E 6 F </code> たまにこの枠も欲しい... e1' > /tmp/aaa # cat /tmp/aaa +------+------+ | id | name | +------+------+ | 1 | A | |
- dig @02_freebsd:80_unixコマンド
- : ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58440 ;; flags: qr rd ra; QUERY: 1, ANSWER: 22,
- ps @02_freebsd:80_unixコマンド
- しているユーザ名を表示する。| |x|制御端末のないプロセス(デーモンなど)も表示する。| |p pid|プロセスIDpidのプロセスの情報のみを表示する。| |o format|出力フォーマットを指定する。| === format === ^KEY^LONG^DESCRIPTION^ |c|cmd|simple n... as in long format F field| |g|pgrp|process group ID| |G|tpgid|controlling tty process group ID| |j|cu
- 07 DHCPD @02_freebsd:01_net
- o. option domain-name "mydomain.co.jp"; # Servidores DNS. option domain-name-servers 192.168.1.1, 210.147.240.193; # Servidores WINS. # Descomentar caso utilizado. #option... especificar nenhum periodo de tempo # sera atribuido este. default-lease-time 600; # Tempo maximo... DNS. ddns-update-style none; # Caso este servidor nao seja o oficial para esta rede o # parametr
- 06 squid @02_freebsd:01_net
- ====== 06 squid ====== スクイッドと読むらしいですね。日本語訳するとヤリイカの事だそうです。 squidでプロキシキャッシュサーバを作成してみたいと思います。 ===== 環境 ===== FreeBSD 6.0 squid 2.5 ===== インストール ===== <code> # cd /usr/ports/www/squid # make install clean ;rehash </code> ===== /usr