2008年2月9日土曜日

squidの起動コマンド

通常
# /usr/local/squid/sbin/RunCache &

直接 squid を起動せずに RunCache を起動する理由は、なんらかの原因で squid が死んでしまっても、 RunCache がそれをチェックして再び起動し直してくれるから


ログ情報を標準エラー出力にも出力する
# /usr/local/squid/bin/squid -NCd1

Squidが正しく動作できるよう準備が整っていると以下のようなログ情報が出力されるはず。

2001/10/11 18:55:26| Starting Squid Cache version 2.4.STABLE2 for i686-pc-linux-gnu...
2001/10/11 18:55:26| Process ID 5346
2001/10/11 18:55:26| With 1024 file descriptors available
2001/10/11 18:55:26| Performing DNS Tests...
2001/10/11 18:55:26| Successful DNS name lookup tests...
2001/10/11 18:55:26| DNS Socket created on FD 4
2001/10/11 18:55:26| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2001/10/11 18:55:26| Unlinkd pipe opened on FD 9
2001/10/11 18:55:26| Swap maxSize 102400 KB, estimated 7876 objects
2001/10/11 18:55:26| Target number of buckets: 393
2001/10/11 18:55:26| Using 8192 Store buckets
2001/10/11 18:55:26| Max Mem size: 8192 KB
2001/10/11 18:55:26| Max Swap size: 102400 KB
2001/10/11 18:55:26| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2001/10/11 18:55:26| Using Least Load store dir selection
2001/10/11 18:55:26| Set Current Directory to /usr/local/squid/cache
2001/10/11 18:55:26| Loaded Icons.
2001/10/11 18:55:26| Accepting HTTP connections at 0.0.0.0, port 3128, FD 10.
2001/10/11 18:55:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2001/10/11 18:55:26| WCCP Disabled.
2001/10/11 18:55:26| Ready to serve requests.
2001/10/11 18:55:26| Done scanning /usr/local/squid/cache swaplog (0 entries)
2001/10/11 18:55:26| Finished rebuilding storage from disk.
2001/10/11 18:55:26| 0 Entries scanned
2001/10/11 18:55:26| 0 Invalid entries.
2001/10/11 18:55:26| 0 With invalid flags.
2001/10/11 18:55:26| 0 Objects loaded.
2001/10/11 18:55:26| 0 Objects expired.
2001/10/11 18:55:26| 0 Objects cancelled.
2001/10/11 18:55:26| 0 Duplicate URLs purged.
2001/10/11 18:55:26| 0 Swapfile clashes avoided.
2001/10/11 18:55:26| Took 0.5 seconds ( 0.0 objects/sec).
2001/10/11 18:55:26| Beginning Validation Procedure
2001/10/11 18:55:26| Completed Validation Procedure
2001/10/11 18:55:26| Validated 0 Entries
2001/10/11 18:55:26| store_swap_size = 84k
2001/10/11 18:55:27| storeLateRelease: released 0 objects

Ready to serve requestsというメッセージが出ていればひとまずOK。キャッシュ用のディレクトリやログファイルのための準備ができているというということになります。


参考
http://nos-takamatsu.ddo.jp/linux/redhat/squid1.html
http://arika.org/doc/sd.200112

0 件のコメント: