当前位置: 技术问答>linux和unix
为什么安装redhat7.3自带的squid无法运行?
来源: 互联网 发布时间:2015-07-25
本文导语: 为什么安装redhat7.3自带的squid无法运行?ps 检查不到,start也没有? | 我裝的是7.2你看看有冇用. 先到網站上把squid-2.5.STABLE4.tar.gz 下載下來 安裝SQUID之前,必須先Internet連線; 把squid-...
为什么安装redhat7.3自带的squid无法运行?ps 检查不到,start也没有?
|
我裝的是7.2你看看有冇用.
先到網站上把squid-2.5.STABLE4.tar.gz 下載下來
安裝SQUID之前,必須先Internet連線;
把squid-2.5.STABLE4.tar.gz傳至/usr/src
/etc/rc.d/init.d/squid stop (把squid停止)
cd /usr/src
gunzip squid-2.5.STABLE4.tar.gz
tar xvf squid-2.5.STABLE4.tar
cd squid-2.5.STABLE4
./configure --prefix=/usr/local/squid --disable-internal-dns --bindir=/usr/bin --sbindir=/usr/sbin --enable-basic-auth-helpers=NCSA
make
make install
cd /usr/local
chown nobody.nobody -R squid
/usr/sbin/squid -z
cd /usr/local/squid/etc
vi squid.conf #進行配
/etc/rc.d/init.d/squid restart
================================================================================
cd /etc/rc.d/rc0.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc1.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc2.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc3.d
ln -s /etc/rc.d/init.d/squid K47squid
ln -s /etc/rc.d/init.d/squid S47squid
cd /etc/rc.d/rc4.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc5.d
ln -s /etc/rc.d/init.d/squid K47squid
ln -s /etc/rc.d/init.d/squid S47squid
cd /etc/rc.d/rc6.d
ln -s /etc/rc.d/init.d/squid K47squid
先到網站上把squid-2.5.STABLE4.tar.gz 下載下來
安裝SQUID之前,必須先Internet連線;
把squid-2.5.STABLE4.tar.gz傳至/usr/src
/etc/rc.d/init.d/squid stop (把squid停止)
cd /usr/src
gunzip squid-2.5.STABLE4.tar.gz
tar xvf squid-2.5.STABLE4.tar
cd squid-2.5.STABLE4
./configure --prefix=/usr/local/squid --disable-internal-dns --bindir=/usr/bin --sbindir=/usr/sbin --enable-basic-auth-helpers=NCSA
make
make install
cd /usr/local
chown nobody.nobody -R squid
/usr/sbin/squid -z
cd /usr/local/squid/etc
vi squid.conf #進行配
/etc/rc.d/init.d/squid restart
================================================================================
cd /etc/rc.d/rc0.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc1.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc2.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc3.d
ln -s /etc/rc.d/init.d/squid K47squid
ln -s /etc/rc.d/init.d/squid S47squid
cd /etc/rc.d/rc4.d
ln -s /etc/rc.d/init.d/squid K47squid
cd /etc/rc.d/rc5.d
ln -s /etc/rc.d/init.d/squid K47squid
ln -s /etc/rc.d/init.d/squid S47squid
cd /etc/rc.d/rc6.d
ln -s /etc/rc.d/init.d/squid K47squid
|
选择安装包安装了吗