全文検索:
- 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
- FreeBSD カーネル再構築 @02_freebsd:99_その他
- ution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # ... #cpu I586_CPU cpu I686_CPU ident MYKERNEL # To statically compile i... ework options GEOM_GPT # GUID Partition Tables. options COMPAT_43 ... sk # ATA disk drives device ataraid # ATA RAID drives device atapicd
- 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
- 11 ERROR:1093を回避 @02_freebsd:04_database:01_mysql
- ない <code console> update hoge set code = 0 where id IN (select id from hoge as tmp where id = 1 group by id order by id) ; ERROR 1093 (HY000): You can't specify target table 'hoge' for update
- 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
- LEFT JOIN、INNER JOIN違い @02_freebsd:04_database:01_mysql
- e> mysql> SELECT * FROM table1; +------+------+ | id | name | +------+------+ | 1 | A | | ... e> mysql> SELECT * FROM table2; +------+------+ | id | name | +------+------+ | 1 | A | | ... > select * from table1 LEFT JOIN table2 ON table1.id=table2.id; +------+------+------+------+ | id | name | id | name | +------+------+------+------+
- 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> ===
- suPHP @02_freebsd:02_www
- ng \ --enable-mbstr-enc-trans \ --enable-trans-sid \ --enable-versioning \ --enable-gd-native-ttf ... === <color red>※SuPHPの動作には[[02_freebsd:02_www:suidperl|]]が必要です。</color> ==== ソースダウンロードここで最新版をダウンロード... ィグ ==== <code console> $ ./configure --with-min-uid=100 --with-min-gid=100 \ --with-apache-user=www --with-php=/usr/local/bin/php \ --with-logfile=/var
- 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
- nice @02_freebsd:80_unixコマンド
- 低い優先度)でfindコマンドを実行する。 [1] 7994 $ ps l -p 7994 UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND 1003 7994 7647 5 -6 5 360 624... 低い優先度)でfindコマンドを実行する。 [1] 7994 $ ps l -p 7994 UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT
- 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
- jobs @02_freebsd:80_unixコマンド
- 実行されている ジョブの内容が表示されます。 オプション-lを指定すると、ジョブ番号とともにプロセスIDも表示されます。 (シェルによってはデフォルトでプロセスIDも表示されます。) ==== プロセスIDとジョブ番号の違い ==== プロセスIDは、そのUNIXが起動してから実行されたすべてのプロセスに順番にふられます。 ジョブ番号は、ユーザがそのシェル上で実行したバックグラウンドジョブに対して順番にふ
- kill @02_freebsd:80_unixコマンド
- == kill ====== ===== 機能 ===== killコマンドは、指定したプロセスIDのプロセスを終了させます。 たとえば、暴走したりハングアップしたプロセスを強制終了させる、といった事... ナルを送れます。 ===== 構文 ===== <code> kill [オプション] プロセスID kill %ジョブ番号 </code> ===== オプション ===== |-シグナル名また... 現在実行中のプロセスを表示する。 PID TT STAT TIME COMMAND 7647 p0 Ss ... 00 ps > kill 7801 プロセスID(7801)を終了させる [2] Terminated tail -5f
- 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
- MySQL - 数値に変換してソート @02_freebsd:04_database:01_mysql
- とこのようになってしまいます。 <code console> mysql> select disk_id,backup_size from backups order by backup_size desc; +---------+-------------+ | disk_id | backup_size | +---------+-------------+ | ... して、無理やり数値へ変換する。 <code console> mysql> select disk_id,backup_size from backups order by backup_size + 0 desc; +---------+-------------+ | disk_id | backup_size | +---------+-------------+ | 39