نمایش نتایج: از شماره 1 تا 6 از مجموع 6
سپاس ها 2سپاس

موضوع: مشکل با دیتا ندادن squid ی که به صورت کامپایل نصب شده

  
  1. #1
    نام حقيقي: alieblice

    عضو عادی
    تاریخ عضویت
    Apr 2011
    محل سکونت
    alieblice
    نوشته
    29
    سپاسگزاری شده
    17
    سپاسگزاری کرده
    1

    مشکل با دیتا ندادن squid ی که به صورت کامپایل نصب شده

    سلام دوستان
    squid 3.1 رو از روی سورس compile کردم این خط رو هم

    کد:
     http_access deny all
    داخل فایل کانفیگش به

    کد:
     http_access allow all
    تغییر دادم ولی وقتی تو مرور گر تنظیمش میکنم نمیتونه دیتا بگیره
    The proxy server is refusing connections
    تو استارت کردنشم با این دستور اروری نداره

    کد:
     squid -k parse
    این 2 خط رول هم برای محکم کاری اضافه کردم ولی فایده نداشت
    کد:
    iptables -A OUTPUT -p tcp --sport 3128 -j ACCEPT
    iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
    پیشاپیش ممنون



    موضوعات مشابه:
    ویرایش توسط alieblice : 2011-08-11 در ساعت 10:57 AM

  2. #2
    نام حقيقي: محمد تقی غلامی انبوهی

    عضو ویژه
    تاریخ عضویت
    Nov 2006
    محل سکونت
    پیش خدا %temp%
    نوشته
    1,529
    سپاسگزاری شده
    824
    سپاسگزاری کرده
    1975
    فایل کانفیگتون رو بزارید



  3. #3
    نام حقيقي: alieblice

    عضو عادی
    تاریخ عضویت
    Apr 2011
    محل سکونت
    alieblice
    نوشته
    29
    سپاسگزاری شده
    17
    سپاسگزاری کرده
    1
    ممنون بابت پاسخ
    الان فهمیدم که بعد از استارت شدن اسکویید بعد از کمتر از 10 ثانیه به صورت اوتومات pid ش از بین میره انگار که اصلا استارت نشده باشه

    فایل کانفیگش همون پیش فرض خودش هست فقط همون یک خطی که بالا گفتم رو دست زدم

    کد:
    # # Recommended minimum configuration: # acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT # # Recommended minimum Access Permission configuration: # # Only allow cachemgr access from localhost http_access allow manager localhost http_access deny manager # Deny requests to certain unsafe ports http_access deny !Safe_ports # Deny CONNECT to other than secure SSL ports http_access deny CONNECT !SSL_ports # We strongly recommend the following be uncommented to protect innocent # web applications running on the proxy server who think the only # one who can access services on "localhost" is a local user #http_access deny to_localhost # # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost # And finally deny all other access to this proxy http_access allow all # Squid normally listens to port 3128 http_port 3128 # We recommend you to use at least the following line. hierarchy_stoplist cgi-bin ? # Uncomment and adjust the following to add a disk cache directory. #cache_dir ufs /var/cache 100 16 256 # Leave coredumps in the first cache dir coredump_dir /var/cache # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320



    ویرایش توسط alieblice : 2011-08-11 در ساعت 03:52 PM

  4. #4
    نام حقيقي: alieblice

    عضو عادی
    تاریخ عضویت
    Apr 2011
    محل سکونت
    alieblice
    نوشته
    29
    سپاسگزاری شده
    17
    سپاسگزاری کرده
    1
    سلام دوستان
    من این مشکل رو هم دارم تو اینترنت روش هایی بود براش هر کار کردم نتونستم حلش کنم
    squid: ERROR: No running copy

    این squid بیخودی 2 روزه الاف کرده من رو دوستان اگه جوابی میدونین دریق نکنین



  5. #5
    نام حقيقي: alieblice

    عضو عادی
    تاریخ عضویت
    Apr 2011
    محل سکونت
    alieblice
    نوشته
    29
    سپاسگزاری شده
    17
    سپاسگزاری کرده
    1
    مشکل حل شد

    امال چگونه حل شد
    تو سایت مشکل رو مطرح کردم گفتن این کارو بکن
    [SOLVED] squid PID disappear after seconds
    در قدم اول گفتن این دستورو بزن و چند فایل log رو نگاه کن
    کد:
    usr/sbin/squid -Nd1
    و فایلای log
    /var/log/syslog, /var/log/messages

    با زدن دستور بالا این خروجی امد که
    کد:
    root@debian:/var/log# /usr/sbin/squid -Nd1 WARNING: Cannot write log file: /var/logs/cache.log /var/logs/cache.log: Permission denied messages will be sent to 'stderr'. 2009/08/01 06:54:31| Starting Squid Cache version 2.7.STABLE9-20110812 for i686-pc-linux-gnu... 2009/08/01 06:54:31| Process ID 1140 2009/08/01 06:54:31| With 1024 file descriptors available 2009/08/01 06:54:31| Using epoll for the IO loop 2009/08/01 06:54:31| Performing DNS Tests... 2009/08/01 06:54:31| Successful DNS name lookup tests... 2009/08/01 06:54:31| DNS Socket created at 0.0.0.0, port 37160, FD 5 2009/08/01 06:54:31| Adding domain localdomain from /etc/resolv.conf 2009/08/01 06:54:31| Adding domain localdomain from /etc/resolv.conf 2009/08/01 06:54:31| Adding nameserver 172.16.49.2 from /etc/resolv.conf 2009/08/01 06:54:31| logfileOpen: opening log /var/logs/access.log FATAL: Cannot open '/var/logs/access.log' for writing. The parent directory must be writeable by the user 'nobody', which is the cache_effective_user set in squid.conf. Squid Cache (Version 2.7.STABLE9-20110812): Terminated abnormally. CPU Usage: 0.012 seconds = 0.000 user + 0.012 sys Maximum Resident Size: 9936 KB Page faults with physical i/o: 0 Aborted
    root@debian:/var/log#
    توش این ارور رو نوشته

    کد:
    Cannot open '/var/logs/access.log' for writing
    برای حل این اررور باید اجازه نوشتن رو به کاربری که squid با اون کار میکنه بدین که برای من nobody بودش
    کد:
     chown -R nobody /var/logs
    بعد از این کار دو باره که squid رو اجرا کردم با همون دستور
    /usr/sbin/squid -Nd1
    به فایل cache گیر داد که مثل بالا اون رو هم chown کردم به کاربر nobody
    کد:
     chown -R nobody /var/cache
    و تمام مشکلات حل شد

    اطلاعات بیشتر از مراحل حل مشکل
    [SOLVED] squid PID disappear after seconds


    darklove و al1p0ur سپاسگزاری کرده‌اند.

  6. #6
    نام حقيقي: Peyman Yousefi

    عضو ویژه شناسه تصویری darklove
    تاریخ عضویت
    Oct 2005
    محل سکونت
    ABHAR
    نوشته
    3,330
    سپاسگزاری شده
    1005
    سپاسگزاری کرده
    318
    نوشته های وبلاگ
    7
    بسیار عالی



کلمات کلیدی در جستجوها:

ارور the proxy server is refusing connections

خطای the proxy server is refusing connections

رفع ارور the proxy server is refusing connections

ارورThe proxy server is refusing connections

حل مشکل ارور the proxy server is refusing connections

رفع مشکل the proxy server is refusing connections

حل مشکل unable to connect to the proxy server

حل مشکل the proxy server is refusing connection

رفع مشکل ارور the proxy server is refusing connections

حل مشکلThe proxy server is refusing connections

the proxy server is refusing connections مشکل

http:forum.persiannetworks.comf81t46671.html

مشکل The proxy server is refusing connections

اخطار the proxy server is refusing connections

پیغام proxy server is refusing connection

راه حل خطای the proxy service is refusing connections

The proxy server is refusing connectionsمشكل در ارتباط دارم با فايرفاكس

مشکل The proxy server is refusing connection

خطای proxy refusing

روش حل مشکل The proxy server is refusing connections

رفع پیغام The proxy server is refusing connections

حل مشکل پیغام the proxy server is refusing connections

proxy server is refusing connections مشکل

اخطار the proxy is refusing connections

حل مشکل proxy refusing

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •