﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; Linux</title>
	<atom:link href="http://help.vps12.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ubuntu dpkg: 处理软件包 initramfs-tools (&#8211;configure) 时出错</title>
		<link>https://help.vps12.com/2311.html</link>
		<comments>https://help.vps12.com/2311.html#comments</comments>
		<pubDate>Sat, 25 Jan 2025 07:14:14 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2311</guid>
		<description><![CDATA[dpkg: 处理软件包 initramfs-tools (&#8211;configure)时出错： 已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态 1 在处理时有错误发生： initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方法： # 进入 dpkg 目录 cd /var/lib/dpkg # 备份 info 目录 sudo mv info info_bak # 新建 info 目录 sudo mkdir info # 更新源 sudo apt update # 修复依赖关系 apt -f install # 合并内容到 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2311.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos7更换update源</title>
		<link>https://help.vps12.com/2304.html</link>
		<comments>https://help.vps12.com/2304.html#comments</comments>
		<pubDate>Fri, 07 Jun 2024 08:41:08 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2304</guid>
		<description><![CDATA[centos7 更换update源 阿里源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo or curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache yum update -y 163源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo]]></description>
		<wfw:commentRss>https://help.vps12.com/2304.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E：Could not get lock /var/lib/dpkg/lock 问题解决方法</title>
		<link>https://help.vps12.com/2298.html</link>
		<comments>https://help.vps12.com/2298.html#comments</comments>
		<pubDate>Wed, 22 May 2024 12:25:48 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2298</guid>
		<description><![CDATA[今天在ubuntu上安装软件时提示E：Could not get lock /var/lib/dpkg/lock 上述提示的意思是，无法获取/var/lib/dpkg/lock 锁，解决的办法很简单，把当前的锁干掉就可以了， 执行 sudo rm -rf /var/lib/dpkg/lock 。]]></description>
		<wfw:commentRss>https://help.vps12.com/2298.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ramfs、tmpfs、rootfs、ramdisk介绍</title>
		<link>https://help.vps12.com/2291.html</link>
		<comments>https://help.vps12.com/2291.html#comments</comments>
		<pubDate>Sun, 14 Apr 2024 02:29:25 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2291</guid>
		<description><![CDATA[bootleader&#8212;》kernel&#8212;-》initrd(是xz、cpio、是ramfs的一种，主要是驱动和为了加载rootfs准备一些环境、设备之类的)&#8212;&#8212;&#8211;》rootfs(是img镜像文件，也是ramfs的一种，是为安装系统准备的环境，以后再安装系统就是在rootfs中进行安装和处理最后得到一个真是的文件系统，安装程序在这里) 很久之前就分析过这部分内容，但是那个时候不够深入，姑且知道这么个东西存在，到底怎么用，来龙去脉咋回事就不知道了。前段时间工作上遇到了一个initrd的问题，没办法只能再去研究研究，还好，有点眉目，索性整理了一下。 网络上流传着很多关于ramdisk、initrd的各种版本的分析，我的这篇源于对他们的理解，非常感谢那些前辈的无私奉献，要不然我们这些晚辈学起东西来该是多么艰难呀。在这里需要特别声明的是如果文中有引用了您的思想而没有给出参考文献，请您原谅我的疏忽。晚辈就是需要站在像您这种巨人的肩上，技术才会发展，社会才会进步。 另外，由于本人水平有限，文中难免有误解及不全面之处，烦请指正，谢谢！ 欢迎转载，但请保留原文该有的信息。 目录 第一部分：ramfs、tmpfs、rootfs、ramdisk 一、 什么是ramfs 二、 什么是tmpfs 三、 什么是rootfs 四、 什么是ramdisk 第二部分：initrd、initramfs 一、 initrd出现的背景 二、 initrd的种类和制作 第三部分：kernel初始化initrd代码分析 一、 bootloader传递给内核的关于initrd的参数 二、 动态内存分配器slab介绍 三、 rootfs初始化 四、 内核初始化阶段对initrd的处理 五、 老式块设备的initrd的处理函数prepare_namespace()分析 附文 参考网址 第一部分：ramfs、tmpfs、rootfs、ramdisk 一、 什么是ramfs？ 1. linux缓存机制 VFS(虚拟文件系统)层屏蔽了各种真实文件系统的特性，提供给linux上层统一的接口。 通常，linux对所有文件的读写都会在内存在做高速缓存，当系统再次使用这些文件时，可以直接从内存中读取，以提高系统的I/O性能。当高速缓存中的文件被修改或者有数据写入高速缓存时，系统会在适当的时候将这些高速缓存中的数据回写到对应的文件系统设备(如磁盘、flash等)中去，那么这之后这些高速缓存的状态就被标识为clean(可用)，这样就相当于告诉了系统：这些高速缓存中的数据文件系统设备上有备份，你可以拿去另作他用。但其中的数据会保持到VMS(Virtual Memory System)将这些高速缓存回收重新分配。 类似于页缓存机制，目录缓存机制也极大地加快了对目录的访问。 2. ramfs ramfs是一种非常简单的文件系统，它直接利用linux内核已有的高速缓存机制(所以其实现代码很小,也由于这个原因，ramfs特性不能通过内核配置参数屏蔽，它是内核的天然属性)，使用系统的物理内存，做成一个大小可以动态变化的的基于内存的文件系统。 ramfs工作于虚拟文件系统层(VFS)层，不能被格式化，可以创建多个，默认情况下，ramfs最多能用到内存的一半，必要时也可以使用-o maxsize = 10000(单位是KB)来更改使用的最大内存量。 ramfs没有对应的文件系统设备，文件被写入ramfs和其他文件系统一样都正常分配页缓存和目录缓存，但是却不可能想其他有存储设备的文件系统一样将高速缓存中的文件回写到存储设备。这就意味着这些为ramfs中的文件和目录分配的高速页或者目录缓存都不可能会被标记为clean(可用)状态，所以系统就永远不会释放ramfs所占用的内存。正因为可以在ramfs下面可以一直往里写数据，直到写满为止，所以这种操作只有root(or trusted user)用户才可以进行ramfs写操作。 为了解决ramfs的缺点(没有回写设备)导致的种种问题，所以衍生出了tmpfs文件系统。 二、 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2291.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>运维 600条 Linux 命令，可以解决日常大部分问题</title>
		<link>https://help.vps12.com/2275.html</link>
		<comments>https://help.vps12.com/2275.html#comments</comments>
		<pubDate>Mon, 08 Jan 2024 15:38:48 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2275</guid>
		<description><![CDATA[1、基本命令 uname -m 显示机器的处理器架构 uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sda 在磁盘上执行测试性读取操作系统信息 arch 显示机器的处理器架构 uname -m 显示机器的处理器架构 uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 &#8211; (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sda 在磁盘上执行测试性读取操作 cat /proc/cpuinfo 显示CPU info的信息 cat /proc/interrupts 显示中断 cat /proc/meminfo 校验内存使用 cat [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2275.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新一代多系统启动U盘解决方案Ventoy</title>
		<link>https://help.vps12.com/2264.html</link>
		<comments>https://help.vps12.com/2264.html#comments</comments>
		<pubDate>Sat, 23 Dec 2023 14:41:37 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[网络产品]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2264</guid>
		<description><![CDATA[Ventoy 简介 简单来说，Ventoy是一个制作可启动U盘的开源工具。 有了Ventoy你就无需反复地格式化U盘，你只需要把 ISO/WIM/IMG/VHD(x)/EFI 等类型的文件直接拷贝到U盘里面就可以启动了，无需其他操作。 你可以一次性拷贝很多个不同类型的镜像文件，Ventoy 会在启动时显示一个菜单来供你进行选择 (参见 截图)。 你还可以在 Ventoy 的界面中直接浏览并启动本地硬盘中的 ISO/WIM/IMG/VHD(x)/EFI 等类型的文件。 Ventoy 安装之后，同一个U盘可以同时支持 x86 Legacy BIOS、IA32 UEFI、x86_64 UEFI、ARM64 UEFI 和 MIPS64EL UEFI 模式，同时还不影响U盘的日常使用。 Ventoy 支持大部分常见类型的操作系统 （Windows/WinPE/Linux/ChromeOS/Unix/VMware/Xen &#8230;） 目前已经测试了各类超过 1100+ 个镜像文件(列表)。 支持 distrowatch.com 网站上收录的 90%+ 的操作系统(列表) iVentoy 如果你有通过网络安装操作系统（PXE）的需求，欢迎使用作者的新项目——iVentoy     https://www.iventoy.com Ventoy Browser Ventoy 除了可以启动U盘中的文件以外，还可以浏览、启动本地硬盘、移动硬盘中的 ISO/WIM/IMG/VHD(x)/EFI 等类型的文件。说明 VentoyPlugson Ventoy 通过各种插件提供了非常多的功能。同时还提供了一个图形化插件配置器 —— VentoyPlugson 方便使用。]]></description>
		<wfw:commentRss>https://help.vps12.com/2264.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>proxmox使用apt更新解决办法</title>
		<link>https://help.vps12.com/2255.html</link>
		<comments>https://help.vps12.com/2255.html#comments</comments>
		<pubDate>Tue, 03 Oct 2023 15:31:10 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2255</guid>
		<description><![CDATA[有一台pve6.3.2已经有2年多没更新和重启了。最近迁移了vps数据，想更新一下并重启。担提示如下所示的错误： ?View Code BASH1 2 3 4 5 6 7 8 9 10 11 Get:1 http://ftp.debian.org/debian buster InRelease &#91;123 kB&#93; Get:2 http://security.debian.org buster/updates InRelease &#91;65.3 kB&#93; Get:3 http://ftp.debian.org/debian buster-updates InRelease &#91;51.1 kB&#93; Reading package lists... Done E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable' N: This must be accepted explicitly [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2255.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Vim无法使用鼠标右键复制 解决方法</title>
		<link>https://help.vps12.com/2216.html</link>
		<comments>https://help.vps12.com/2216.html#comments</comments>
		<pubDate>Thu, 10 Aug 2023 03:05:16 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2216</guid>
		<description><![CDATA[由于日常大部分工作需要在 Debian 环境下完成，最近发现升级到 Debian Stretch 后，Vim 的一个常用操作没法做了，没法使用鼠标，直接选择并复制。很别扭，之前用着没问题的。今天来分享一个解决办法，为大家解决 Debian 9以后 vim或是vi 环境下，无法使用鼠标右键进行选择、复制的问题，供大家参考。 Debian 无法使用鼠标右键选择、复制的解决方法，Debian 怎么使用右键复制 装了 debian 9 以后，vim没有办法使用鼠标直接选择并复制，检查后发现是一个默认的配置问题。可以使用以下方法彻底解决。 1、 打开 vim 的默认配置文件 vim /usr/share/vim/vim80/defaults.vim //debian 9 vim /usr/share/vim/vim82/defaults.vim //debian 10 其他系统类推。反正就是vim8x目录 (adsbygoogle = window.adsbygoogle &#124;&#124; []).push({}); 2、 转至第 70 行左右，找到： if has(&#8216;mouse&#8217;) set mouse=a endif 3、将 set mouse=a 改为：set mouse-=a 4、输入 :wq 保存即可生效。 一行命令键解决问题。 //v9 [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2216.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos下Jenkins的安装和设置</title>
		<link>https://help.vps12.com/2237.html</link>
		<comments>https://help.vps12.com/2237.html#comments</comments>
		<pubDate>Sun, 02 Jul 2023 03:10:13 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2237</guid>
		<description><![CDATA[运行以下命令 ?View Code BASH1 2 3 4 5 6 7 8 9 wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key &#160; yum install fontconfig java-11-openjdk -y yum install jenkins -y &#160; #启动服务，并设置开机启用服务 /bin/systemctl enable jenkins service jenkins start 然后访问http://xxxx.xxxx.xxxx.xxxx:8080 初始管理员密码在对应提示的目录文件中。查看并登陆]]></description>
		<wfw:commentRss>https://help.vps12.com/2237.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux运维必备的13款实用工具(转)</title>
		<link>https://help.vps12.com/2229.html</link>
		<comments>https://help.vps12.com/2229.html#comments</comments>
		<pubDate>Wed, 07 Jun 2023 01:30:18 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=2229</guid>
		<description><![CDATA[本文介绍几款 Linux 运维比较实用的工具，希望对 Linux 管理员有所帮助。 1、查看进程占用带宽情况-Nethogs Nethogs 是一个终端下的网络流量监控工具可以直观的显示每个进程占用的带宽。 下载：http://sourceforge.net/projects/nethogs/files/nethogs/0.8/nethogs-0.8.0.tar.gz/download [root@localhost ~]#yum -y install libpcap-devel ncurses-devel [root@localhost ~]# tar zxvf nethogs-0.8.0.tar.gz [root@localhost ~]# cd nethogs [root@localhost nethogs]# make &#038;&#038; make install [root@localhost nethogs]# nethogs eth0 2、硬盘读取性能测试-IOZone IOZone是一款Linux文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载：http://www.iozone.org/src/current/ [root@localhost current]# tar xvf iozone3_420.tar [root@localhost ~]# cd iozone3_420/src/current/ [root@localhost current]# make linux [root@localhost current]# ./iozone -a [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/2229.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
