<?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; 初始化</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%e5%88%9d%e5%a7%8b%e5%8c%96/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>Sun, 10 May 2026 14:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS服务器初始化设置</title>
		<link>https://www.osyunwei.com/archives/9034.html</link>
		<comments>https://www.osyunwei.com/archives/9034.html#comments</comments>
		<pubDate>Fri, 22 May 2015 02:59:07 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[安全优化]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[初始化]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9034</guid>
		<description><![CDATA[以阿里云服务器为例 一、挂载硬盘 1、磁盘分区 fdisk -l #查看设备，一般可以看到设备名为/dev/xvdb，或者为/dev/vdb（阿里云io优化型） fdisk /dev/xvdb #对磁盘进行分区，或者fdisk /dev/vdb 输入n #创建新分区 输入p #创建主分区 输入1 #创建第一个主分区，默认回车 输入w #保存并执行以上命令，创建分区 待上面的命令执行完成之后，使用fdisk -l查看，会看到类似 /dev/xvdb1的分区 或者为 /dev/vdb1的分区（下面的步骤类似，注意xvdb1和vdb1的区分） 说明分区成功。 2、磁盘格式化 mkfs.ext4 /dev/xvdb1 #对分区进行格式化 说明：ext4是CentOS6.x默认的分区格式，CentOS5.x请使用ext3 mkfs.xfs  /dev/vdb1或者mkfs -t xfs  /dev/vdb1 #CentOS 7.x 8.x默认使用xfs分区 待格式化完成之后（根据分区大小，格式化需要的时间不同，请耐心等待），对分区进行挂载 3、挂载磁盘 例如：要把/dev/xvdb1挂载到/data目录 mkdir -p /data #创建目录 mount /dev/xvdb1 /data #挂载 mount -t  ext4  /dev/xvdb1  /data  #挂载 mount [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9034.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9034.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
