<?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://www.ywbk.cc/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ywbk.cc</link>
	<description>开发&#38;运维</description>
	<lastBuildDate>Thu, 28 May 2026 02:59:52 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.7.41</generator>
	<item>
		<title>Linux 服务器重启进入了紧急模式处理</title>
		<link>http://www.ywbk.cc/1346.html</link>
		<comments>http://www.ywbk.cc/1346.html#comments</comments>
		<pubDate>Thu, 18 Dec 2025 23:08:59 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ywbk.cc/?p=1346</guid>
		<description><![CDATA[登录：输入 root 密码进入 shell。 #重挂根为读写，否则无法修改文件）。 mount -o rw,r [&#8230;]]]></description>
				<content:encoded><![CDATA[<pre class="prettyprint linenums" >
登录：输入 root 密码进入 shell。
#重挂根为读写，否则无法修改文件）。
mount -o rw,remount /
#检查 fstab 配置
mount -a
#如果报错修复不好，可以先修改fstab
vim /etc/fstab
#例如注释掉/dev/sdb1 /appslog xfs defaults 0 0
#保存重启，进入操作系统再进一步处理
</pre>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1346.html">Linux 服务器重启进入了紧急模式处理</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1346.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SUSE的/etc/hosts.deny中反复出现sshd: *.*.*.*的原因和解决</title>
		<link>http://www.ywbk.cc/1321.html</link>
		<comments>http://www.ywbk.cc/1321.html#comments</comments>
		<pubDate>Wed, 16 Jul 2025 02:05:54 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ywbk.cc/?p=1321</guid>
		<description><![CDATA[DenyHosts 是一款专门用于防御 SSH 暴力破解的工具，其工作原理是： 监控 SSH 登录日志（如/v [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>DenyHosts 是一款专门用于防御 SSH 暴力破解的工具，其工作原理是：<br />
监控 SSH 登录日志（如/var/log/secure）。<br />
当检测到某 IP 多次登录失败（超过阈值），会自动将该 IP 添加到/etc/hosts.deny中屏蔽。<br />
即使手动删除hosts.deny中的记录，DenyHosts 会定期重新加载配置，导致记录被再次添加。</p>
<p>解决办法（下面的IP替换成实际IP）：</p>
<pre class="prettyprint linenums">sed -i '/10.132.151.148/d' /usr/share/denyhosts/data/hosts
sed -i '/10.132.151.148/d' /usr/share/denyhosts/data/hosts-restricted
sed -i '/10.132.151.148/d' /usr/share/denyhosts/data/hosts-valid
sed -i '/10.132.151.148/d' /usr/share/denyhosts/data/users-hosts
sed -i '/10.132.151.148/d' /etc/hosts.deny
sed -i '/10.132.151.148/d' /usr/share/denyhosts/data/hosts-root
grep '10.132.151.148' /usr/share/denyhosts/data/* /etc/hosts.deny
/etc/init.d/denyhosts restart</pre>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1321.html">SUSE的/etc/hosts.deny中反复出现sshd: *.*.*.*的原因和解决</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1321.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何 在Ubuntu 22 上禁用Telnet</title>
		<link>http://www.ywbk.cc/1290.html</link>
		<comments>http://www.ywbk.cc/1290.html#comments</comments>
		<pubDate>Wed, 04 Sep 2024 09:43:11 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1290</guid>
		<description><![CDATA[systemctl stop inetd systemctl disable inetd netstat -t [&#8230;]]]></description>
				<content:encoded><![CDATA[<pre class="prettyprint linenums" >
systemctl stop inetd
systemctl disable inetd
netstat -tuln | grep ':23'
</pre>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1290.html">如何 在Ubuntu 22 上禁用Telnet</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1290.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 SUSE 12 Linux 服务器中进入单用户模式</title>
		<link>http://www.ywbk.cc/1254.html</link>
		<comments>http://www.ywbk.cc/1254.html#comments</comments>
		<pubDate>Thu, 21 Mar 2024 01:46:52 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1254</guid>
		<description><![CDATA[1.重启系统，在 GRUB 启动菜单（屏幕出现下述选项）时按任意键停止内核的自动启动。 SLES 12-SP3 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>1.重启系统，在 GRUB 启动菜单（屏幕出现下述选项）时按任意键停止内核的自动启动。</p>
<pre class="prettyprint linenums">SLES 12-SP3
Advanced options for SLES 12-SP3</pre>
<p>2.在所选内核（通常是你首选的最新内核）上按“e”更新其启动选项，然后向下滚动到内核引导行，并在行尾添加“init=/bin/bash”。</p>
<pre class="prettyprint linenums">linux              /vmlinuz-4.4.143-94.47-default root=/dev/mapper/roo\
tvg-rootlvresume=/dev/swapvg/swaplv splash=silent quiet showopts crash\
kernel=113M,high crashkernel=72M,low <span style="text-decoration: underline;">init=/bin/bash</span></pre>
<p>3.按“Ctrl-x”或“F10”来启动这个编辑过的内核。内核将以单用户模式启动，你将看到“#”号提示符，即有服务器的 root 访问权限。此时，根文件系统以只读模式挂载。因此，你对系统所做的任何更改都不会被保存。<br />
4.运行以下命令以将根文件系统重新挂载为可重写入的：</p>
<pre class="prettyprint linenums">kerneltalks:/ # <span style="text-decoration: underline;">mount -o remount,rw /</span></pre>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1254.html">在 SUSE 12 Linux 服务器中进入单用户模式</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1254.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu/lubuntu/kubuntu/xubuntu各版本镜像下载地址</title>
		<link>http://www.ywbk.cc/1207.html</link>
		<comments>http://www.ywbk.cc/1207.html#comments</comments>
		<pubDate>Thu, 25 Jan 2024 09:39:53 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1207</guid>
		<description><![CDATA[总链接 https://mirrors.nju.edu.cn/ubuntu-cdimage/ ubuntu 下 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>总链接</p>
<p>https://mirrors.nju.edu.cn/ubuntu-cdimage/</p>
<p>ubuntu 下载地址</p>
<p>https://mirrors.nju.edu.cn/ubuntu-cdimage/ubuntu/releases/</p>
<p>lubuntu 下载地址</p>
<p>https://mirrors.nju.edu.cn/ubuntu-cdimage/lubuntu/releases/</p>
<p>kubuntu 下载地址</p>
<p>https://mirrors.nju.edu.cn/ubuntu-cdimage/kubuntu/releases/</p>
<p>xubuntu 下载地址</p>
<p>https://mirrors.nju.edu.cn/ubuntu-cdimage/xubuntu/releases/</p>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1207.html">ubuntu/lubuntu/kubuntu/xubuntu各版本镜像下载地址</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1207.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SUSE12 SP1进入单用户模式</title>
		<link>http://www.ywbk.cc/1189.html</link>
		<comments>http://www.ywbk.cc/1189.html#comments</comments>
		<pubDate>Tue, 28 Nov 2023 03:03:30 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1189</guid>
		<description><![CDATA[SUSE12进入单用户模式已不同于以往的版本，现在介绍下进入单用户模式的方法。 1、 启动系统过程中，在选择页 [&#8230;]]]></description>
				<content:encoded><![CDATA[<blockquote><p>SUSE12进入单用户模式已不同于以往的版本，现在介绍下进入单用户模式的方法。</p></blockquote>
<p>1、 启动系统过程中，在选择页面不停按上下光标键，以防跳过，然后按e进入编辑状态；<br />
2、 找到Linux开头的这一行，在resume=/dev/sda1/后面添加rw，在splash=silent后面加上1，记得用空格隔开；<br />
3、编辑完成后，按ctrl+x启动系统，此时出现如下提示，输入root，再输入原口令登录系统；<br />
4、此时即可进行后续操作。</p>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1189.html">SUSE12 SP1进入单用户模式</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1189.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用一条命令查询Linux的CPU使用率、内存使用率、磁盘使用率、网络接口使用率</title>
		<link>http://www.ywbk.cc/1186.html</link>
		<comments>http://www.ywbk.cc/1186.html#comments</comments>
		<pubDate>Tue, 28 Nov 2023 02:52:40 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1186</guid>
		<description><![CDATA[1、通用的查询命令： #CPU使用率 top -b -n 1 &#124; grep Cpu &#124; awk '{print [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2>1、通用的查询命令：</h2>
<pre class="prettyprint linenums">#CPU使用率
top -b -n 1 | grep Cpu | awk '{print $2+$3}'
#内存使用率
free -m | grep Mem | awk '{print $3/$2*100}'
#硬盘空间使用率(取最大值)
df -h | awk '{print $5}' | sort -rn | head -1</pre>
<h2>2、如果安装了sar，可以使用：</h2>
<pre class="prettyprint linenums">#CPU使用率
sar -u 1 1 | sed -n '4p' | awk '{print $3+$4+$5+$6+$7}'
#内存使用率
sar -r 1 1 | sed -n '4p' | awk '{print $6}'
#网络接口使用率(取最大值)
sar -n DEV 1 1 | awk '{print $11}' | sort -rn | head -1</pre>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1186.html">使用一条命令查询Linux的CPU使用率、内存使用率、磁盘使用率、网络接口使用率</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1186.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EVE-ng模拟器关联 Wireshark 进行抓包</title>
		<link>http://www.ywbk.cc/1168.html</link>
		<comments>http://www.ywbk.cc/1168.html#comments</comments>
		<pubDate>Sat, 22 Jul 2023 00:14:06 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1168</guid>
		<description><![CDATA[321，上连接https://www.cnblogs.com/boluo0423/p/17491523.htm [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>321，上连接<a href="https://www.cnblogs.com/boluo0423/p/17491523.html">https://www.cnblogs.com/boluo0423/p/17491523.html</a></p>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1168.html">EVE-ng模拟器关联 Wireshark 进行抓包</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1168.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux系统查看硬件信息的命令</title>
		<link>http://www.ywbk.cc/1163.html</link>
		<comments>http://www.ywbk.cc/1163.html#comments</comments>
		<pubDate>Fri, 07 Jul 2023 08:06:53 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1163</guid>
		<description><![CDATA[1.dmidecode, 使用该命令可以查询BIOS、系统、主板、处理器、内存、缓存等: dmidecode  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>1.dmidecode, 使用该命令可以查询BIOS、系统、主板、处理器、内存、缓存等:</p>
<pre class="prettyprint linenums">dmidecode | grep 'Product Name'                           // 查看服务器型号
dmidecode | grep 'Serial Number'                          // 查看主板的序列号
dmidecode -s system-serial-number                         // 查看系统序列号
dmidecode -t memory                                       // 查看内存信息
dmidecode -t 11                                           // 查看OEM信息
dmidecode | grep -A16 "Memory Device" | grep "Size" |sed 's/^[ \t]*//'  // 现有内存数量和内存大小
dmidecode | grep "Maximum Capacity" |sed  "s/^[ \t]*//"   // 最大支持内存容量</pre>
<p>2.uname（unix name）命令用于显示操作系统信息，例如内核版本、主机名、处理器类型等：</p>
<pre class="prettyprint linenums">uname    -a 或--all 　显示全部的信息，包括内核名称、主机名、操作系统版本、处理器类型和硬件架构等
uname    -m 或--machine 　显示处理器类型。
uname    -n 或--nodename 　显示主机名。
uname    -r 或--release 　显示内核版本号。
uname    -s 或--sysname 　显示操作系统名称。
uname    -v 　显示操作系统的版本。
uname    --help 　显示帮助。
uname    --version 　显示版本信息。
uname    -p 显示处理器类型（与 -m 选项相同）。</pre>
<p>3.lspci 命令</p>
<pre class="prettyprint linenums">#会列出 PCI 总线及其连接的设备:芯片组、无线适配器、显卡等</pre>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1163.html">linux系统查看硬件信息的命令</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1163.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS7上不记录当前操作到history/删除当前会话执行命令的记录</title>
		<link>http://www.ywbk.cc/1152.html</link>
		<comments>http://www.ywbk.cc/1152.html#comments</comments>
		<pubDate>Thu, 27 Apr 2023 07:47:27 +0000</pubDate>
		<dc:creator><![CDATA[sxdgy]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.05bd.com/?p=1152</guid>
		<description><![CDATA[history -r 由于登录后，history命令都会保存在内存中，前操作的其实都是存在在内存中的历史记录缓 [&#8230;]]]></description>
				<content:encoded><![CDATA[<pre class="prettyprint linenums">history -r</pre>
<p>由于登录后，history命令都会保存在内存中，前操作的其实都是存在在内存中的历史记录缓存。在使用history命令后，会将当前操作写入~/.bash_history文件，然后打印出来。如果没有执行history命令的话，直接使用history -r，会将文件中的历史记录在此刷入缓存，那么之前操作的记录就不会保存了。</p>
<p>转载请注明：<a href="http://www.ywbk.cc">运维博客</a> &raquo; <a href="http://www.ywbk.cc/1152.html">CentOS7上不记录当前操作到history/删除当前会话执行命令的记录</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.ywbk.cc/1152.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
