<?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/category/system/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>Tue, 14 Apr 2026 10:59:22 +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>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>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>
		<item>
		<title>使用U盘安装CentOS系统</title>
		<link>https://www.osyunwei.com/archives/12202.html</link>
		<comments>https://www.osyunwei.com/archives/12202.html#comments</comments>
		<pubDate>Sat, 21 May 2022 10:29:43 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[U盘]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12202</guid>
		<description><![CDATA[现在的服务器基本上都没有光驱了，新的服务器安装操作系统一般使用外接光驱或者使用U盘安装，下面我们制作U盘启动盘来安装CentOS系统。 一、下载系统镜像文件 CentOS 8.x  https://mirrors.163.com/centos-vault/8.5.2111/isos/x86_64/CentOS-8.5.2111-x86_64-dvd1.iso 二、下载U盘系统盘制作工具Rufus 官网：http://rufus.ie/zh/ 下载地址：https://github.com/pbatard/rufus/releases/download/v3.18/rufus-3.18.exe 三、准备1个U盘 建议16GB以上，因为CentOS 8.x 的系统镜像文件已经超过10GB，8GB的U盘容量不够了。 插入U盘，打开Rufus工具，如下图所示： 选择系统镜像文件，分区类型：MBR，其他选项默认，点开始 以ISO镜像模式写入，OK 确定 正在复制 完成之后点关闭 现在U盘系统盘已经制作完成了。 四、服务器设置U盘引导，根据提示安装即可。 如果是重装系统，要保留之前的某一个分区，切勿选择格式化。 /home 是单独挂载的分区，如果要保留里面资料，切勿勾选“重新格式化”的选框。 点击 - 更新设置 /根分区，必须要勾选“重新格式化”，否则无法安装 swap 分区也必须选择“重新格式化”，否则无法安装，点更新设置 接受更改，继续安装即可，安装完成之后，去掉U盘重新启动系统进行测试。 至此，使用U盘安装CentOS系统完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/12202.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » 使用U盘安装CentOS系统<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12202.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12202.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS使用系统镜像文件配置本地Yum源</title>
		<link>https://www.osyunwei.com/archives/12175.html</link>
		<comments>https://www.osyunwei.com/archives/12175.html#comments</comments>
		<pubDate>Wed, 18 May 2022 14:29:36 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12175</guid>
		<description><![CDATA[操作系统：CentOS 8.x  CentOS 7.x 需求：在项目部署中无法连接外网，编译安装软件需要用到yum源安装依赖包。 解决方案：使用系统镜像文件配置本地yum源 一、下载系统镜像文件 CentOS 8.x  https://vault.centos.org/8.5.2111/isos/x86_64/CentOS-8.5.2111-x86_64-dvd1.iso CentOS 7.x  http://ftp.sjtu.edu.cn/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso 二、创建目录 mkdir  -p  /mnt/iso   #创建系统镜像文件存放目录 mkdir  -p  /mnt/cdrom   #创建系统镜像挂载目录 上传下载好的系统镜像文件到/mnt/iso目录下 三、挂载系统镜像文件 #将系统镜像文件挂载到/mnt/cdrom目录 mount -o loop  /mnt/iso/CentOS-8.5.2111-x86_64-dvd1.iso   /mnt/cdrom 提示：mount: /mnt/cdrom: WARNING: device write-protected, mounted read-only. 使用df -h查看，会出现类似下面的挂载目录，说明挂载成功 /dev/loop0      7.8G  7.8G     0 100% /mnt/cdrom 三、配置本地yum源 mv  /etc/yum.repos.d  /etc/yum.repos.d-bak  #备份目录 mkdir   /etc/yum.repos.d #创建新的目录 vi  /etc/yum.repos.d/CentOS-Media.repo  #CentOS 8.x 配置文件 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12175.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12175.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS使用Chrony部署内网NTP时间服务器</title>
		<link>https://www.osyunwei.com/archives/12126.html</link>
		<comments>https://www.osyunwei.com/archives/12126.html#comments</comments>
		<pubDate>Tue, 10 May 2022 10:45:09 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12126</guid>
		<description><![CDATA[NTP服务器Network Time Protocol（NTP）是用来使计算机时间同步化的一种协议，CentOS 8.x默认不支持NTP，替换为Chrony作为时间同步服务，Chrony既可以当服务器端广播时间，又可以作为客户端同步时间。 系统安装 1、CentOS 7.x系统安装配置图解教程 http://www.osyunwei.com/archives/10003.html 2、CentOS 8.x系统安装配置图解教程 https://www.osyunwei.com/archives/11499.html 准备篇 一、防火墙配置 CentOS 7.x 8.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 Chrony服务器端需要用到udp 123和323端口，因此服务器端防火墙需要打开此端口，客户端则不需要。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 软件包下载地址： CentOS 8.x   https://vault.centos.org/8.2.2004/BaseOS/x86_64/os/Packages/iptables-services-1.8.4-10.el8.x86_64.rpm CentOS 7.x   https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/iptables-services-1.4.21-35.el7.x86_64.rpm 上传到目录：/usr/local/src cd  /usr/local/src 安装 iptables-services： CentOS 8.x  rpm -ivh  iptables-services-1.8.4-10.el8.x86_64.rpm CentOS 7.x  rpm -ivh  iptables-services-1.4.21-35.el7.x86_64.rpm vi [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12126.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12126.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS使用rpm包升级系统内核</title>
		<link>https://www.osyunwei.com/archives/12038.html</link>
		<comments>https://www.osyunwei.com/archives/12038.html#comments</comments>
		<pubDate>Fri, 03 Dec 2021 12:55:42 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12038</guid>
		<description><![CDATA[说明： 系统版本：CentOS 7.x CentOS 7.x默认内核版本是Linux 3.10，我们需要部署K8s等项目需要高版本的内核。 Linux Kernel官方网站：https://www.kernel.org/ ELRepo源网站：http://elrepo.org/ RPM包下载地址： https://elrepo.org/linux/kernel/el7/x86_64/RPMS/ 选择lt版本（长期支持） kernel-lt-5.4.163-1.el7.elrepo.x86_64.rpm kernel-lt-devel-5.4.163-1.el7.elrepo.x86_64.rpm yum install wget -y cd /usr/local/src wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-lt-5.4.163-1.el7.elrepo.x86_64.rpm wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-lt-devel-5.4.163-1.el7.elrepo.x86_64.rpm yum install kernel-lt-5.4.163-1.el7.elrepo.x86_64.rpm -y yum install kernel-lt-devel-5.4.163-1.el7.elrepo.x86_64.rpm -y #注意：kernel-lt是内核包，kernel-lt-devel是与内核相匹配的内核开发环境，都需要升级，必须保证内核开发环境和内核版本一致。 三、设置系统默认内核 #查看系统上的所有可用内核 [root@localhost src]# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg 0 : CentOS Linux (5.4.163-1.el7.elrepo.x86_64) 7 (Core) [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12038.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12038.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
