warnings - 运行 squid 3 时出现警告 : Cannot write log file and Permission denied in Ubuntu,

标签 warnings ubuntu-14.04 squid

我在 Ubuntu 14.04 上安装了 Squid3,并做了一些小配置。 当我使用终端运行 Squid3 时,它会显示如下警告消息

WARNING: Cannot write log file: /var/log/squid3/cache.log
/var/log/squid3/cache.log: Permission denied
            messages will be sent to 'stderr'.

我是 squid 的新手,所以请帮我解决这个问题

最佳答案

当您从终端运行 squid 时,您是在自己操作吗?检查/var/log/squid3/cache.log 的所有权和权限。您可能没有正确的权限。通常像 squid 这样的服务会作为它们自己的用户自动启动。

关于warnings - 运行 squid 3 时出现警告 : Cannot write log file and Permission denied in Ubuntu,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34218431/

相关文章:

react-native - 如何在 React Native 中禁用警告?

java - 对象到泛型类型转换的未检查警告的定义在哪里?

Ubuntu 14.04 Jamod 串行上的 java.lang.UnsatisfiedLinkError : no rxtxSerial in java. library.path

http - 没有 Cache-Control 头的 Squid 的默认缓存策略是什么?

git - 通过带有 SSL bump 的 Squid 使用 SSH 连接到 Git

http - 在 Azure VM 上使用鱿鱼代理绕过 Internet 过滤器的问题

ios - UITabBarController -shouldAutorotateToInterfaceOrientation : warning

c - 错误 "Passing argument N of ' functionName ' from incompatible pointer type"是什么意思?

mySQL 表被无意中删除

python - pycrypto-2.6.1(python 2.7.6) ubuntu14.04 LTS 中无法识别“exportKey”函数