启动squid的时候提示 Failed ,FATAL: No port defined

启动的时候提示:

[#47#[email protected] ~]#/etc/init.d/squid start

Starting squid: ....................                       [FAILED]

[#51#[email protected] ~]#squid -kcheck

squid: ERROR: No running copy

查看错误日志:

[#48#[email protected] ~]#cat /var/log/squid/cache.log

2016/03/09 09:28:15| Starting Squid Cache version 3.1.23 for x86_64-redhat-linux-gnu...

2016/03/09 09:28:15| Process ID 2813

2016/03/09 09:28:15| With 1024 file descriptors available

2016/03/09 09:28:15| Initializing IP Cache...

2016/03/09 09:28:15| DNS Socket created at [::], FD 7

2016/03/09 09:28:15| DNS Socket created at 0.0.0.0, FD 8

2016/03/09 09:28:15| Adding domain localdomain from /etc/resolv.conf

2016/03/09 09:28:15| Adding domain localdomain from /etc/resolv.conf

2016/03/09 09:28:15| Adding nameserver 192.168.1.1 from /etc/resolv.conf

2016/03/09 09:28:15| Adding nameserver 8.8.8.8 from /etc/resolv.conf

2016/03/09 09:28:15| Adding nameserver 192.168.73.2 from /etc/resolv.conf

2016/03/09 09:28:15| User-Agent logging is disabled.

2016/03/09 09:28:15| Referer logging is disabled.

2016/03/09 09:28:15| Unlinkd pipe opened on FD 13

2016/03/09 09:28:15| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec

2016/03/09 09:28:15| Store logging disabled

2016/03/09 09:28:15| Swap maxSize 102400 + 28672 KB, estimated 10082 objects

2016/03/09 09:28:15| Target number of buckets: 504

2016/03/09 09:28:15| Using 8192 Store buckets

2016/03/09 09:28:15| Max Mem  size: 28672 KB

2016/03/09 09:28:15| Max Swap size: 102400 KB

2016/03/09 09:28:15| Version 1 of swap file with LFS support detected...

2016/03/09 09:28:15| Rebuilding storage in /var/spool/squid (DIRTY)

2016/03/09 09:28:15| Using Least Load store dir selection

2016/03/09 09:28:15| Set Current Directory to /var/spool/squid

FATAL: No port defined    # 此处提示未指定端口

Squid Cache (Version 3.1.23): Terminated abnormally.

CPU Usage: 0.040 seconds = 0.022 user + 0.018 sys

Maximum Resident Size: 39408 KB

Page faults with physical i/o: 0

Memory usage for squid via mallinfo():

total space in arena:    2952 KB

Ordinary blocks:         2933 KB     12 blks

Small blocks:               0 KB      1 blks

Holding blocks:          1104 KB      4 blks

Free Small blocks:          0 KB

Free Ordinary blocks:      18 KB

Total in use:            4037 KB 137%

Total free:                18 KB 1%

提示:没有指定端口。

[#54#[email protected] ~]#vim /etc/squid/squid.conf

# Squid normally  listens  to  port  3128

http_port 3128   #squid端口没有打开是因为之前做过实验改为了80,就把这个给注销掉了80端口也                     是可以的但是80端口此时也是注销状态所以才会无法启动。

#http_port 80 accel vhost vport

[#51#[email protected] ~]#squid -kcheck

squid: ERROR: No running copy       # 此提示无意义,是因为没有启动起来

[#52#[email protected] ~]#/etc/init.d/squid start

Starting squid: .                                          [  OK  ]

[#53#[email protected] ~]#squid -kcheck                 # 正常启动后它也消失了。

时间: 2024-11-10 11:29:30

启动squid的时候提示 Failed ,FATAL: No port defined的相关文章

Eclipse:启动时提示"Failed to load the JNI shared library"的解决方案

Eclipse:启动时提示"Failed to load the JNI shared library"的解决方案 今天打开Eclipse,弹出提示框 原因1:给定目录下jvm.dll不存在. 对策:(1)重新安装jre或者jdk并配置好环境变量.(2)copy一个jvm.dll放在该目录下. 原因2:eclipse的版本与jre或者jdk版本不一致 对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位. 原因2的概率更大一些,原因1不太可能发生 http:/

ubuntu 启动时提示 Failed to load session ubuntu

启动时候提示 Failed to load session ubuntu 通过 CTRL + ALT + [F1~F6] 进入终端界面登陆进系统, 进去之后执行 sudo apt-get install ubuntu-desktop sudo reboot 重启之后登陆正常. 原文地址:https://www.cnblogs.com/rivsidn/p/9338986.html

SSH 服务启动时出现如下错误:fatal: Cannot bind any address

注意:本文相关配置及说明已在 CentOS 6.5 64 位操作系统中进行过测试.其它类型及版本操作系统配置可能有所差异,具体情况请参阅相应操作系统官方文档. 问题描述 云服务器 ECS (Elastic Compute Server) Linux 服务器启动 SSH 服务时,命令行或 secure日志出现类似如下错误信息: FAILED. fatal: Cannot bind any address. address family must be specified before Listen

启动apache服务出现Job failed. See system logs and 'systemctl status' for details. .

启动apache服务出现Job failed. See system logs and 'systemctl status' for details. 查看错误提示 看日志 cat /var/log/messages | grep httpd 原来是编辑httpd.conf文件时候第196行出错 vi /etc/httpd/conf/httpd.conf systemctl start httpd.service 解决 启动apache服务出现Job failed. See system log

Android问题-XE5提示"[DCC Fatal Error] Project1.dpr(1): F1027 Unit not found: 'System.pas' or binary equivalents (.dcu/.o)"

问题现象:Checking project dependencies...Compiling Project1.dproj (Debug, Android)dcc command line for "Project1.dpr"[DCC Fatal Error] Project1.dpr(1): F1027 Unit not found: 'System.pas' or binary equivalents (.dcu/.o)FailedElapsed time: 00:00:00.1

安装centos7,把selinux关闭后,就一直提示failed to load seliinux policy

本帖最后由 woniu19881005 于 2014-10-20 23:26 编辑 在vm里安装centos7,把selinux关闭后,就一直提示failed to load seliinux policy. 网上的解决方案是在grub启动菜单上按e键进入编辑模式,然后再启动项里加上enforcing=0. 按照提示,然后Ctrl+x 启动一下. OK,问题暂时解决了. 为什么说是暂时呢? Reboot一下,或者直接关虚拟机的电源,再次启动虚拟机,这个时候又提示failed to load se

(转)启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结

启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结 原文:http://blog.51cto.com/11863547/1905929 http://blog.csdn.net/debimeng/article/details/74296152?utm_source=itdadao&utm_medium=referral Failed to start LSB: Bring up/down networking 遇到这个错误好

SourceTree不出现用户登录窗口,提示错误fatal: unable to access'...'; error setting certificate verify locations

SourceTree不出现用户登录窗口,提示错误fatal: unable to access'...'; error setting certificate verify locations; ...\Git\mingw64\libexec\ssl\certs 去查看这个这个目录下的文件是否存在,不存在则放到对应的地方即可. SourceTree不出现用户登录窗口,提示错误fatal: unable to access'...'; error setting certificate verif

[Apache]apache2不能启动的解决办法(提示could not bind to address 0.0.0.0:80)

昨晚重装了电脑,原来装的是win2003,后来中毒后杀完毒还能用就继续用着,只是运行不了新安装的软件,后来实在没办法才重装了XP,但是装完出现一个问题,系统居然装在了L盘,原来的D盘到J盘依此类推往前进了一位即从C盘到I盘~~原来的xampp装在了D盘,现在变成了C盘,打开XAMPP-Control面板,启动不了apache,后来想起apache/conf/httpd.conf里面的设置有问题,于是把所有的路径有关的设置都由原来的D:改为C:,发现还是不行,于是运行apache_start.ba