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
    • 最新
    • 标签
主页 / computer / 问题

问题[centos-7](computer)

Martin Hope
justadev
Asked: 2022-09-05 07:20:02 +0800 CST

Centos Apache 版本不是最新的?

  • 5

从apache网站,最新版本似乎是2.4.54。

我在我的 CentOS 7 上安装了 apache,当我检查版本时,它显示它安装了最新版本,但版本号是httpd-2.4.6-97.el7.centos.5.x86_64:

# yum changelog httpd
Failed to set locale, defaulting to C
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.interhost.net.il
 * extras: centos.interhost.net.il
 * updates: centos.interhost.net.il

Listing all changelogs

==================== Installed Packages ====================
httpd-2.4.6-97.el7.centos.5.x86_64       installed
* Thu Mar 24 14:00:00 2022 CentOS Sources <[email protected]> - 2.4.6-97.el7.centos.5
- Remove index.html, add centos-noindex.tar.gz
- change vstring
- change symlink for poweredby.png
- update welcome.conf with proper aliases

* Tue Mar 22 14:00:00 2022 Lubo? Uhliarik <[email protected]> - 2.4.6-97.5
- Resolves: #2065243 - CVE-2022-22720 httpd: HTTP request smuggling
  vulnerability in Apache HTTP Server 2.4.52 and earlier

我收到报告说该站点存在安全漏洞,应该在以前版本的 Apache 中修复,所以我不明白如果我有最新版本为什么会有这个漏洞。

有人可以解释为什么会这样吗?

apache-http-server centos-7
  • 1 个回答
  • 153 Views
Martin Hope
Linuxdevel
Asked: 2022-02-22 09:40:22 +0800 CST

使用 Vagrant 和 Windows 11 主机操作系统在 VirtualBox 上安装 CentOS 时选择内核后 CentOS 立即停止

  • 5

我有以下设置:

  • 主机操作系统:Windows 11 Enterprise Version10.0.2 2000 Build 22000
  • 流浪者版本 2.2.19
  • Oracle 虚拟机版本 6.1.32

如果我尝试启动 CentOS 7 VM 配置,例如:

Vagrant.configure("2") do |config|
  config.vm.box = "generic/centos7"
end

和:

vagrant up

VirtualBox/CentOS VM 在选择内核(引导加载程序菜单)后立即停止,并出现黑屏,左上角有一个闪烁的光标。

如果我使用例如 Ubuntu 或 SUSE 11,VirtualBox VM 可以正常启动。

在失败情况下,VBox.log 文件中的最后一个条目是:

00:00:07.653694 GIM: KVM: VCPU  0: Enabled system-time struct. at 0x000000007ff78000 - u32TscScale=0xe7e226e8 i8TscShift=-1 uVersion=2 fFlags=0x1 uTsc=0x29a64f7a2 uVirtNanoTS=0x12dcee6ef TscKHz=2208006
00:00:07.653721 TM: Host/VM is not suitable for using TSC mode 'RealTscOffset', request to change TSC mode ignored
00:00:07.794451 GIM: KVM: Enabled wall-clock struct. at 0x000000007ffc8000 - u32Sec=1645464903 u32Nano=829866400 uVersion=2
00:00:07.946757 PIT: mode=2 count=0x4a9 (1193) - 1000.15 Hz (ch=0)

在我关闭 VirtualBox GUI 中的 VM 之前,不会再记录任何内容。

任何想法为什么centos不想启动?

PS:Microsoft Hyper V 的东西被禁用。而且由于其他来宾操作系统可以正常工作,我假设 Hyper V 已正确禁用。

编辑 22.02.2022:我发现如果 VM 仅限于一个 CPU,它实际上会启动,所以这个问题似乎与 virtualbox 无法在 Windows 11 上获取多个 CPU 有关。为什么?

也许与在此处输入链接描述和https://forums.virtualbox.org/viewtopic.php?f=6&t=105315有关

virtualbox centos-7
  • 1 个回答
  • 293 Views
Martin Hope
rockstardev
Asked: 2022-02-10 00:43:18 +0800 CST

如何将 /usr/bin/pdftotext 映射到另一个路径?

  • 5

我最近安装了 poppler-utils:

sudo yum -y install poppler-utils

我这样做是为了获得 pdftotext,但是当我运行 pdftotext 时,我得到了这个:

pdftotext version 0.26.5
Copyright 2005-2014 The Poppler Developers - http://poppler.freedesktop.org

这是我想要的不正确的 pdftotext。我意识到正确的是我在本地运行的那个:

pdftotext version 4.03 [www.xpdfreader.com]
Copyright 1996-2021 Glyph & Cog, LLC

我设法从 xpdfreader.com 安装了 pdftotext,并将其解压缩到 /var/tmp/xpdf-tools-linux-4.03。如果我进入这个文件夹并运行它,它就可以工作,我可以看到它正在执行 4.03 版。问题是,如果我从任何其他文件夹运行它,它会执行位于以下位置的 pdftotext:

/usr/bin/pdftotext

如何将 /usr/bin/pdftotext 替换为我提取到 /var/tmp 的 pdftotext?是不是就这么简单:

cp /var/tmp/xpdf-tools-linux-4.03/bin64/pdftotext /usr/bin/pdftotext

还是我错过了任何其他重要步骤?

pdf centos-7
  • 1 个回答
  • 151 Views
Martin Hope
HCSF
Asked: 2021-02-21 20:11:25 +0800 CST

无法检测 CPU 温度?

  • 7
# sensors-detect
# sensors-detect revision 3.4.0-8 (2016-06-01)
# System: Supermicro Super Server [0123456789]
# Board: Supermicro H11DSi
# Kernel: 3.10.0-1160.15.2.el7.x86_64 x86_64
# Processor: AMD EPYC 7742 64-Core Processor (23/49/0)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           Success!
    (driver `k10temp')
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             No
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): yes
Found `IPMI BMC KCS' at 0xca2...                            Success!
    (confidence 8, driver `to-be-written')

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): yes
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Found unknown SMBus adapter 1022:790b at 0000:00:14.0.
Sorry, no supported PCI bus adapters found.
Module i2c-dev loaded successfully.

Next adapter: AST i2c bit bus (i2c-0)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: igb BB (i2c-1)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: igb BB (i2c-2)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: SMBus PIIX4 adapter port 0 at 0b00 (i2c-3)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: SMBus PIIX4 adapter port 2 at 0b00 (i2c-4)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: SMBus PIIX4 adapter port 3 at 0b00 (i2c-5)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: SMBus PIIX4 adapter port 4 at 0b00 (i2c-6)
Do you want to scan it? (YES/no/selectively): YES


Now follows a summary of the probes I have just done.
Just press ENTER to continue:   

Driver `to-be-written':
  * ISA bus, address 0xca2
    Chip `IPMI BMC KCS' (confidence: 8)

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 17h thermal sensors' (confidence: 9)

Note: there is no driver for IPMI BMC KCS yet.
Check https://hwmon.wiki.kernel.org/device_support_status for updates.

No modules to load, skipping modules configuration.

Unloading i2c-dev... OK

[root@localhost ~]# sensors
i350bb-pci-6100
Adapter: PCI adapter
loc1:         +38.0°C  (high = +120.0°C, crit = +110.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +36.1°C  (high = +70.0°C)

k10temp-pci-00cb
Adapter: PCI adapter
temp1:        +35.5°C  (high = +70.0°C)

知道为什么它不能像本文所示那样检测每个核心温度吗?

centos-7 64-bit
  • 1 个回答
  • 749 Views
Martin Hope
vidath007
Asked: 2021-02-21 01:40:21 +0800 CST

配置的软件库之一失败(centos-7 - 媒体)

  • 5

我刚刚在 VMware 上安装了 centos-7。尝试运行命令时

百胜更新

它给了我一个错误说,

配置的软件库之一失败(centos-7 - 媒体)

我尝试了所有可能的方法,但这不起作用。请帮帮我。

CLI 截图

centos-7 vmware-workstation
  • 1 个回答
  • 813 Views
Martin Hope
Ali Lord
Asked: 2021-01-17 11:06:01 +0800 CST

ffmpeg 未知编码器'libopus'centos7

  • 5

我是centos7的新手。我安装了 FFmpeg 用于将 mp3 文件转换为 opus (Telegram Bot)。但是,我尝试了很多方法来安装它,每次都遇到同样的错误!

例如,我使用这些命令来安装和编译 FFmpeg。这是我的结果:

[root@ip154 nasm-2.14.02]# ffmpeg ffmpeg 版本 3.4.8 版权所有 (c) 2000-2020 FFmpeg 开发人员使用 gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39) 构建的配置:-- prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr /lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp -buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' '--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable- gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm -- enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107. 100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 / swre.sample 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 超快速音频和视频编码器用法:ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 超快音频和视频编码器用法:ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 超快音频和视频编码器用法:ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

使用 -h 获得全面帮助,或者更好的是,运行“man ffmpeg”

可以看到--enable-libopus --disable-encoder=libopus在结果中。

当我运行这个:

ffmpeg -i /var/www/html/test.mp3 -ac 1 -map 0:a -strict -2 -codec:a opus /var/www/html/0912645.ogg

结果是分段错误!

而这段代码:

ffmpeg -i /var/www/html/test.mp3 -c:a libopus -compression_level 10 /var/www/html/hello.ogg

结果是未知编码器'libopus'!

我不知道该怎么办!!!!

ffmpeg centos-7
  • 1 个回答
  • 572 Views
Martin Hope
jstuardo
Asked: 2020-10-08 10:45:21 +0800 CST

如何更改主机名命令的结果

  • 5

当我在我的 Centos 7 服务器中发出hostname命令时,我得到以下响应:

vps.example.com

我已经/etc/hosts用这个改变了文件:

204.93.xxx.xxx mail.example.com

但是,当我再次发出hostname命令时,会显示相同的响应。

我在更改正确的文件吗?我需要重新启动还是有其他方法可以刷新该信息?

谢谢

海梅

linux centos-7
  • 2 个回答
  • 158 Views
Martin Hope
yaodav
Asked: 2020-10-01 01:41:50 +0800 CST

rsync 排除目录和所有子目录

  • 5

我试图用来rsync同步我的一些数据,但我无法排除我想要的。这是我的目录树:

tst/
├── st1
│   ├── st11
│   │   └── txt.text
│   ├── st12
│   ├── st13
│   ├── st14
│   └── st15
├── st2
├── st3
├── st4
└── st5

我想排除目录st1及其所有子目录和文件。

我尝试使用这个 Linuxize 教程但没有成功,这些是我尝试过的命令:

rsync -auvzhe --exclude 'tst/st1/' --exclude 'tst/st1/*/' --exclude 'tst/st1' tst  /home/yaodav/Desktop/shared_folder/BU/

rsync -auvzhe --exclude 'tst/st1/' --exclude 'tst/st1/*/' tst  /home/yaodav/Desktop/shared_folder/BU/

我怎样才能得到不包括的副本st1?

rsync centos-7
  • 1 个回答
  • 381 Views
Martin Hope
welwelwel
Asked: 2020-09-04 07:55:11 +0800 CST

selinux 正在阻止对文件 centos 的执行访问

  • 5

我想使用 cmdlet 在 CentOS 上启动 Tomcat 服务:

systemctl start tomcat.service

但我得到了错误

无法启动 Apache ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=203/EXEC)。

并通过命令记录:

Journalctl -xe 

是说

Selinux 正在阻止 (artup.sh) 对文件 startup.sh 执行访问

鉴于我可以在我的 CentOS 上启动任何其他服务,我的 tomcat 服务可能有什么问题?

谢谢

centos-7 centos
  • 1 个回答
  • 910 Views
Martin Hope
Alejandro Colon
Asked: 2020-08-12 10:20:34 +0800 CST

colordiff -y 在 CentOS7 中不输出颜色

  • 6

对于我的生活,我无法colordiff将颜色输出到终端。我觉得我错过了一些简单的东西。

无颜色输出示例

环境:

  • cat /etc/centos-release= CentOS Linux 版本 7.5.1804(核心)
  • colordiff --version= 差异 (GNU diffutils) 3.3
  • sudo yum info diffutils= 版本:3.3 | 发布:5.el7
  • sudo yum info colordiff= 版本:1.0.13 | 发布:2.el7
  • 终端 = PuTTY 版本 0.74
  • 操作系统 = Microsoft Windows 10 主页 | 版本 10.0.19041 内部版本 19041

我正在尝试的具体命令:

  • \colordiff -y --left-column /opt/projects/openidm/subscribers/conf/authentication.json /opt/projects/git/subscribers/conf/authentication.json

我尝试过但不会输出颜色的命令:

  • \colordiff -y --left-column <File-1> <File-2>
  • \colordiff -y --left-column --difftype=diffy <File-1> <File-2>

将在终端中为所有文件输出颜色的命令:

  • \colordiff <File-1> <File-2>
  • \colordiff -y --ignore-trailing-space <File-1> <File-2>
  • \colordiff -y --ignore-trailing-space --suppress-common-lines <File-1> <File-2>
  • \colordiff -y --left-column --ignore-trailing-space --suppress-common-lines <File-1> <File-2>

根据文件差异类型输出颜色的命令:

  • \colordiff -y --left-column --suppress-common-lines <File-1> <File-2>
  • \colordiff -y --left-column --suppress-common-lines --difftype=diffy <File-1> <File-2>
  • \colordiff -y --suppress-common-lines <File-1> <File-2>
  • \colordiff -y --suppress-common-lines --difftype=diffy <File-1> <File-2>
  • \colordiff -y <File-1> <File-2>
  • \colordiff -y --difftype=diffy <File-1> <File-2>
  • \diff -y <File-1> <File-2> | \colordiff
  • \diff -y <File-1> <File-2> | \colordiff --difftype=diffy

注意:我在大多数命令之前都带有 a\以确保不涉及别名。

更新:在尝试了多个文件进行比较后,我发现我正在比较的原始文件有一个导致问题的尾随空格。也就是说,这个问题仍然需要我添加--suppress-common-lines到我的原始命令中,即使在我的情况下,它只从输出中删除了 2 行。

Update2:我在这里向维护者提交了一个错误报告。希望这对将来的人有所帮助。

仅适用于 -y --left-column 的工作边缘情况

linux centos-7
  • 1 个回答
  • 239 Views

Sidebar

Stats

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

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve