全文検索:
- 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/local/etc/squid/squid.confを設定 ===== ログディレクトリとキャッシュディレクトリを変更しました。
- FreeBSD カーネル再構築 @02_freebsd:99_その他
- ework options GEOM_GPT # GUID Partition Tables. options COMPAT_43 ... sk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives #device ... # ATAPI tape drives options ATA_STATIC_ID # Static device numbering # SCSI Controllers
- ps @02_freebsd:80_unixコマンド
- しているユーザ名を表示する。| |x|制御端末のないプロセス(デーモンなど)も表示する。| |p pid|プロセスIDpidのプロセスの情報のみを表示する。| |o format|出力フォーマットを指定す... as in long format F field| |g|pgrp|process group ID| |G|tpgid|controlling tty process group ID| |j|cutime|cumulative user time| |J|cstime|cumulative system time| |
- 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
- 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 | +------+------+------+------+
- 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
- suPHP @02_freebsd:02_www
- ng \ --enable-mbstr-enc-trans \ --enable-trans-sid \ --enable-versioning \ --enable-gd-native-ttf ... ィグ ==== <code console> $ ./configure --with-min-uid=100 --with-min-gid=100 \ --with-apache-user=www --with-php=/usr/local/bin/php \ --with-logfile=/var... --with-apr=/usr/local/bin/apr-1-config --with-setid-mode=owner </code> ==== suPHP_AddHandlerを使えるようにm
- 05 rsync @02_freebsd:01_net
- クでつながった別のホストを指定するときに使う | |--numeric-ids|ユーザとグループの id 番号を転送して、転送後にマッピング| |--force|ディレクトリが空でなくても削除| |--d... 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 = wheel auth users=backup secrets f
- kill @02_freebsd:80_unixコマンド
- ナルを送れます。 ===== 構文 ===== <code> kill [オプション] プロセスID kill %ジョブ番号 </code> ===== オプション ===== |-シグナル名また... 現在実行中のプロセスを表示する。 PID TT STAT TIME COMMAND 7647 p0 Ss ... 00 ps > kill 7801 プロセスID(7801)を終了させる [2] Terminated tail -5f /var/log/messages 終了の旨が表示される > ps 7801 PID TT STAT TIME COMMAND プロセスID(7801)は存在しない
- 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
- MySQLコマンド @02_freebsd:04_database:01_mysql
- ==== テーブル作成 ==== <code> CREATE TABLE hoge_tbl ( id int PRIMARY KEY AUTO_INCREMENT, name text ); </co... -----+---------+------+-----+---------+-------+ | id | int(11) | NO | PRI | NULL | | | ... -----+---------+------+-----+---------+-------+ | id | int(11) | NO | PRI | NULL | | | ... ortbld-freebsd6.3 (i386) using 5.2 Connection id: 104553 Current database: syslog
- Intel-NIC @02_freebsd:01_net
- nloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=3294|em-1.7.41.tar.gz]] [[http://downloadcenter.intel.com/Detail_Desc.aspx?lang=jpn&DwnldID=10206|em-5.1.5.tar.gz]] [[http://downloadcenter.intel.com/Detail_Desc.aspx?lang=jpn&DwnldID=13742|em-6.6.6.tar.gz]]
- WebDAV @02_freebsd:02_www
- exing AuthType Basic AuthName "Please Input ID and Password." AuthUserfile /etc/webdav.passwd Require valid-user Order allow,deny Allow from all </Loc