LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 12-10-2012, 11:48 PM   #1
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Rep: Reputation: Disabled
Question Squid problem on fedora


Dear respected members,

I had installed squid on fedora but when i try to start the service with
Quote:
service squid start
it gives me error
Quote:
redirecting /bin/systemctl
i had restarted my system but the problem remains the same.

Please assist.
 
Old 12-11-2012, 05:20 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, you need to be root to start a system wide service.

systemctl is a new implementation of the older services system.

When you call service the system hads it over to systemctl, and the script is run, if permissable.

Code:
su
enter root password.

try to start squid...
Code:
service squid start
check it's status
Code:
service squid status
Squid may also be started by restarting the network,

make sure all the if's are up.
Code:
ifconfig
hth's, Glenn
 
Old 12-11-2012, 10:20 PM   #3
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
dear glenns

Quote:
service squid start/restart/status
all gives the same error

Quote:
redirecting /bin/systemctl
Yes One of ifs is down and that is my eth1 but on centOS with same scenario I was running squid :S
 
Old 12-12-2012, 12:56 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
here is a bunch of checks I have used,
(not all of them have been real usefull to me other than)
to see squid being referenced and using resources.

If you have not set an ip for squid it may be running on 127.0.0.1 (localhost)
check firewall settings, and portforwarding. see forwarding check below.../etc/sysctl.conf

these codes only return info. they don't change anything.

Hope they help you to diff the changes between you centos system and fedora.

check the ips, and ports are set (3128, 1080, there is some margin for non standards.)
Code:
#!/bin/bash
#
echo "netstat -an, show network stats"
sudo netstat -an

echo "iptables -t nat -nvL, check FW, nat Chain PREROUTING for squid port activity"
sudo iptables -t nat -nvL

echo "iptables -nvL"
sudo iptables -nvL

echo "ifconfig"
sudo ifconfig

echo "cat /proc/sys/net/ipv4/ip_forward, forward squids ip to the nic ip"
cat /proc/sys/net/ipv4/ip_forward

echo "netstat -tanp | grep 3128"
sudo netstat -tanp | grep 3128

echo "squid -v"
sudo squid -v

echo "cat /etc/squid/squid.conf | grep -v '#', show file without commented lines."
cat /etc/squid/squid.conf | grep -v '#'

echo "ps ax | grep squid  #ensure the redirector is running"
sudo ps ax | grep squid


echo "grep DPT=3128 /var/log/syslog -c  #change portnumber for others"
sudo grep DPT=3128 /var/log/syslog -c


echo "tail /var/log/squid/access.log"
sudo tail /var/log/squid/access.log
cheers, Glenn

Last edited by GlennsPref; 12-12-2012 at 01:13 AM. Reason: typo 8080 should be 1080
 
Old 12-12-2012, 10:23 AM   #5
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 105

Rep: Reputation: Disabled
Try these below as root user
Code:
$(which service) squid start
$(which service) squid restart
$(which service) squid status
or
Code:
systemctl start squid.service
or
$(which systemctl) status squid.service

Last edited by mandyapenguin; 12-12-2012 at 10:29 AM.
 
Old 12-12-2012, 04:50 PM   #6
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 349

Rep: Reputation: 42
if you could share messages logs/squid logs as well
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My squid server is running slow i have 40 fedora 11 in my squid proxy ashraflinux1@gmail.com Linux - Server 4 09-15-2009 12:17 AM
Problem with configuration of Squid server behind a squid ajitup Linux - Server 13 08-12-2009 10:55 PM
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 11:33 AM
Squid in Fedora 6 winxandlinx Linux - Networking 1 11-29-2006 06:53 AM
Problem in running Squid on Fedora 3 coolsandy Linux - Networking 0 09-05-2005 05:18 AM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration