AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1758111

Olga Dymova's questions

Martin Hope
Olga Dymova
Asked: 2024-05-15 22:04:03 +0800 CST

配置 SQUID 代理以进行身份​​验证、全局访问和用户特定的日志记录

  • 6

我正在寻找有关在 Ubuntu 上设置 SQUID 代理服务器的一些指导,条件如下:

  1. 访问应仅限于 中列出的经过身份验证的用户/etc/squid/passwords,这是通过以下方式实现的:
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwords

用户通过以下方式添加

sudo htpasswd /etc/squid/passwords username
  1. 代理应该允许从世界各地的任何位置进行访问(配置文件中的哪一行控制这一点?我怀疑http_access deny设置http_access allow可能会发生冲突,我特别请求有关这一点的帮助)。
  2. 代理应该只处理 HTTP 和 HTTPS 流量,不包括其他协议(我相信 ACL 设置控制这一点)。
  3. 日志记录应该是基于/etc/squid/passwords监视单个用户活动的特定于用户的(在这种情况下“组合”意味着什么?):
access_log /var/log/squid/access.log combined

我想创建一个简约的配置文件来满足这些要求,但每当我设法满足列表中的一项要求时,另一项就会停止工作,依此类推。这让我发疯...提前致谢!

proxy
  • 1 个回答
  • 22 Views
Martin Hope
Olga Dymova
Asked: 2024-01-06 06:06:50 +0800 CST

Intel Pentium Silver N5000 上的恒定 CPU 频率为 1.1 GHz

  • 6

我的 ASUS x507ma 笔记本电脑遇到问题,该笔记本电脑配备 Intel Pentium Silver N5000 (Gemini Lake) 处理器。在各种 Linux 发行版(例如 Ubuntu、CentOS 或 Debian)上,CPU 频率始终固定在 1.1 GHz 的基本频率。我使用命令 watch 对此进行监控

cat /proc/cpuninfo | grep MHz

在尝试了不同的发行版之后,我安装了 Arch Linux,令我惊讶的是,一切都开箱即用。通过基于负载的动态频率缩放来正确识别CPU。然而,为了学习,我需要在 Ubuntu 上工作。

当我跑步时

cpupower frequency-info

在 Arch 上,驱动程序被标识为intel_pstate。相反,在 Ubuntu 上,相同的命令表示未找到该模块或该 CPU 的驱动程序未激活。cpupower frequency-info我提供了Arch 和 Ubuntu的输出以供参考。

拱:

analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 2.70 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 800 MHz and 2.70 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.79 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

Ubuntu 20.04 LTS:

analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: no
    Active: no

如果您能了解为什么此问题出现在 Ubuntu 上而不是 Arch Linux 上,以及我如何在 Ubuntu 上解决此问题,我们将不胜感激。

performance
  • 1 个回答
  • 37 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve