歡迎您光臨本站 註冊首頁

裝完了squid也配置了!可就是打不開網頁,請高手指點,在線等!

# ./squid -z
2008/06/18 14:20:23| Squid is already running!  Process ID 1732

# ./squid -NCd1
2008/06/18 14:20:30| Squid is already running!  Process ID 1732


# netstat -tlunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1732/(squid)
tcp        0      0 :::22                       :::*                        LISTEN      1695/sshd
#

80也是開了的~

怎麼用IP打不開網頁呢?

請高手指點一下!

查看cache.log


2008/06/18 13:42:48| WCCP Disabled.
2008/06/18 13:42:48| Configuring Parent 192.168.3.39/80/0
2008/06/18 13:42:48| Ready to serve requests.
2008/06/18 13:42:48| Done reading /cache swaplog (0 entries)
2008/06/18 13:42:48| Finished rebuilding storage from disk.
2008/06/18 13:42:48|         0 Entries scanned
2008/06/18 13:42:48|         0 Invalid entries.
2008/06/18 13:42:48|         0 With invalid flags.
2008/06/18 13:42:48|         0 Objects loaded.
2008/06/18 13:42:48|         0 Objects expired.
2008/06/18 13:42:48|         0 Objects cancelled.
2008/06/18 13:42:48|         0 Duplicate URLs purged.
2008/06/18 13:42:48|         0 Swapfile clashes avoided.
2008/06/18 13:42:48|   Took 0.9 seconds (   0.0 objects/sec).
2008/06/18 13:42:48| Beginning Validation Procedure
2008/06/18 13:42:48|   Completed Validation Procedure
2008/06/18 13:42:48|   Validated 0 Entries
2008/06/18 13:42:48|   store_swap_size = 0k
2008/06/18 13:42:48| storeLateRelease: released 0 objects
《解決方案》

# ./squid -z
2008/06/18 14:20:23| Squid is already running!  Process ID 1732

說明squid已經運行了,你還運行它幹什麼?

80打不開是什麼個情況,好最說具體!
《解決方案》

這是配置內容!

http_port 192.168.3.41:80 vhost vport
icp_port 0
cache_peer 192.168.3.39 parent 80 0 no-query originserver

# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl IMAGE urlpath_regex images
cache deny !IMAGE
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------------------------------------------------
cache_mem 512 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 80 KB


# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -----------------------------------------------------------------------------
cache_dir ufs /usr/local/squid/var/cache 1024 56 256
access_log /usr/local/squid/var/logs/access.log squid
cache_log /usr/local/squid/var/logs/cache.log
#cache_store_log /usr/local/squid/var/logs/store.log
emulate_httpd_log on
pid_filename /usr/local/squid/var/logs/squid.pid


# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
cache_mgr david.chenfuwei@gmail.com
cache_effective_user squid
cache_effective_group squid
visible_hostname cache.shangjie.biz

# MISCELLANEOUS
# -----------------------------------------------------------------------------
logfile_rotate 0
tcp_recv_bufsize 65535 bytes
error_directory /usr/local/squid/share/errors/Simplify_Chinese

# DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
# -----------------------------------------------------------------------------
coredump_dir /usr/local/squid/var/cache
client_persistent_connections off
server_persistent_connections on
《解決方案》

先檢查是不是DNS的問題。
《解決方案》

squid返回什麼樣的出錯頁面?
另外看看squid的access.log.
《解決方案》

看樣子你要做反向代理,如果是我,我會首先在squid上面telnet parent80埠,然後在模擬訪問時,看看access.log是有什麼提示

[火星人 ] 裝完了squid也配置了!可就是打不開網頁,請高手指點,在線等!已經有452次圍觀

http://coctec.com/docs/service/show-post-29537.html