VGZ писал(а):Галочка? у меня Фришка не графическая....слушай а посмотри в порте сквида нового там по идее в самом низу должна быть галочка для демона.
Код: Выделить всё
//> cd /usr/ports/www/squid/
//> make config
VGZ писал(а):Галочка? у меня Фришка не графическая....слушай а посмотри в порте сквида нового там по идее в самом низу должна быть галочка для демона.
Код: Выделить всё
//> cd /usr/ports/www/squid/
//> make config
Код: Выделить всё
Options for squid 2.7.4 ?
? ?????????????????????????????????????????????????????????????????? ?
? ?[ ] SQUID_LDAP_AUTH Install LDAP authentication helpers ? ?
? ?[ ] SQUID_SASL_AUTH Install SASL authentication helpers ? ?
? ?[X] SQUID_DELAY_POOLS Enable delay pools ? ?
? ?[ ] SQUID_SNMP Enable SNMP support ? ?
? ?[X] SQUID_CARP Enable CARP support ? ?
? ?[ ] SQUID_SSL Enable SSL support for reverse proxies ? ?
? ?[ ] SQUID_PINGER Install the icmp helper ? ?
? ?[ ] SQUID_DNS_HELPER Use the old 'dnsserver' helper ? ?
? ?[ ] SQUID_HTCP Enable HTCP support ? ?
? ?[ ] SQUID_VIA_DB Enable forward/via database ? ?
? ?[ ] SQUID_CACHE_DIGESTS Enable cache digests ? ?
? ?[X] SQUID_WCCP Enable Web Cache Coordination Prot. v1 ? ?
? ?[ ] SQUID_WCCPV2 Enable Web Cache Coordination Prot. v2 ? ?
? ?[ ] SQUID_STRICT_HTTP Be strictly HTTP compliant ? ?
? ?[X] SQUID_IDENT Enable ident (RFC 931) lookups ? ?
?[ ] SQUID_REFERER_LOG Enable Referer-header logging ? ?
? ?[ ] SQUID_USERAGENT_LOG Enable User-Agent-header logging ? ?
? ?[ ] SQUID_ARP_ACL Enable ACLs based on ethernet address ? ?
? ?[ ] SQUID_PF Enable transparent proxying with PF ? ?
? ?[ ] SQUID_IPFILTER Enable transp. proxying with IPFilter ? ?
? ?[ ] SQUID_FOLLOW_XFF Follow X-Forwarded-For headers ? ?
? ?[ ] SQUID_AUFS Enable the aufs storage scheme ? ?
? ?[ ] SQUID_COSS Enable the COSS storage scheme ? ?
? ?[X] SQUID_KQUEUE Use kqueue(2) instead of poll(2) ? ?
? ?[X] SQUID_LARGEFILE Support log and cache files >2GB ? ?
? ?[ ] SQUID_STACKTRACES Create backtraces on fatal errors ?
???????v(+)???????????????????????????????????????????????????????????
? OK [Cancel] ?
???????????????????????????????????????????????????????????
Но я редактировал эти строки:Cancer писал(а): Вот тут для слепых написано былоСоздавай профиль другой в самсе так как в 1.0.3 вроде касяк с дефолтным профилем/usr/home/redirector-3.2.1> ee Makefile
редактируем строки
SQUID_USER=squid
SQUID_GROUP=squid
ну и естественно када профиль создашь пользователя какого нибудь к нему прикрепи.
spy писал(а):Но я редактировал эти строки:Cancer писал(а): Вот тут для слепых написано былоСоздавай профиль другой в самсе так как в 1.0.3 вроде касяк с дефолтным профилем/usr/home/redirector-3.2.1> ee Makefile
редактируем строки
SQUID_USER=squid
SQUID_GROUP=squid
ну и естественно када профиль создашь пользователя какого нибудь к нему прикрепи.
Я посмотрел как указано в статье, SQuid работал под root-ом
поэтому я указал:
SQUID_USER=root
SQUID_GROUP=wheel
Или я что-то не там и не то написал?
Что теперь нужно сделать?Cancer писал(а): Тут нужно было
SQUID_USER=squid
SQUID_GROUP=squid
у тя доступа не будет для redirector.conf
нет необязательно.spy писал(а):Что теперь нужно сделать?Cancer писал(а): Тут нужно было
SQUID_USER=squid
SQUID_GROUP=squid
у тя доступа не будет для redirector.conf
Исправить Makefile и переустановить режик? А как его удалить?
Код: Выделить всё
chmod -R 774 /usr/local/rejik3
chown -R squid:squid /usr/local/rejik3
Все равно сквид не запускается:Cancer писал(а): просто сделайКод: Выделить всё
chmod -R 774 /usr/local/rejik3 chown -R squid:squid /usr/local/rejik3
Код: Выделить всё
2008/09/24 08:15:53| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 08:15:53| Process ID 5390
2008/09/24 08:15:53| With 11072 file descriptors available
2008/09/24 08:15:53| Using kqueue for the IO loop
2008/09/24 08:15:53| DNS Socket created at 0.0.0.0, port 63350, FD 5
2008/09/24 08:15:53| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 08:15:53| helperOpenServers: Starting 5 'redirector' processes
2008/09/24 08:15:53| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/24 08:15:53| Unlinkd pipe opened on FD 20
2008/09/24 08:15:53| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 08:15:53| Target number of buckets: 393
2008/09/24 08:15:53| Using 8192 Store buckets
2008/09/24 08:15:53| Max Mem size: 8192 KB
2008/09/24 08:15:53| Max Swap size: 102400 KB
2008/09/24 08:15:53| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/24 08:15:53| Using Least Load store dir selection
2008/09/24 08:15:53| Set Current Directory to /usr/local/squid/cache
2008/09/24 08:15:53| Loaded Icons.
2008/09/24 08:15:53| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/24 08:15:53| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/24 08:15:53| WCCP Disabled.
2008/09/24 08:15:53| Ready to serve requests.
2008/09/24 08:15:53| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/24 08:15:53| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/24 08:15:53| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/24 08:15:53| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.017 seconds = 0.011 user + 0.006 sys
Maximum Resident Size: 5064 KB
Page faults with physical i/o: 0
2008/09/24 08:15:56| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 08:15:56| Process ID 5405
2008/09/24 08:15:56| With 11072 file descriptors available
2008/09/24 08:15:56| Using kqueue for the IO loop
2008/09/24 08:15:56| DNS Socket created at 0.0.0.0, port 65295, FD 5
2008/09/24 08:15:56| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 08:15:56| helperOpenServers: Starting 5 'redirector' processes
2008/09/24 08:15:56| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/24 08:15:56| Unlinkd pipe opened on FD 20
2008/09/24 08:15:56| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 08:15:56| Target number of buckets: 393
2008/09/24 08:15:56| Using 8192 Store buckets
2008/09/24 08:15:56| Max Mem size: 8192 KB
2008/09/24 08:15:56| Max Swap size: 102400 KB
2008/09/24 08:15:56| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/24 08:15:56| Using Least Load store dir selection
2008/09/24 08:15:56| Set Current Directory to /usr/local/squid/cache
2008/09/24 08:15:56| Loaded Icons.
2008/09/24 08:15:57| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/24 08:15:57| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/24 08:15:57| WCCP Disabled.
2008/09/24 08:15:57| Ready to serve requests.
2008/09/24 08:15:57| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/24 08:15:57| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/24 08:15:57| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/24 08:15:57| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.017 seconds = 0.017 user + 0.000 sys
Maximum Resident Size: 5188 KB
Page faults with physical i/o: 0
2008/09/24 08:16:00| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 08:16:00| Process ID 5420
2008/09/24 08:16:00| With 11072 file descriptors available
2008/09/24 08:16:00| Using kqueue for the IO loop
2008/09/24 08:16:00| DNS Socket created at 0.0.0.0, port 57043, FD 5
2008/09/24 08:16:00| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 08:16:00| helperOpenServers: Starting 5 'redirector' processes
2008/09/24 08:16:00| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/24 08:16:00| Unlinkd pipe opened on FD 20
2008/09/24 08:16:00| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 08:16:00| Target number of buckets: 393
2008/09/24 08:16:00| Using 8192 Store buckets
2008/09/24 08:16:00| Max Mem size: 8192 KB
2008/09/24 08:16:00| Max Swap size: 102400 KB
2008/09/24 08:16:00| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/24 08:16:00| Using Least Load store dir selection
2008/09/24 08:16:00| Set Current Directory to /usr/local/squid/cache
Код: Выделить всё
ln -s /usr/local/bin/htpasswd /usr/bin/htpasswd
Код: Выделить всё
cat /etc/sams.conf
cat /usr/local/rejik3/redirector.conf
Код: Выделить всё
##############################################################
## If you make changes in this file, you must reboot squid ##
## example: squid -k reconfigure ##
##############################################################
##############################################################
## HELP ##
##############################################################
# Globals options:
# ================
#
# error_log filename # Log file for error and startup messages.
# # Comment for turn off
# change_log filename # Log file of change contest.
# # Comment for turn off
#
# make-cache /usr/local/rejik3/make-cache # path to make-cache binary
#
# work_ip IP # Ip adress(network)
# work_ip IP/MASK # or file with ip for
# work_ip f:/path/file # who redirector work
#
# allow_ip IP # Ip adress(network)
# allow_ip IP/MASK # or file with ip for
# allow_ip f:/path/file # who don't change any contest
#
#
# work_id login # login or file with logins
# work_id f:/path/file # for who redirector work
#
# allow_id login # login or file with logins
# allow_id f:/path/file # for who don't change any contest
#
# allow_urls /path/file # file with urls of don't redirect
#
# raw_change <from> <to># Change <from> to <to> in url
# raw_log aff # Not write to log changes from raw_change option
#
##############################################################
#
# Sections options: all parametrs work only for ONE section
# =================
# <NAME> # Header for section
#
# ban_dir dirname # Rules for change in this section
# url http://host/file # url to replace
# # May use: url http://host/file?var=#URL#&var2=#IP#&i=#IDENT#&m=#METHOD#&sec=#SECTION#
# # #URL# #IP# #IDENT# #METHOD# #SECTION# will be change by redirector
#
# work_ip IP # Ip adress(network)
# work_ip IP/MASK # or file with ip for
# work_ip f:/path/file # who section work
#
# allow_ip IP # Ip adress(network)
# allow_ip IP/MASK # or file with ip for
# allow_ip f:/path/file # who section not work
#
#
# work_id login # login or file with logins
# work_id f:/path/file # for who section work
#
# allow_id login # login or file with logins
# allow_id f:/path/file # for who secion not work
#
# log off # Not write to log changes from this section
# reverse # Reverse result of search in ban dir
#
#############################################################
error_log /usr/local/rejik3/redirector.err
change_log /usr/local/rejik3/redirector.log
make-cache /usr/local/rejik3/make-cache
#allow_urls /usr/local/rejik3/banlists/allow_urls
<BANNER>
ban_dir /usr/local/rejik3/banlists/banners
url http://127.0.0.1/messages/1x1.gif
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno
url http://127.0.0.1/messages/porno.html
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3
url http://127.0.0.1/messages/mp3.html
<JS>
ban_dir /usr/local/rejik3/banlists/js
url http://127.0.0.1/messages/js.js
#log off
Код: Выделить всё
[client]
SQUID_DB=squidlog
SAMS_DB=squidctrl
MYSQLHOSTNAME=localhost
MYSQLUSER=sams
MYSQLPASSWORD=real
MYSQLVERSION=5.1
SQUIDCACHEFILE=access.log
SQUIDROOTDIR=/usr/local/etc/squid
SQUIDLOGDIR=/usr/local/squid/logs
SQUIDCACHEDIR=/usr/local/squid/cache
SAMSPATH=/usr/local
SQUIDPATH=/usr/local/sbin
SQUIDGUARDLOGPATH=/var/log
SQUIDGUARDDBPATH=/var/db/squidguard
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout
LDAPSERVER=servername_or_ipadress
LDAPBASEDN=your.domain
LDAPUSER=DomainAdministrator
LDAPUSERPASSWD=passwd
LDAPUSERSGROUP=Users
REJIKPATH=/usr/local/rejik3
SHUTDOWNCOMMAND=shutdown -h now
CACHENUM=0
Код: Выделить всё
2008/09/24 09:08:21| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 09:08:21| Process ID 5644
2008/09/24 09:08:21| With 11072 file descriptors available
2008/09/24 09:08:21| Using kqueue for the IO loop
2008/09/24 09:08:21| DNS Socket created at 0.0.0.0, port 51132, FD 5
2008/09/24 09:08:21| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 09:08:21| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/24 09:08:21| Unlinkd pipe opened on FD 15
2008/09/24 09:08:21| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 09:08:21| Target number of buckets: 393
2008/09/24 09:08:21| Using 8192 Store buckets
2008/09/24 09:08:21| Max Mem size: 8192 KB
2008/09/24 09:08:21| Max Swap size: 102400 KB
2008/09/24 09:08:21| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/24 09:08:21| Using Least Load store dir selection
2008/09/24 09:08:21| Set Current Directory to /usr/local/squid/cache
2008/09/24 09:08:21| Loaded Icons.
2008/09/24 09:08:21| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 17.
2008/09/24 09:08:21| Accepting ICP messages at 0.0.0.0, port 3130, FD 18.
2008/09/24 09:08:21| WCCP Disabled.
2008/09/24 09:08:21| Ready to serve requests.
2008/09/24 09:08:21| WARNING: basicauthenticator #1 (FD 6) exited
2008/09/24 09:08:21| WARNING: basicauthenticator #2 (FD 7) exited
2008/09/24 09:08:21| WARNING: basicauthenticator #3 (FD 8) exited
2008/09/24 09:08:21| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.015 seconds = 0.000 user + 0.015 sys
Maximum Resident Size: 4952 KB
Page faults with physical i/o: 0
2008/09/24 09:08:24| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 09:08:24| Process ID 5652
2008/09/24 09:08:24| With 11072 file descriptors available
2008/09/24 09:08:24| Using kqueue for the IO loop
2008/09/24 09:08:24| DNS Socket created at 0.0.0.0, port 65229, FD 5
2008/09/24 09:08:24| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 09:08:24| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/24 09:08:24| Unlinkd pipe opened on FD 15
2008/09/24 09:08:24| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 09:08:24| Target number of buckets: 393
2008/09/24 09:08:24| Using 8192 Store buckets
2008/09/24 09:08:24| Max Mem size: 8192 KB
2008/09/24 09:08:24| Max Swap size: 102400 KB
2008/09/24 09:08:24| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/24 09:08:24| Using Least Load store dir selection
2008/09/24 09:08:24| Set Current Directory to /usr/local/squid/cache
2008/09/24 09:08:24| Loaded Icons.
2008/09/24 09:08:25| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 17.
2008/09/24 09:08:25| Accepting ICP messages at 0.0.0.0, port 3130, FD 18.
2008/09/24 09:08:25| WCCP Disabled.
2008/09/24 09:08:25| Ready to serve requests.
2008/09/24 09:08:25| WARNING: basicauthenticator #1 (FD 6) exited
2008/09/24 09:08:25| WARNING: basicauthenticator #2 (FD 7) exited
2008/09/24 09:08:25| WARNING: basicauthenticator #3 (FD 8) exited
2008/09/24 09:08:25| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.015 seconds = 0.015 user + 0.000 sys
Maximum Resident Size: 5304 KB
Page faults with physical i/o: 0
2008/09/24 09:08:28| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 09:08:28| Process ID 5660
2008/09/24 09:08:28| With 11072 file descriptors available
2008/09/24 09:08:28| Using kqueue for the IO loop
2008/09/24 09:08:28| DNS Socket created at 0.0.0.0, port 51629, FD 5
2008/09/24 09:08:28| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 09:08:28| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/24 09:08:28| Unlinkd pipe opened on FD 15
2008/09/24 09:08:28| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 09:08:28| Target number of buckets: 393
2008/09/24 09:08:28| Using 8192 Store buckets
2008/09/24 09:08:28| Max Mem size: 8192 KB
2008/09/24 09:08:28| Max Swap size: 102400 KB
2008/09/24 09:08:28| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/24 09:08:28| Using Least Load store dir selection
2008/09/24 09:08:28| Set Current Directory to /usr/local/squid/cache
2008/09/24 09:08:28| Loaded Icons.
2008/09/24 09:08:28| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 17.
2008/09/24 09:08:28| Accepting ICP messages at 0.0.0.0, port 3130, FD 18.
2008/09/24 09:08:28| WCCP Disabled.
2008/09/24 09:08:28| Ready to serve requests.
2008/09/24 09:08:28| WARNING: basicauthenticator #1 (FD 6) exited
2008/09/24 09:08:28| WARNING: basicauthenticator #2 (FD 7) exited
2008/09/24 09:08:28| WARNING: basicauthenticator #3 (FD 8) exited
2008/09/24 09:08:28| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.015 seconds = 0.000 user + 0.015 sys
Maximum Resident Size: 3384 KB
Page faults with physical i/o: 0
Код: Выделить всё
2008/09/24 09:32:32| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/24 09:32:32| Process ID 5821
2008/09/24 09:32:32| With 11072 file descriptors available
2008/09/24 09:32:32| Using kqueue for the IO loop
2008/09/24 09:32:32| DNS Socket created at 0.0.0.0, port 51980, FD 5
2008/09/24 09:32:32| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/24 09:32:32| helperOpenServers: Starting 5 'ncsa_auth' processes
2008/09/24 09:32:32| Unlinkd pipe opened on FD 15
2008/09/24 09:32:32| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/24 09:32:32| Target number of buckets: 393
2008/09/24 09:32:32| Using 8192 Store buckets
2008/09/24 09:32:32| Max Mem size: 8192 KB
2008/09/24 09:32:32| Max Swap size: 102400 KB
2008/09/24 09:32:32| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2008/09/24 09:32:32| Using Least Load store dir selection
2008/09/24 09:32:32| Set Current Directory to /usr/local/squid/cache
2008/09/24 09:32:32| Loaded Icons.
2008/09/24 09:32:32| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 17.
2008/09/24 09:32:32| Accepting ICP messages at 0.0.0.0, port 3130, FD 18.
2008/09/24 09:32:32| WCCP Disabled.
2008/09/24 09:32:32| Ready to serve requests.
2008/09/24 09:32:32| Done reading /usr/local/squid/cache swaplog (1425 entries)
2008/09/24 09:32:32| Finished rebuilding storage from disk.
2008/09/24 09:32:32| 1425 Entries scanned
2008/09/24 09:32:32| 0 Invalid entries.
2008/09/24 09:32:32| 0 With invalid flags.
2008/09/24 09:32:32| 1425 Objects loaded.
2008/09/24 09:32:32| 0 Objects expired.
2008/09/24 09:32:32| 0 Objects cancelled.
2008/09/24 09:32:32| 0 Duplicate URLs purged.
2008/09/24 09:32:32| 0 Swapfile clashes avoided.
2008/09/24 09:32:32| Took 0.3 seconds (4836.7 objects/sec).
2008/09/24 09:32:32| Beginning Validation Procedure
2008/09/24 09:32:32| Completed Validation Procedure
2008/09/24 09:32:32| Validated 1425 Entries
2008/09/24 09:32:32| store_swap_size = 34428k
2008/09/24 09:32:33| storeLateRelease: released 0 objects
Код: Выделить всё
//> /usr/local/bin/htpasswd -c /usr/local/etc/squid/ncsa.sams vash_user
password:*******
sofinan писал(а):Емае...как это я мог такую важную команду пропустить)))?!А вот ещё вопрос....Короче создал я базы вручную squidlog и squidctrl...Samsd запустился))Потом нам надо из браузера заходить на http://ip_tachki/sams/ т.е там что то должно создастья автоматом или туда надо было самас распаковать и там все это проделывать???
Код: Выделить всё
Create database squidlog
Код: Выделить всё
Create database squidctrl
Код: Выделить всё
GRANT ALL PRIVILEGES ON *.* TO sams@localhost IDENTIFIED BY 'your_password' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO sams@"%" IDENTIFIED BY 'your_password' WITH GRANT OPTION;
Код: Выделить всё
/usr/local/etc/rc.d/mysql-server stop
rm -R /var/db/mysql
/usr/local/etc/rc.d/mysql-server start
Далее меняем пароль администратора СУБД
//> /usr/local/bin/mysqladmin -u root password 'new_password'
//> /usr/local/bin/mysqladmin -u root -h hostname password 'new_password'
Код: Выделить всё
mysql -u root -p
password:******
use mysql
GRANT ALL PRIVILEGES ON *.* TO sams@localhost IDENTIFIED BY 'your_password' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO sams@"%" IDENTIFIED BY 'your_password' WITH GRANT OPTION;
sofinan писал(а):Да это то поянтно, а какой командой базы создавать ...???
sofinan писал(а):[url]http://ip_tachki/sams[/url] сюда переходим через браузер? Но там же пусто, что там может запускаться???
sofinan писал(а):lynx http://192.168.0.253/sams
и все.....
Код: Выделить всё
/usr/local/www/data/
ls