|
- http_port 3128
- #Turn logging to it's lowest level
- debug_options ALL,1
- #defines a group (or Access Control List) that includes all IP addresses
- acl all src 0.0.0.0/0.0.0.0
- #define RAM used
- cache_mem 32 MB
- #defines the cache size
- cache_dir ufs /home/marco/cache 100 16 256
- #allow all sites to use connect to us via HTTP
- http_access allow all
- #allow all sites to use us as a sibling
- icp_access allow all
- #test the following sites to check that we are connected
- dns_testnames sina.com
- #run as the squid user
- cache_effective_user marco marco
复制代码
这是我的配置文件,用 ./squid -CNd1启动后,出现:
- 2007/01/12 20:51:46| Starting Squid Cache version 2.6.STABLE6 for i686-pc-linux-gnu...
- 2007/01/12 20:51:46| Process ID 22456
- 2007/01/12 20:51:46| With 1024 file descriptors available
- 2007/01/12 20:51:46| Using epoll for the IO loop
- 2007/01/12 20:51:46| Performing DNS Tests...
- 2007/01/12 20:51:46| Successful DNS name lookup tests...
- 2007/01/12 20:51:46| DNS Socket created at 0.0.0.0, port 60481, FD 5
- 2007/01/12 20:51:46| Adding nameserver 208.109.96.1 from /etc/resolv.conf
- 2007/01/12 20:51:46| Adding nameserver 208.109.96.2 from /etc/resolv.conf
- 2007/01/12 20:51:46| Unlinkd pipe opened on FD 9
- 2007/01/12 20:51:46| Swap maxSize 102400 KB, estimated 7876 objects
- 2007/01/12 20:51:46| Target number of buckets: 393
- 2007/01/12 20:51:46| Using 8192 Store buckets
- 2007/01/12 20:51:46| Max Mem size: 32768 KB
- 2007/01/12 20:51:46| Max Swap size: 102400 KB
- 2007/01/12 20:51:46| Rebuilding storage in /home/marco/cache (CLEAN)
- 2007/01/12 20:51:46| Using Least Load store dir selection
- 2007/01/12 20:51:46| Current Directory is /usr/local/squid/sbin
- 2007/01/12 20:51:46| Loaded Icons.
- 2007/01/12 20:51:46| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 11.
- 2007/01/12 20:51:46| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
- 2007/01/12 20:51:46| WCCP Disabled.
- 2007/01/12 20:51:46| Ready to serve requests.
- 2007/01/12 20:51:46| Done reading /home/marco/cache swaplog (0 entries)
- 2007/01/12 20:51:46| Finished rebuilding storage from disk.
- 2007/01/12 20:51:46| 0 Entries scanned
- 2007/01/12 20:51:46| 0 Invalid entries.
- 2007/01/12 20:51:46| 0 With invalid flags.
- 2007/01/12 20:51:46| 0 Objects loaded.
- 2007/01/12 20:51:46| 0 Objects expired.
- 2007/01/12 20:51:46| 0 Objects cancelled.
- 2007/01/12 20:51:46| 0 Duplicate URLs purged.
- 2007/01/12 20:51:46| 0 Swapfile clashes avoided.
- 2007/01/12 20:51:46| Took 0.3 seconds ( 0.0 objects/sec).
- 2007/01/12 20:51:46| Beginning Validation Procedure
- 2007/01/12 20:51:46| Completed Validation Procedure
- 2007/01/12 20:51:46| Validated 0 Entries
- 2007/01/12 20:51:46| store_swap_size = 0k
- 2007/01/12 20:51:47| storeLateRelease: released 0 objects
复制代码
用squid -k check 无输出,
浏览器配置好后,无法使用代理,请问是怎么搞的? |
|