<?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-%E4%BF%AE%E6%94%B9%E4%B8%BB%E6%9C%BA%E5%90%8D/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 linux修改主机名</title>
		<link>https://www.osyunwei.com/archives/1133.html</link>
		<comments>https://www.osyunwei.com/archives/1133.html#comments</comments>
		<pubDate>Fri, 25 Nov 2011 01:59:08 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 修改主机名]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=1133</guid>
		<description><![CDATA[下面我们把CentOS系统的主机名字修改为myhost 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 第一步： hostname myhost 第二步： 修改/etc/sysconfig/network中的hostname vi /etc/sysconfig/network HOSTNAME=myhost  #修改localhost.localdomain为myhost 第三步： 修改/etc/hosts文件 vi /etc/hosts 127.0.0.1  myhost localhost  #修改localhost.localdomain为myhost shutdown -r now    #最后，重启服务器即可。 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/1133.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » CentOS linux修改主机名<p><a rel="bookmark" href="https://www.osyunwei.com/archives/1133.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/1133.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
