2ch特化型サーバ・ロ ..
[2ch|▼Menu]
97:root▲▲ ★
07/09/27 11:59:37 0 BE:2462393-PLT(77801)
squid.conf を live23 のものからこんなかんじで変更

-http_port 127.0.0.1:むぎゅ defaultsite=live23.2ch.net
+http_port 127.0.0.1:むぎゅ+1 defaultsite=live24.2ch.net

-cache_peer live23bのプライベート側IPアドレス parent ポート番号 0 no-query originserver
+cache_peer live24bのプライベート側IPアドレス parent ポート番号 0 no-query originserver

# cache_log /usr/local/squid/logs/cache.log
+cache_log /usr/local/squid/logs.live24/cache.log

# pid_filename /usr/local/squid/logs/squid.pid
+pid_filename /usr/local/squid/logs.live24/squid.pid

# snmp_port 3401
-snmp_port ほめほめ
+snmp_port ほめほめ+1

で、/var/service/squid.live24/run で、

#!/bin/sh
exec 2>&1
exec env - PATH="/usr/sbin:/usr/bin:/bin:/usr/local/bin" \
/usr/sbin/rtprio 31 setuidgid squid /usr/local/sbin/squid -D -N \
-f /usr/local/etc/squid/squid.conf.live24

crontab で、

# for squid log rotation (live24)
0 0 * * * /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf.live24 -k rotate


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

4723日前に更新/191 KB
担当:undef