<?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; CentOS</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS-7.x官方停止维护后yum源失效解决办法</title>
		<link>https://www.osyunwei.com/archives/14450.html</link>
		<comments>https://www.osyunwei.com/archives/14450.html#comments</comments>
		<pubDate>Wed, 28 Aug 2024 08:20:39 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[yum源]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=14450</guid>
		<description><![CDATA[截止目前CentOS-7.x官方已经停止维护，yum命令默认已经无法使用。 CentOS官方提供了一个旧版软件存档http://vault.centos.org/，我们可以使用这个连接替换yum源 1、查询当前系统版本 cat /etc/redhat-release 当前系统版本是CentOS Linux release 7.9.2009 (Core) yum install wget #测试安装软件，默认无法使用yum命令 2、创建yum源文件 #备份默认的源文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backup vi /etc/yum.repos.d/CentOS-Base.repo #编辑源文件 [base] name=CentOS-7.9.2009 enabled=1 failovermethod=priority baseurl=https://vault.centos.org/7.9.2009/os/$basearch/ gpgcheck=1 gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7 [updates] name=CentOS-7.9.2009 enabled=1 failovermethod=priority baseurl=https://vault.centos.org/7.9.2009/updates/$basearch/ gpgcheck=1 gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7 [extras] name=CentOS-7.9.2009 enabled=1 failovermethod=priority baseurl=https://vault.centos.org/7.9.2009/extras/$basearch/ gpgcheck=1 gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7 :wq! #保存退出 yum clean all yum makecache #生成缓存 yum install wget #再次测试安装软件 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/14450.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/14450.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS-7.x终端界面变成-bash-4.2$解决办法</title>
		<link>https://www.osyunwei.com/archives/13620.html</link>
		<comments>https://www.osyunwei.com/archives/13620.html#comments</comments>
		<pubDate>Fri, 12 May 2023 10:21:32 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13620</guid>
		<description><![CDATA[遇到问题：切换到用户user的时候，出现-bash-4.2$，正常情况下应该是用户名@主机名 例如：[user@pgsql-slave ~]$ 原因：用户user的家目录下文件丢失导致，缺少下面2个文件 .bash_profile .bashrc Linux系统使用useradd创建新用户时，系统会将所有的配置文件从/etc/skel/目录下复制到新用户家目录下，例如：/home/user下面，注意文件是隐藏的，使用ls -la #查看隐藏文件 解决办法： 1、切换到有故障的用户 su - user 2、复制/etc/skel 里面的模板到当前用户 cp /etc/skel/.bash*  ~ ls -la 3、重新登录 exit su - user 至此，CentOS-7.x终端界面变成-bash-4.2$解决办法教程完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/13620.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » CentOS-7.x终端界面变成-bash-4.2$解决办法<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13620.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13620.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS-7.x进入单用户模式修改系统内核参数</title>
		<link>https://www.osyunwei.com/archives/13392.html</link>
		<comments>https://www.osyunwei.com/archives/13392.html#comments</comments>
		<pubDate>Thu, 13 Apr 2023 10:33:57 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13392</guid>
		<description><![CDATA[遇到问题：修改vi /etc/security/limits.conf参数后，系统无法登录 * soft nofile unlimited * hard nofile unlimited 原因：* soft nofile和* hard nofile两个参数最大值为1000000，如果大于1000000，会导致系统无法登录 解决办法：进入单用户模式，进行操作 1、重启系统，在系统启动界面中选择对应的内核，按"e"进入修改界面 2、进入修改界面后找到linux16这行，在此行的结尾添加 rd.break 3、按Ctrl+x 执行启动操作 4、mount -o remount,rw /sysroot/ #读写权限挂载根目录 5、chroot /sysroot/ #切回系统 6、vi /etc/security/limits.conf #编辑修改，删掉最后的这几行参数 * soft nofile * hard nofile :wq! #保存退出 7、exec /sbin/init #退出 8、reboot #重启 9、已经可以正常登录系统了 至此，CentOS-7.x进入单用户模式修改系统内核参数完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/13392.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » CentOS-7.x进入单用户模式修改系统内核参数<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13392.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13392.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下解压rar压缩文件</title>
		<link>https://www.osyunwei.com/archives/13251.html</link>
		<comments>https://www.osyunwei.com/archives/13251.html#comments</comments>
		<pubDate>Sun, 29 Jan 2023 14:34:12 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[winrar]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13251</guid>
		<description><![CDATA[操作系统：CentOS 7.x 1、下载解压工具包unar 下载地址： https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/libobjc-4.8.5-44.el7.x86_64.rpm https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/avahi-libs-0.6.31-20.el7.x86_64.rpm https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/wavpack-4.60.1-9.el7.x86_64.rpm https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/nettle-2.7.1-8.el7.x86_64.rpm https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/trousers-0.3.14-2.el7.x86_64.rpm https://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/gnutls-3.3.29-9.el7_6.x86_64.rpm https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/g/gnustep-base-libs-1.24.9-1.el7.x86_64.rpm https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/u/unar-1.10.7-1.el7.x86_64.rpm 上传安装包到/usr/local/src目录 2、安装unar工具包 cd /usr/local/src rpm -ivh libobjc-4.8.5-44.el7.x86_64.rpm rpm -ivh avahi-libs-0.6.31-20.el7.x86_64.rpm rpm -ivh wavpack-4.60.1-9.el7.x86_64.rpm rpm -ivh nettle-2.7.1-8.el7.x86_64.rpm rpm -ivh trousers-0.3.14-2.el7.x86_64.rpm rpm -ivh gnutls-3.3.29-9.el7_6.x86_64.rpm rpm -ivh gnustep-base-libs-1.24.9-1.el7.x86_64.rpm rpm -ivh unar-1.10.7-1.el7.x86_64.rpm #yum源安装 yum install epel-release #需要安装epel源 yum install unar 3、解压rar文件 unar file.rar #Linux解压缩命令 *.tar.gz后缀 解压命令：tar -zxv [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13251.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13251.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS挂载读取ntfs格式的磁盘</title>
		<link>https://www.osyunwei.com/archives/13242.html</link>
		<comments>https://www.osyunwei.com/archives/13242.html#comments</comments>
		<pubDate>Sun, 29 Jan 2023 06:36:58 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux挂载NTFS]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13242</guid>
		<description><![CDATA[1、下载安装rpm包 下载安装包： https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-libs-2022.10.3-1.el7.x86_64.rpm https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-2022.10.3-1.el7.x86_64.rpm https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-devel-2022.10.3-1.el7.x86_64.rpm https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfsprogs-2022.10.3-1.el7.x86_64.rpm https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/psmisc-22.20-17.el7.x86_64.rpm #安装rpm包 rpm -ivh ntfs-3g-libs-2022.10.3-1.el7.x86_64.rpm rpm -ivh ntfs-3g-2022.10.3-1.el7.x86_64.rpm rpm -ivh ntfs-3g-devel-2022.10.3-1.el7.x86_64.rpm rpm -ivh ntfsprogs-2022.10.3-1.el7.x86_64.rpm rpm -ivh psmisc-22.20-17.el7.x86_64.rpm #使用yum在线安装 yum install ntfs-3g 2、查看磁盘 fdisk -l Disk /dev/sdb: 250.0 GB Device Boot Start End Blocks Id System /dev/sdb1 * 1654784 487452671 242898944 7 HPFS/NTFS/exFAT /dev/sdb2 487452672 488370174 458751+ 1b Hidden W95 FAT32 3、挂载 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13242.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13242.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下使用createrepo制作离线yum源</title>
		<link>https://www.osyunwei.com/archives/13225.html</link>
		<comments>https://www.osyunwei.com/archives/13225.html#comments</comments>
		<pubDate>Sat, 28 Jan 2023 01:59:33 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13225</guid>
		<description><![CDATA[1、先要有一台能够联网的服务器，这里我们使用CentOS-7.x系统 2、配置yum文件，设置install安装时自动将rpm包保存到本地 vi /etc/yum.conf cachedir=/var/cache/yum/$basearch/$releasever keepcache=1（0：不下载 ，1：下载至本地 ），需要改成1 :wq! #保存退出 3、设置好之后，我们执行软件包安装 #比如我们需要安装编译nginx的依赖包 yum install make gcc gcc-c++ perl zlib-devel 4、安装完成后，我们去这个路径下，就可以看到该install安装的rpm包都被保存到该目录下。 注意：有3个目录下面的rpm包都需要拷贝 cd /var/cache/yum/x86_64/7/base/packages cd /var/cache/yum/x86_64/7/extras/packages cd /var/cache/yum/x86_64/7/updates/packages 5、拷贝rpm包 #创建本地rpm包存放目录 mkdir -p /data/yum/x86_64/7/base/packages mkdir -p /data/yum/x86_64/7/extras/packages mkdir -p /data/yum/x86_64/7/updates/packages mv /var/cache/yum/x86_64/7/base/packages/* /data/yum/x86_64/7/base/packages mv /var/cache/yum/x86_64/7/extras/packages/* /data/yum/x86_64/7/extras/packages mv /var/cache/yum/x86_64/7/updates/packages/* /data/yum/x86_64/7/updates/packages 6、制作离线源 #安装createrepo yum install createrepo #rpm安装 rpm -ivh [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13225.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13225.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BCLinux For Euler 21.10安装配置图解教程</title>
		<link>https://www.osyunwei.com/archives/13044.html</link>
		<comments>https://www.osyunwei.com/archives/13044.html#comments</comments>
		<pubDate>Mon, 12 Dec 2022 02:07:31 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[国产化OS]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[国产化]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13044</guid>
		<description><![CDATA[BCLinux for Euler是中国移动云基于openEuler社区版本的再发型版本，继承了欧拉社区自主可控、丰富的产业生态、全堆栈技术优化、鲲鹏CPU能力等优势。 openEuler社区： https://www.openeuler.org/ 移动开源镜像站： https://mirrors.cmecloud.cn/ BCLinux for Euler下载地址：https://mirrors.cmecloud.cn/bclinux/oe21.10/ISO/x86_64/release/BCLinux-for-Euler-21.10-dvd-x86_64-221128.iso 一、安装BCLinux For Euler 21.10 成功引导系统后，会出现下面的界面 界面说明： Install BigCloud-Enterprise-Linux-for-Euler 21.10  #安装 Test this media &#38; install BigCloud-Enterprise-Linux-for-Euler 21.10 #测试安装文件并安装 Troubleshooting #修复故障 这里选择第一项，安装BigCloud-Enterprise-Linux-for-Euler 21.10 回车，进入下面的界面 语言选择界面，正式生产服务器建议安装英文版本。 Continue继续 选择-系统SYSTEM-安装位置Installtion Destir，进入磁盘分区界面 Storage Configuration存储配置下选择Custom自定义选项，点左上角的“完成Done”，进入下面的界面 新挂载点使用以下分区方案：标准Standard Partition 点左下角的“+”号 挂载点：swap 期望容量：2048 添加挂载点，如下图所示 Add mount point  #添加挂载点 分区前先规划好 swap #交换分区，一般设置为内存的2倍 / #剩余所有空间 备注：生产服务器建议单独再划分一个/data分区存放数据 继续点左下角的“+”号 挂载点：/ 期望容量：留空 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13044.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13044.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BCLinux 8.2安装配置图解教程</title>
		<link>https://www.osyunwei.com/archives/13017.html</link>
		<comments>https://www.osyunwei.com/archives/13017.html#comments</comments>
		<pubDate>Fri, 09 Dec 2022 05:41:10 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[国产化OS]]></category>
		<category><![CDATA[BC-Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[国产化]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13017</guid>
		<description><![CDATA[2020年12月CentOS项目组宣布CentOS 8将于2021年12月31日结束支持，这意味着从2022年开始，使用CentOS 8的用户，将无法得到来自官方的新硬件支持、bug修复和安全补丁。针对这一情况，移动云大云操作系统团队基于国内开源社区深度定制，推出了企业定制版操作系统BC-Linux V8.2版本。 BC-Linux V8.2是基于龙蜥社区Anolis OS 8.2版本深度定制的X86服务器通用版操作系统，与RHEL 8、CentOS 8软硬件生态100%兼容。 OpenAnolis 社区： https://openanolis.cn/ 移动开源镜像站： https://mirrors.cmecloud.cn/ BCLinux 8.2系统下载：https://mirrors.cmecloud.cn/bclinux/el8.2/isos/x86_64/release/BCLinux-R8-U2-Server-x86_64-221130.iso 一、安装BCLinux 8.2 成功引导系统后，会出现下面的界面 界面说明： Install BigCloud Enterprise Linux 8  #安装 Test this media &#38; install BigCloud Enterprise  Linux 8 #测试安装文件并安装 Troubleshooting #修复故障 这里选择第一项，安装BigCloud Enterprise Linux 8 回车，进入下面的界面 语言选择界面，正式生产服务器建议安装英文版本。 Continue继续 选择-系统SYSTEM-安装位置Installtion Destir，进入磁盘分区界面 Storage Configuration存储配置下选择Custom自定义选项，点左上角的“完成Done”，进入下面的界面 新挂载点使用以下分区方案：标准Standard Partition 点左下角的“+”号 挂载点：swap 期望容量：4096 添加挂载点，如下图所示 Add [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13017.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13017.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下Nginx版本平滑升级与回滚</title>
		<link>https://www.osyunwei.com/archives/12804.html</link>
		<comments>https://www.osyunwei.com/archives/12804.html#comments</comments>
		<pubDate>Wed, 03 Aug 2022 09:45:08 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12804</guid>
		<description><![CDATA[操作系统：CentOS 7.x 准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12804.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12804.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS系统下安装SNMP服务</title>
		<link>https://www.osyunwei.com/archives/12773.html</link>
		<comments>https://www.osyunwei.com/archives/12773.html#comments</comments>
		<pubDate>Wed, 20 Jul 2022 07:51:55 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12773</guid>
		<description><![CDATA[操作系统：CentOS 7.x 8.x 一、防火墙配置 CentOS 7.x 8.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件，开放ftp服务端口 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12773.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12773.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x升级OpenSSL版本</title>
		<link>https://www.osyunwei.com/archives/12747.html</link>
		<comments>https://www.osyunwei.com/archives/12747.html#comments</comments>
		<pubDate>Sun, 10 Jul 2022 09:54:43 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[openssl]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12747</guid>
		<description><![CDATA[操作系统：CentOS 7.x 为什么要升级OpenSSL版本？ CentOS 7.x 默认安装的OpenSSL是1.0.2k（CentOS 7.9） [root@mysql-master ~]# openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 whereis openssl #查找opensll [root@mysql-master ~]# whereis openssl openssl: /usr/bin/openssl /usr/lib64/openssl /usr/share/man/man1/openssl.1ssl.gz 在编译安装php7.4及其以上版本的时候，需要高版本的OpenSSL；还有一些php开源框架例如ThinkPHP等程序需要高版本的OpenSSL；MySQL 8.x版本安装部署也需要高版本的OpenSSL。 1、使用yum源在线升级OpenSSL yum update openssl  #使用默认的yum源升级，发现版本没有变化 yum install -y epel-release  #安装epel源 yum install -y openssl11 openssl11-devel   #安装-1.1版本 [root@mysql-master ~]# whereis openssl11 #查找高版本的openssl openssl11: /usr/bin/openssl11 /usr/lib64/openssl11 /usr/include/openssl11 /usr/share/man/man1/openssl11.1.gz [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12747.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12747.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x根分区磁盘扩容</title>
		<link>https://www.osyunwei.com/archives/12718.html</link>
		<comments>https://www.osyunwei.com/archives/12718.html#comments</comments>
		<pubDate>Thu, 30 Jun 2022 03:46:17 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[磁盘分区]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12718</guid>
		<description><![CDATA[1、适合只有一个根分区/，非LVM分区的磁盘（云服务器/虚拟机） 首先增加磁盘容量 #查看磁盘信息 df -TH fdisk -l lsblk 可以看到磁盘容量已经变了 文件系统还是原来的 先删除分区，最后再创建根分区 fdisk /dev/sda p #查看分区信息 d #删除 n #创建分区 p 1 回车 回车全部分配 w #写入 partprobe #刷新分区 xfs_growfs /dev/sda1 #ext4文件系统扩容使用 resize2fs 扩容 df -TH #查看分区信息，磁盘已经扩容 2、把其他分区/data的容量扩容到根分区/，非LVM分区的磁盘（物理机/云服务器/虚拟机） fdisk /dev/sda p #查看分区信息 d #删除 2 #要删除的分区 w #保存 partprobe #刷新分区 fdisk /dev/sda p #查看分区信息 d #删除根分区 1 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12718.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12718.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS使用系统镜像搭建局域网Yum源</title>
		<link>https://www.osyunwei.com/archives/12567.html</link>
		<comments>https://www.osyunwei.com/archives/12567.html#comments</comments>
		<pubDate>Thu, 16 Jun 2022 09:29:50 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[yum源]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12567</guid>
		<description><![CDATA[一、防火墙配置 CentOS 7.x 8.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件，开放ftp服务端口 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12567.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12567.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下搭建Prometheus+Alertmanager+Grafana监控平台</title>
		<link>https://www.osyunwei.com/archives/12269.html</link>
		<comments>https://www.osyunwei.com/archives/12269.html#comments</comments>
		<pubDate>Wed, 25 May 2022 02:29:49 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Prometheus]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Grafana]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12269</guid>
		<description><![CDATA[组件介绍： 1、Prometheus是由go语言开发的一套开源的系统监控报警框架。 2、Alertmanager是接收Prometheus发送的告警信息，它支持丰富的告警通知渠道，而且很容易做到告警信息进行去重，降噪，分组，策略路由，是一款专业的告警通知系统。 3、Grafana是一个开源的图表可视化工具，图表配置方便，生成的图表很漂亮，并能实现告警，支持五十多种数据源，Prometheus就是其中支持的一种。 4、可以理解为Prometheus是收集数据，Alertmanager是数据告警系统，Grafana是把Prometheus收集来的数据整理并通过图表的方式展示出来。 5、Prometheus也有自己的图表展示模块，但相比Grafana比较简陋，所以一般使用Grafana作为Web UI展示数据。 6、Grafana也有告警功能，但是比较简单，所以一般使用Alertmanager专业告警系统。 操作系统：CentOS 7.x 8.x 服务端IP：192.168.21.182 客户端IP：192.168.21.179 准备工作： 一、所有服务器关闭selinux setenforce 0 #临时关闭 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config #永久关闭 /usr/sbin/sestatus -v #shutdown -r now 重启服务器后查看selinux状态，disabled表示关闭 二、设置防火墙，放行相关端口 #内网集群环境下，如果有硬件防火墙，也可以直接关闭系统防火墙。 Prometheus服务端：tcp 9090 Prometheus客户端：tcp 9100 Alertmanager：tcp 9093 Grafana：tcp 3000 CentOS 7.x 8.x默认是firewall防火墙，可以改为iptables防火墙 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12269.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12269.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS系统双网卡同时访问内外网设置</title>
		<link>https://www.osyunwei.com/archives/12261.html</link>
		<comments>https://www.osyunwei.com/archives/12261.html#comments</comments>
		<pubDate>Tue, 24 May 2022 05:19:34 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12261</guid>
		<description><![CDATA[双网卡电脑不可能同时有两个默认网关，默认网关（default gateway）只能有一个 双网卡双网关冲突的原因是：两张网卡设置两个网关，而且都设置成了默认网关 双网卡服务器需要同时访问内外网，一般只设置一个网关（外网），另一个写静态路由（内网），因为默认网关只能有一个。 解决方法：一张网卡设置成默认网关；另一张网卡写静态路由，数据通过静态路由中写的网关传输。 enp65s0f0配置外网IP：192.168.1.1/27 网关：192.168.1.30 enp1s0f3配置内网IP：192.168.1.33/27 网关：192.168.1.62 需求：192.168.34.32/30网段走内网网卡enp1s0f3，其余网段走外网网卡enp65s0f0。 1、编辑网卡配置文件 enp65s0f0配置文件/etc/sysconfig/network-scripts/ifcfg-enp65s0f0 BOOTPROTO=static NAME=enp65s0f0 ONBOOT=yes IPADDR=192.168.1.1 PREFIX=27 GATEWAY=192.168.1.30 #正常配置网关 enp1s0f3配置文件/etc/sysconfig/network-scripts/ifcfg-enp1s0f3 BOOTPROTO=static NAME=enp1s0f3 ONBOOT=yes IPADDR=192.168.1.33 PREFIX=27 #GATEWAY=192.168.1.62 #注释掉，不配置网关 2、设置永久静态路由 使用nmtui图形化命令，在enp1s0f3下添加路由 nmtui-Edit a connection-enp1s0f3-Routing-&#60;Edit . . .&#62;-&#60;Add. . .&#62; Destination/Prefix目的：192.168.34.32/30 Next Hop下一跳：192.168.1.62 Metric度量值：1000 &#60;OK&#62; #或者直接添加内网网卡enp1s0f3的路由文件 #注意文件名字的格式，route-需要添加路由的网卡名称 vi /etc/sysconfig/network-scripts/route-enp1s0f3 ADDRESS0=192.168.34.32 NETMASK0=255.255.255.252 GATEWAY0=192.168.1.62 METRIC0=1000 :wq! #保存配置 #或者直接添加一行即可 192.168.34.32/30 via 192.168.1.62 dev [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12261.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12261.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
