顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


文章 - chenfm

頁: 1 ... 7 8 [9]
241
請問要如何將 port 25 打開??
還有請問哪有 smtp 認證的文章可供參考?
謝謝.

242
在 8.0 的版本中,有很多東西都很 7.x 不一樣了.
例如 redhat.mc的檔案不見了,也找不到 inetd.conf
現在只有 port 110 成功的 run 起來而已.
請問要如何成功的架起 Mail Server ?
謝謝各位.

243
引用
請問你的DisplayLogin是設為兩筆嗎?
另外你的DefaultRoot設在哪裡?


我的DisplayLogin 只有設一筆,
但是我沒有 DefaultRoot
請問要設在哪裡?
謝謝.

244
引述: "zoob"
引述: "chenfm"
引述: "twu2"
如果每個人都要一樣的訊息, 指定路徑就可以了.
例如放在 /etc/ 下面, 就指定

DisplayLogin /etc/welcome.msg


我的 Proftpd 重裝過後位置在 /usr/local/proftpd
我將proftpd.conf 的檔案內容改為
DisplayLogin /etc/welcome.msg 及
DisplayLogin welcome.msg
都無法顯示,我在 /etc 及 /usr/local/proftpd/etc
都有放置 welcome.msg 檔案,但都是沒有辦法顯示.....
請問問題可能出在哪裡??
謝謝各位.


welcome.msg的permission呢?


設為 666 應該所有人都可以讀取吧?

245
引述: "twu2"
如果每個人都要一樣的訊息, 指定路徑就可以了.
例如放在 /etc/ 下面, 就指定

DisplayLogin /etc/welcome.msg


我的 Proftpd 重裝過後位置在 /usr/local/proftpd
我將proftpd.conf 的檔案內容改為
DisplayLogin /etc/welcome.msg 及
DisplayLogin welcome.msg
都無法顯示,我在 /etc 及 /usr/local/proftpd/etc
都有放置 welcome.msg 檔案,但都是沒有辦法顯示.....
請問問題可能出在哪裡??
謝謝各位.

246
引述: "chenfm"

我想請問user登入時的welcome.msg檔案是否能提供例如,
線上使用者人數,系統時間,以及我想提供給user的訊息,
如果可以,我應該把welcome.msg的檔案放在哪裡?
才能讓所有使用者登入時都看得到?
像gerrybbs兄所提到的
將 welcome.msg 置於 /home/lucifer ,並於 /etc/proftpd.conf 增加一行

==================
DisplayLogin welcome.msg
==================

不是 anonymous 標籤內那個喔!
welcome.msg 須有讀取權限

是所有使用者都看得到?還是只有lucifer才看得到?
還有anonymous標籤內的不能使用,是否自己增加一行?
謝謝各位.

抱歉....可能是我描述的不夠清楚,
我不是要知道如何寫 welcome.msg 檔案,
而是想要知道 welcome.msg 的檔案要放在哪裡,
才能夠讓所有 user 登入後都可以看到?
謝謝各位.

247
抱歉,我可能說的不夠清楚.
以下是我的 proftpd.conf 檔案內容

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName         "star"
ServerType         standalone
DefaultServer         on

# Port 21 is the standard FTP port.
Port            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask            022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances         30

# Set the user and group that the server normally runs at.
User            nobody
Group            nobody

# Normally, we want files to be overwriteable.

  AllowOverwrite      on


# A basic anonymous configuration, no upload directories.

  User            ftp
  Group            ftp
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias         anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients         10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin         welcome.msg
  DisplayFirstChdir      .message

  # Limit WRITE everywhere in the anonymous chroot
 
    DenyAll
 




然後這是我登入FTP 時的訊息

Connected to 61.xx.xx.xx
220 ProFTPD 1.2.6 Server (star) [star]
User (61.xx.xx.xx:(none)): lucifer
331 Password required for lucifer.
Password:
230 User lucifer logged in.
ftp> pwd
257 "/home/lucifer" is current directory.
ftp>

我想請問user登入時的welcome.msg檔案是否能提供例如,
線上使用者人數,系統時間,以及我想提供給user的訊息,
如果可以,我應該把welcome.msg的檔案放在哪裡?
才能讓所有使用者登入時都看得到?
像gerrybbs兄所提到的
將 welcome.msg 置於 /home/lucifer ,並於 /etc/proftpd.conf 增加一行

==================
DisplayLogin welcome.msg
==================

不是 anonymous 標籤內那個喔!
welcome.msg 須有讀取權限

是所有使用者都看得到?還是只有lucifer才看得到?
還有anonymous標籤內的不能使用,是否自己增加一行?
謝謝各位.

248
引述: "netman"
輸入 pwd 後按一個 enter ,看到啥?

sorry....
我輸入pwd後,出現 257 "/home/lucifer" is current directory.

249
引述: "netman"
proftp 是怎麼設的?(路逕)
loging 後輸入 pwd 看到甚麼?


proftp的路徑我是裝在 /var/proftpd
login之後只有看到系統版本,FTP名稱及使用者名稱.

250
引述: "SaPow"
用iptables的話注意一下MAC的有效範圍..


請問一下,我架的Server只想讓特定的使用者連上,
那是否只要使用iptables就好了?
那請問MAC的有效範圍是什麼意思呢?
謝謝.

251
引述: "ericbbs"
在/etc/ftpaccess中加入
message  .message           cwd=*
則會在該目錄下的 .message 檔的內容


可是我架的 proftpd 1.2.6 裡,沒有各位說的ftpaccess檔案耶?
我將welcome.msg放在/etc 下,一樣無法顯示訊息.

252
各位好,弟架了一個Proftpd 可是要如何秀出歡迎訊息呢?
我將檔案放在/home下面但是還是沒用,請教一下各位,
謝謝.

253
Linux 討論版 / Re: 請教高手mail server的問題:
« 於: 2002-10-11 08:53 »
引述: "hgms"
請教高手:
我的公司架了一台Linux mail server,因公司有一些商業機密怕流出(都是圖檔),主管希望將mail能有效控管,不會將資料用mail的方式寄出,而且只能讓業務人員收發Internet及Intranet的信件
而其他人員能收發Intranet的mail而不能寄到外面的mail box(如hotmail等),可是又要可以上網,希望有高手能幫小弟解決此問題


我不是高手,但是這個問題好像可以用 Proxy + 防火牆來解決.
所有的資料進出都透過防火牆來管理,internet 只能利用Proxy來上,
這樣應該可以解決吧?
可是Webmail要擋好像比較麻煩.

254
弟想請問,有什麼方法可以利用MAC Address 來限制使用者嗎?
假設我架了 FTP 和 WEB Server ,但是只想讓特定的使用者使用,
不過有些使用者是透過IP分享器連上網路的,有些使用者常常使用不同的IP,
上網.
我知道可以限定IP,只有系統認定的IP才可連上,但是請問可以使用
MAC Address嗎??
若可以,可否請教該如何做.
謝謝各位.

255
Linux 討論版 / 請問架設 Proxy Server 的問題
« 於: 2002-10-04 14:14 »
了解了..... :D
小弟重新安裝一次,
這次一個錯誤訊息都沒有出現,
一次就搞定了.
謝謝各位的幫忙.
 :D

256
Linux 討論版 / 請問架設 Proxy Server 的問題
« 於: 2002-10-04 11:24 »
squid.conf裡面要變更的地方

cache_dir aufs /etc/squid/cache 100 16 256

cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
(以上兩行要重新compile squid)

以上是我的一些心得,有問題我們再一起討論[/quote]

zoob兄:
請教一下,aufsLFUDA
的意思為何?
若我安裝 squid-2.5.STABLE1 上述的設定是否還能共用?
謝謝您.

257
Linux 討論版 / 請問架設 Proxy Server 的問題
« 於: 2002-10-04 10:18 »
引述: "小穎"
果然還是不能先猜測原因!@@"
已經看到nameserver出現了!
紅色字的地方是小弟看到的error messages

謝謝各位..... :D
問題已解決...... :D
現在已可以正常連線了.
但是小弟還想請教幾個問題,
1.關於HD的劃分不知是否適當,
一部 Proxy Server 需要服務約 300 user .
2.之前小弟 Port 出來的安裝程序是否有誤?
3.若要將 Proxy Server 效能最佳化,
要注意哪些事項??是否哪有文章可供參考.
真的是非常謝謝各位,小弟已經試了一星期了,
感謝各位幫忙,謝謝.
 :D

258
Linux 討論版 / 請問架設 Proxy Server 的問題
« 於: 2002-10-04 09:47 »
引述: "小穎"
Squid的cache.log跟系統的messages log為何?
我猜是…沒辦法找到DNS!^^"


您好
這是我的messages檔案
Oct  4 09:11:18 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:11:18 proxy squid[13920]: Squid Parent: child process 13945 exited due to signal 6
Oct  4 09:11:18 proxy squid[13920]: Exiting due to repeated, frequent failures
Oct  4 09:11:34 proxy gconfd (root-17203): 19 items remain in the cache after cleaning already-synced items older than 300 seconds
Oct  4 09:18:07 proxy squid[13963]: Squid Parent: child process 13965 started
Oct  4 09:18:07 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:07 proxy squid[13963]: Squid Parent: child process 13965 exited due to signal 6
Oct  4 09:18:09 proxy squid[13967]: Squid Parent: child process 13969 started
Oct  4 09:18:10 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:10 proxy squid[13967]: Squid Parent: child process 13969 exited due to signal 6
Oct  4 09:18:10 proxy squid[13963]: Squid Parent: child process 13971 started
Oct  4 09:18:13 proxy squid[13967]: Squid Parent: child process 13974 started
Oct  4 09:18:13 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:13 proxy squid[13967]: Squid Parent: child process 13974 exited due to signal 6
Oct  4 09:18:16 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:16 proxy squid[13963]: Squid Parent: child process 13971 exited due to signal 6
Oct  4 09:18:16 proxy squid[13967]: Squid Parent: child process 13977 started
Oct  4 09:18:19 proxy squid[13963]: Squid Parent: child process 13979 started
Oct  4 09:18:19 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:19 proxy squid[13963]: Squid Parent: child process 13979 exited due to signal 6
Oct  4 09:18:21 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:21 proxy squid[13967]: Squid Parent: child process 13977 exited due to signal 6
Oct  4 09:18:22 proxy squid[13963]: Squid Parent: child process 13981 started
Oct  4 09:18:24 proxy squid[13967]: Squid Parent: child process 13983 started
Oct  4 09:18:25 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:25 proxy squid[13967]: Squid Parent: child process 13983 exited due to signal 6
Oct  4 09:18:27 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:27 proxy squid[13963]: Squid Parent: child process 13981 exited due to signal 6
Oct  4 09:18:28 proxy squid[13967]: Squid Parent: child process 13985 started
Oct  4 09:18:28 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:28 proxy squid[13967]: Squid Parent: child process 13985 exited due to signal 6
Oct  4 09:18:28 proxy squid[13967]: Exiting due to repeated, frequent failures
Oct  4 09:18:30 proxy squid[13963]: Squid Parent: child process 13987 started
Oct  4 09:18:30 proxy (squid): Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'nobody', which is the cache_effective_user ^Iset in squid.conf.
Oct  4 09:18:30 proxy squid[13963]: Squid Parent: child process 13987 exited due to signal 6
Oct  4 09:18:30 proxy squid[13963]: Exiting due to repeated, frequent failures
Oct  4 09:20:21 proxy kernel: cdrom: This disc doesn't have any tracks I recognize!
Oct  4 09:21:34 proxy gconfd (root-17203): 19 items remain in the cache after cleaning already-synced items older than 300 seconds
Oct  4 09:32:42 proxy kernel: cdrom: This disc doesn't have any tracks I recognize!
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[13199]: session closed for user root
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[13190]: session closed for user squid
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[10229]: session closed for user root
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4392]: session closed for user squid
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4359]: session closed for user root
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4352]: session closed for user squid
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4315]: session closed for user root
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4307]: session closed for user squid
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4266]: session closed for user root
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4190]: session closed for user squid
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4158]: session closed for user root
Oct  4 09:35:32 proxy 10¤ë  4 09:35:32 su(pam_unix)[4147]: session closed for user squid
Oct  4 09:35:50 proxy kernel: cdrom: This disc doesn't have any tracks I recognize!

這是我的cache.log檔案內容

2002/10/03 17:24:04| Starting Squid Cache version 2.4.STABLE2 for prefix=/usr/local/squid...
2002/10/03 17:24:04| Process ID 13197
2002/10/03 17:24:04| With 1024 file descriptors available
2002/10/03 17:24:04| Performing DNS Tests...
2002/10/03 17:24:04| Successful DNS name lookup tests...
2002/10/03 17:24:04| DNS Socket created on FD 4
2002/10/03 17:24:04| Adding nameserver 168.95.192.1 from /etc/resolv.conf
2002/10/03 17:24:04| Adding nameserver 168.95.1.1 from /etc/resolv.conf
2002/10/03 17:24:04| Adding nameserver 61.218.105.250 from /etc/resolv.conf
2002/10/03 17:24:04| Unlinkd pipe opened on FD 9
2002/10/03 17:24:04| Swap maxSize 12582912 KB, estimated 967916 objects
2002/10/03 17:24:04| Target number of buckets: 48395
2002/10/03 17:24:04| Using 65536 Store buckets
2002/10/03 17:24:04| Max Mem  size: 131072 KB
2002/10/03 17:24:04| Max Swap size: 12582912 KB
2002/10/03 17:24:04| /cache1/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.4.STABLE2): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 328
2002/10/03 17:24:08| Starting Squid Cache version 2.4.STABLE2 for prefix=/usr/local/squid...
2002/10/03 17:24:08| Process ID 13201
2002/10/03 17:24:08| With 1024 file descriptors available
2002/10/03 17:24:08| Performing DNS Tests...
2002/10/03 17:24:08| Successful DNS name lookup tests...
2002/10/03 17:24:08| DNS Socket created on FD 4
2002/10/03 17:24:08| Adding nameserver 168.95.192.1 from /etc/resolv.conf
2002/10/03 17:24:08| Adding nameserver 168.95.1.1 from /etc/resolv.conf
2002/10/03 17:24:08| Adding nameserver 61.218.105.250 from /etc/resolv.conf
2002/10/03 17:24:08| Unlinkd pipe opened on FD 9
2002/10/03 17:24:08| Swap maxSize 12582912 KB, estimated 967916 objects
2002/10/03 17:24:08| Target number of buckets: 48395
2002/10/03 17:24:08| Using 65536 Store buckets
2002/10/03 17:24:08| Max Mem  size: 131072 KB
2002/10/03 17:24:08| Max Swap size: 12582912 KB
2002/10/03 17:24:08| /cache1/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.4.STABLE2): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 328
2002/10/03 17:24:11| Starting Squid Cache version 2.4.STABLE2 for prefix=/usr/local/squid...
2002/10/03 17:24:11| Process ID 13233
2002/10/03 17:24:11| With 1024 file descriptors available
2002/10/03 17:24:11| Performing DNS Tests...
2002/10/03 17:24:11| Successful DNS name lookup tests...
2002/10/03 17:24:11| DNS Socket created on FD 4
2002/10/03 17:24:11| Adding nameserver 168.95.192.1 from /etc/resolv.conf
2002/10/03 17:24:11| Adding nameserver 168.95.1.1 from /etc/resolv.conf
2002/10/03 17:24:11| Adding nameserver 61.218.105.250 from /etc/resolv.conf
2002/10/03 17:24:11| Unlinkd pipe opened on FD 9
2002/10/03 17:24:11| Swap maxSize 12582912 KB, estimated 967916 objects
2002/10/03 17:24:11| Target number of buckets: 48395
2002/10/03 17:24:11| Using 65536 Store buckets
2002/10/03 17:24:11| Max Mem  size: 131072 KB
2002/10/03 17:24:11| Max Swap size: 12582912 KB
2002/10/03 17:24:11| /cache1/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.4.STABLE2): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 328
2002/10/03 17:24:20| Starting Squid Cache version 2.4.STABLE2 for prefix=/usr/local/squid...
2002/10/03 17:24:20| Process ID 13236
2002/10/03 17:24:20| With 1024 file descriptors available
2002/10/03 17:24:20| Performing DNS Tests...
2002/10/03 17:24:20| Successful DNS name lookup tests...
2002/10/03 17:24:20| DNS Socket created on FD 4
2002/10/03 17:24:20| Adding nameserver 168.95.192.1 from /etc/resolv.conf
2002/10/03 17:24:20| Adding nameserver 168.95.1.1 from /etc/resolv.conf
2002/10/03 17:24:20| Adding nameserver 61.218.105.250 from /etc/resolv.conf
2002/10/03 17:24:20| Unlinkd pipe opened on FD 9
2002/10/03 17:24:20| Swap maxSize 12582912 KB, estimated 967916 objects
2002/10/03 17:24:20| Target number of buckets: 48395
2002/10/03 17:24:20| Using 65536 Store buckets
2002/10/03 17:24:20| Max Mem  size: 131072 KB
2002/10/03 17:24:20| Max Swap size: 12582912 KB
2002/10/03 17:24:20| /cache1/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.4.STABLE2): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 328
2002/10/03 17:24:29| Starting Squid Cache version 2.4.STABLE2 for prefix=/usr/local/squid...
2002/10/03 17:24:29| Process ID 13240
2002/10/03 17:24:29| With 1024 file descriptors available
2002/10/03 17:24:29| Performing DNS Tests...
2002/10/03 17:24:29| Successful DNS name lookup tests...
2002/10/03 17:24:29| DNS Socket created on FD 4
2002/10/03 17:24:29| Adding nameserver 168.95.192.1 from /etc/resolv.conf
2002/10/03 17:24:29| Adding nameserver 168.95.1.1 from /etc/resolv.conf
2002/10/03 17:24:29| Adding nameserver 61.218.105.250 from /etc/resolv.conf
2002/10/03 17:24:29| Unlinkd pipe opened on FD 9
2002/10/03 17:24:29| Swap maxSize 12582912 KB, estimated 967916 objects
2002/10/03 17:24:29| Target number of buckets: 48395
2002/10/03 17:24:29| Using 65536 Store buckets
2002/10/03 17:24:29| Max Mem  size: 131072 KB
2002/10/03 17:24:29| Max Swap size: 12582912 KB
2002/10/03 17:24:29| /cache1/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.4.STABLE2): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 328

真抱歉,貼這樣不知道會不會太多,請各位多多包涵,謝謝.

259
Linux 討論版 / 請問架設 Proxy Server 的問題
« 於: 2002-10-03 18:17 »
小弟因需架設 Proxy Server 但是卻一直無法成功的架起 Proxy Server.

小弟在參考了網路上許多的資訊,及各類 Linux的書後,

一樣無法成功,只好向各位求助.希望能知道問題 出在哪裡.

以下是我的硬體配備,需求及安裝過程.

硬體配備及系統

Intel  P3 1G Cpu * 2
SCSI  40G HD * 2
10/100 網路卡 * 2
512 MB SDRAM
OS RedHat 7.2
Squid-2.4.STABLE2

需求
需架設 3 部 Proxy Server 並組成 Proxy Array
只提供 Proxy Service

安裝過程

HD 規劃

Sda   /cache1 /cache2 /cache3 /cache4
Sdb  /cache5 /cache6 /cache7 /cache8
均為 3GB

# tar zvxf squid-2.4.STABLE2.tar.gz
# cd squid-2.4.STABLE2
# ./configure prefix=/usr/local/squid
# make
# make install

修改 squid.conf

http_port 3128

icp_port 3130

cache_mem 256 MB

cache_dir ufs /cache1 4096 64 128
cache_dir ufs /cache2 4096 64 128
cache_dir ufs /cache3 4096 64 128
cache_dir ufs /cache4 4096 64 128
cache_dir ufs /cache5 4096 64 128
cache_dir ufs /cache6 4096 64 128
cache_dir ufs /cache7 4096 64 128
cache_dir ufs /cache8 4096 64 128

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

http_access deny all  ==> http_access allow all


#cache_effective_user nobody
#cache_effective_group nobody
改為:
cache_effective_user nobody
cache_effective_group nobody
存檔

# cd /usr/local/squid
# /usr/local/squid/bin/squid -z
# ./RunCache

這樣不是就能正常運行 squid 了嗎?但是我一直無法成功的將 squid Run 起來,
請問如何才能解決.
謝謝各位

頁: 1 ... 7 8 [9]