<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>辰海社区 - Linux</title>
    <link>https://vnet.chat/forum-57-1.html</link>
    <description>Latest 20 threads of Linux</description>
    <copyright>Copyright(C) 辰海社区</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 13 May 2026 11:47:06 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://vnet.chat/static/image/common/logo_88_31.gif</url>
      <title>辰海社区</title>
      <link>https://vnet.chat/</link>
    </image>
    <item>
      <title>CentOS7建议将NM_CONTROLLED设置为NM_CONTROLLED=no的原因</title>
      <link>https://vnet.chat/thread-98-1-1.html</link>
      <description><![CDATA[很多情况下，大家需要对网卡的配置文件进行修改，并期望在需要生效时，通过重启服务器或network服务，使新配置生效。
但如果没有关注过配置文件中的这个参数“NM_CONTROLLED=yes”你可能会翻车。

案例：
IDC机房某台服务器需要进行IP地址更换，修改完配置文件wq保存后 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Sun, 16 Jul 2023 03:05:18 +0000</pubDate>
    </item>
    <item>
      <title>sar命令报错Cannot open /var/log/sa/sadd: No such fi...的问题</title>
      <link>https://vnet.chat/thread-97-1-1.html</link>
      <description><![CDATA[sar命令报错Cannot open /var/log/sa/sadd: No such fi...的问题


首次安装好后执行命令#sar 会报如下错误

 

Cannot open /var/log/sa/sa22: No such file or directory

 

22是指当天的日期  www.2cto.com  

 

这个是由于没有创建那sa22这个文件，这可以通过参数 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Mon, 20 Feb 2023 15:42:16 +0000</pubDate>
    </item>
    <item>
      <title>sysstat工具介绍</title>
      <link>https://vnet.chat/thread-96-1-1.html</link>
      <description><![CDATA[sysstat 是 Linux 系统中的常用工具包。它的主要用途是观察服务负载，比如CPU和内存的占用率、网络的使用率以及磁盘写入和读取速度等。sysstat 工具包中包含两类工具：
[*]即时查看工具：iostat、mpstat、sar
[*]累计统计工具：sar
也就是说，sar 具有这两种功能。因此 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Mon, 20 Feb 2023 15:08:13 +0000</pubDate>
    </item>
    <item>
      <title>[荐]centos 磁盘IO读写性能测试工具</title>
      <link>https://vnet.chat/thread-95-1-1.html</link>
      <description><![CDATA[1. time+dd
mkdir -p /root/test

写：time dd if=/dev/md126 of=/root/test/out bs=8k
读：time dd if=/root/test/out of=/dev/null bs=8k

写速度
$dd if=/dev/zero bs=1k count=1000000 of=1Gb.file
1000000+0 records in
1000000+0 records out
1024000000 bytes (1 .]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Thu, 12 Jan 2023 15:04:35 +0000</pubDate>
    </item>
    <item>
      <title>hdparm磁盘工具</title>
      <link>https://vnet.chat/thread-94-1-1.html</link>
      <description><![CDATA[补充说明
hdparm命令 提供了一个命令行的接口用于读取和设置IDE或SCSI硬盘参数。

语法
hdparm(选项)(参数)
选项
-a：设定读取文件时，预先存入块区的分区数，若不加上选项，则显示目前的设定；
-A：启动或关闭读取文件时的快取功能；
-c：设定IDE32位I/O模式；
-C：检 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Thu, 12 Jan 2023 14:48:20 +0000</pubDate>
    </item>
    <item>
      <title>linux查看文件夹容量大小方法</title>
      <link>https://vnet.chat/thread-91-1-1.html</link>
      <description><![CDATA[有时磁盘空间不足时，需要知道那个目录占用了大部分的磁盘空间，此时使用du命令可以方便地查看各个目录所占磁盘空间大小，以便及时清理不需要的数据。

du命令作用是估计文件系统的磁盘已使用量，常用于查看文件或目录所占磁盘容量。
du命令与df命令不同，df命令是统计 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Sat, 17 Dec 2022 14:21:13 +0000</pubDate>
    </item>
    <item>
      <title>traceroute命令详细使用指南</title>
      <link>https://vnet.chat/thread-84-1-1.html</link>
      <description><![CDATA[linux主机系统下命令为：traceroute  hostname
Windows系统下命令为：tracert  hostname

traceroute安装方法：
# yum install traceroute

命令介绍：
traceroute指令让你追踪网络数据包的路由途径，预设数据包大小是40Bytes，用户可另行设置。
Traceroute是用来侦测主 ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Sun, 03 Jul 2022 01:30:17 +0000</pubDate>
    </item>
    <item>
      <title>CentOS7 查看网卡UUID方法</title>
      <link>https://vnet.chat/thread-83-1-1.html</link>
      <description><![CDATA[网卡配置文件正常时，查看方法：
# nmcli con show       //通过该命令可查询网卡UUID

备注：使用nmcli命令需要先启动NetworkManager，注意大小写。


网卡配置文件不可用或配置文件中UUID错误时：
# uuidgen ens33        //使用uuidgen ens33为网卡ens33生成新的UUID ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Mon, 23 May 2022 10:18:10 +0000</pubDate>
    </item>
    <item>
      <title>CentOS系统SSH连接超时问题临时解决办法</title>
      <link>https://vnet.chat/thread-82-1-1.html</link>
      <description><![CDATA[大家通过SSH客户端登录CentOS系统时，经常遇到超过一定时间，连接自动断开。

可以通过执行以下命令，实现本次连接永不超时。
输入：TMOUT=0回车即可。

当手工断开重连时，需要重新执行。
 ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Fri, 20 May 2022 07:29:17 +0000</pubDate>
    </item>
    <item>
      <title>iperf3支持的参数</title>
      <link>https://vnet.chat/thread-81-1-1.html</link>
      <description><![CDATA[iPerf 工作模式和参数
iPerf 的工作时需要指定 Server 模式或 Client 模式，通过不同的参数来区别（-s 和-c）。iPerf3 所支持的功能也都通过设置不同的参数来实现。iPerf 的参数分为 3 类：通用参数，Server 端参数，Client 端参数。通用参数为 Server 端和 Client 端都 ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Wed, 27 Apr 2022 04:23:26 +0000</pubDate>
    </item>
    <item>
      <title>centos下rc.local文件脚本开机不执行问题分析</title>
      <link>https://vnet.chat/thread-78-1-1.html</link>
      <description><![CDATA[在Centos7下，rc.local文件，开机默认是不执行的

必须运行 chmod +x /etc/rc.d/rc.local

命令来确保启动过程中执行此脚本 。]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Sun, 27 Feb 2022 14:26:55 +0000</pubDate>
    </item>
    <item>
      <title>centos普通用户执行sudo -i时报&quot;用户不在sudoers文件中&quot;</title>
      <link>https://vnet.chat/thread-76-1-1.html</link>
      <description><![CDATA[一、问题描述
某centos系统的服务器由于安全要求禁掉了root用户直接ssh，需要通过普通用户登录后再切换到root用户。当尝试通过sudo -i 切换root用户时，输入密码后报以下错误：
[beijing@localhost ~]$ sudo -i
[sudo] beijing 的密码：
beijing 不在 sudoers 文件中。 ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Sat, 20 Nov 2021 07:09:24 +0000</pubDate>
    </item>
    <item>
      <title>CentOS通过pam实现ssh用户登录控制</title>
      <link>https://vnet.chat/thread-75-1-1.html</link>
      <description><![CDATA[有关pam的使用，请找相关的文档。
下面只说两个简单的例子。
(1) 首先在/etc/pam.d/sshd加入一句：
account    required     pam_access.so

(2) 然后再修改：/etc/security/access.conf，加上一句
-:ALL EXCEPT wheel: ALL
该文件的每一行由如下三个字段构成，中间使用 ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Sat, 20 Nov 2021 06:08:13 +0000</pubDate>
    </item>
    <item>
      <title>CentOS下SSH支持的几种登录方式</title>
      <link>https://vnet.chat/thread-74-1-1.html</link>
      <description><![CDATA[ssh登录一般分为4种：
1.PAM认证
在在配置文件/etc/ssh/sshd_config中对应参数:
UsePAM

2.公钥私钥认证:需要导入公私钥文件
在配置文件/etc/ssh/sshd_config中对应参数：
RSAAuthentication、PubkeyAuthentication
我们在配置SSH免密码登陆的时候采用的就是PubkeyAuthe ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Sat, 20 Nov 2021 06:02:25 +0000</pubDate>
    </item>
    <item>
      <title>ps -ef和ps aux的区别及格式详解</title>
      <link>https://vnet.chat/thread-73-1-1.html</link>
      <description><![CDATA[Linux下显示系统进程的命令ps，最常用的有ps -ef 和ps aux。这两个到底有什么区别呢？两者没太大差别，讨论这个问题，要追溯到Unix系统中的两种风格，System Ｖ风格和BSD 风格，ps aux最初用到Unix Style中，而ps -ef被用在System V Style中，两者输出略有不同。现在的 ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Fri, 03 Sep 2021 11:14:56 +0000</pubDate>
    </item>
    <item>
      <title>ubuntu挂载-卸载新磁盘操作指南</title>
      <link>https://vnet.chat/thread-68-1-1.html</link>
      <description><![CDATA[1. 创建新磁盘分区：
# fdisk /dev/sdb

2. 格式化新分区：
# mkfs -t ext4 /dev/sdb1

3. 挂载新分区
# mount /dev/sdb1 /opt/myseafile

4. 设置开机自动挂载
# vim /etc/fstab
# 添加内容：/dev/disk/by-uuid/3ed6af32-bd32-48d3-8f11-3327c7e9dc5d /opt/mydatapool/ ...]]></description>
      <category>Linux</category>
      <author>lovet</author>
      <pubDate>Sat, 24 Jul 2021 16:44:45 +0000</pubDate>
    </item>
    <item>
      <title>Ubuntu常用命令整理</title>
      <link>https://vnet.chat/thread-66-1-1.html</link>
      <description><![CDATA[[*]ubuntu查看已安装的软件：dpkg -l        例如：dpkg -l | grep ftp
[*]ubuntu查看已安装软件的路径：dpkg -L | grep ftp      也可以使用whereis ftp
[*]ubuntu查看软件版本：aptitude show        例如：aptitude show ftp

 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Sat, 24 Jul 2021 04:47:18 +0000</pubDate>
    </item>
    <item>
      <title>Ubuntu18.4网卡配置修改</title>
      <link>https://vnet.chat/thread-64-1-1.html</link>
      <description><![CDATA[查了一下ubuntu怎么修改ip地址才发现“ubuntu从17.10开始，已放弃在/etc/network/interfaces里固定IP的配置，即使配置也不会生效，而是改成netplan方式 ，配置写在/etc/netplan/01-netcfg.yaml或者类似名称的yaml文件里”
话不多说，直接说netplan怎么修改ip地址
使用if ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Thu, 22 Jul 2021 06:42:01 +0000</pubDate>
    </item>
    <item>
      <title>CentOS上使用netstat查看当前服务和监听端口</title>
      <link>https://vnet.chat/thread-61-1-1.html</link>
      <description><![CDATA[netstat这个命令常用在网络监控方面。利用这个命令，可以查看当前系统监听的服务和已经建立的服务，以及相应的端口、协议等信息。
netstat参数说明: (netstat参数虽然很多，但是常用的不多，主要是下面几个参数：)
netstat -[atunlp]
-a ：all，表示列出所有的连接，服 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Wed, 21 Jul 2021 08:09:29 +0000</pubDate>
    </item>
    <item>
      <title>CentOS磁盘操作常用命令整理</title>
      <link>https://vnet.chat/thread-60-1-1.html</link>
      <description><![CDATA[1.  fdisk -l     #查看磁盘情况。
2.  gdisk /dev/sdb   #对磁盘进行分区操作，支持超过4GB分区创建。
3.  df -h    #分区空间利用率及挂载点查看情况
4.  blkid    #查看分区UUID信息。
5.  /etc/fstab     #磁盘开机启动挂载设置文件。
6.  lsblk     #以树状列出所 ...]]></description>
      <category>Linux</category>
      <author>admin</author>
      <pubDate>Wed, 21 Jul 2021 07:36:50 +0000</pubDate>
    </item>
  </channel>
</rss>