<?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://zqmadcat.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://zqmadcat.com</link>
	<description>开博了，欢迎前来围观的群众</description>
	<lastBuildDate>Thu, 03 Nov 2011 15:33:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>重拾Linux 第三章 修改Linux的IP地址</title>
		<link>http://zqmadcat.com/2010/03/restore-the-linux-chapter-modify-the-ip-address-of-linux/</link>
		<comments>http://zqmadcat.com/2010/03/restore-the-linux-chapter-modify-the-ip-address-of-linux/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 07:26:52 +0000</pubDate>
		<dc:creator>zqmadcat</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://zqmadcat.com/2010/03/%e9%87%8d%e6%8b%belinux-%e7%ac%ac%e4%b8%89%e7%ab%a0-%e4%bf%ae%e6%94%b9linux%e7%9a%84ip%e5%9c%b0%e5%9d%80/</guid>
		<description><![CDATA[在虚拟机里面的Linux建起来了，而且也能够正常上网了，但本地机却无法访问虚拟机的系统。原来，我的虚拟机使用了Nat的方式进行联网。关闭Linux，修改虚拟机的配置。 如图，将NAT修改为Bridged Adapter，这时，虚拟操作系统的网段就与本地机一致了。 然后启动Linux，可以使用 ifconfig 命令查看当前的IP地址。 使用 ifconfig 命令时，因为我现在使用的普通权限的账号登录，所以系统提示： bash: ifconfig : command not found 使用 su 命令时都无法使用这个命令。在网上google了一下，在 lcfhao007 的博客里看到如下解释： 原来使用su虽然切换到了root，但是环境变量并没有一起跟着变过来，如果使用su -，环境变量也会一起跟着变过来。 超级用户使用的命令大多是在 /sbin里面，一般用户使用的命令一般是在/bin里面，而/bin里面是没有ifconfig命令的，所以command not found 原来需要使用 “su -”这个命令。照着操作就可以了。 接着，在系统的 /var/www/html 目录下新建一个 index.html 文件，随便写一点内容，用 service httpd start 命令启动 httpd 服务，然后在本地机的浏览器输入Linux的IP地址，能够看到新建的那个网页的内容，说明 httpd 服务正常了。 然后，我需要安装 mysql 、php 两种个功能。 同样在 root 用户权限下，输入以下两条命令： yum install –y mysql yum install [...]]]></description>
			<content:encoded><![CDATA[<p align="center">在虚拟机里面的Linux建起来了，而且也能够正常上网了，但本地机却无法访问虚拟机的系统。原来，我的虚拟机使用了Nat的方式进行联网。关闭Linux，修改虚拟机的配置。<a href="http://www.flickr.com/photos/79368281@N00/4403527740/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0026" border="0" alt="snap0026" src="http://zqmadcat.com/wp-content/uploads/LinuxLinuxIP_D90C/snap0026.jpg" width="409" height="340" /></a></p>
<p align="left">如图，将NAT修改为Bridged Adapter，这时，虚拟操作系统的网段就与本地机一致了。</p>
<p align="left">然后启动Linux，可以使用 ifconfig 命令查看当前的IP地址。</p>
<p align="left">使用 ifconfig 命令时，因为我现在使用的普通权限的账号登录，所以系统提示：</p>
<blockquote><p align="left">bash: ifconfig : command not found</p>
</blockquote>
<p align="left"><font style="background-color: #f9f9f9">使用 su 命令时都无法使用这个命令。在网上google了一下，在 <a href="http://lcfhao007.blog.hexun.com/31598413_d.html" target="_blank">lcfhao007</a> 的博客里看到如下解释：</font></p>
<blockquote><p align="left"><font color="#ff0000">原来使用su虽然切换到了root，但是环境变量并没有一起跟着变过来，如果使用su -，环境变量也会一起跟着变过来。</font></p>
<p align="left">超级用户使用的命令大多是在 /sbin里面，一般用户使用的命令一般是在/bin里面，而/bin里面是没有ifconfig命令的，所以command not found</p>
</blockquote>
<p align="left"><font style="background-color: #f9f9f9">原来需要使用 “su -”这个命令。照着操作就可以了。</font></p>
<p align="left"><font style="background-color: #f9f9f9">接着，在系统的 /var/www/html 目录下新建一个 index.html 文件，随便写一点内容，用</font></p>
<blockquote><p align="left">service httpd start</p>
</blockquote>
<p align="left"><font style="background-color: #f9f9f9">命令启动 httpd 服务，然后在本地机的浏览器输入Linux的IP地址，能够看到新建的那个网页的内容，说明 httpd 服务正常了。</font></p>
<p align="left"><font style="background-color: #f9f9f9">然后，我需要安装 mysql 、php 两种个功能。</font></p>
<p align="left"><font style="background-color: #f9f9f9">同样在 root 用户权限下，输入以下两条命令：</font></p>
<blockquote><p align="left">yum install –y mysql</p>
<p align="left">yum install –y php</p>
</blockquote>
<p align="left"><font style="background-color: #f9f9f9">安装好这两个功能模块，现在我的网站服务器就基本建成了。</font></p>
]]></content:encoded>
			<wfw:commentRss>http://zqmadcat.com/2010/03/restore-the-linux-chapter-modify-the-ip-address-of-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重拾Linux 第二章 基本配置</title>
		<link>http://zqmadcat.com/2010/02/restore-the-basic-configuration-linux-chapter-ii/</link>
		<comments>http://zqmadcat.com/2010/02/restore-the-basic-configuration-linux-chapter-ii/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 10:23:56 +0000</pubDate>
		<dc:creator>zqmadcat</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://zqmadcat.com/2010/02/%e9%87%8d%e6%8b%belinux-%e7%ac%ac%e4%ba%8c%e7%ab%a0-%e5%9f%ba%e6%9c%ac%e9%85%8d%e7%bd%ae/</guid>
		<description><![CDATA[重启后，Linux就进入了配置阶段。只要通过配置向导进行简单的设置，Linux就可以运行了。 配置第1步：防火墙 一般情况下都需要启动防火墙，毕竟Linux更多时候是作为服务器来运行。这时需要用防火墙来保障服务器的安全。关于防火墙，我还是在以后的时间再单独进行配置，现在先禁用。 配置第２步：SELinux 这玩意是什么？我还不清楚。默认吧。 配置第３步：日期和时间 这一步，我不知道为什么时间与我真实系统时间相差这么大。下面这张截图时，我系统真实时间是2010年2月27日，18:05。 不过时间偏差一点没关系，在“网络时间协议”选项卡中，启用网络时间自动对时，然后再进行下一步之前，系统就会自动与远程服务器自动校对时间。 配置第4步：创建用户 在这步之前，还有一个需要输入密码的地方，那时，建立的是根用户的密码，根用户相当于整个系统的超级管理员。一般情况下很少用超级管理员账号直接登录系统进行操作，因为有可能由误操作导致系统崩溃。通过作法是用一个权限较少的用户登录系统操作，当明确权限不够时，再用su或sudo命令调用根用户权限操作。在此，我还是老老实实创建一个普通用户算了。 配置第5步：声卡 最后1步不用管，直接“下一步”，然后完成。 现在我的CentOS系统就管安装完成了，而且自动进入了图形界面。 &#160; &#160; #############&#160; 分割线&#160; ############ 使用Windows Live Writer来写Blog，简直就是一种享受。再用上Flickr Upload插件，写博客时的图片全部都上传到我的Flickr相册中去，不用占太多的博客空间与流量。赞一个！]]></description>
			<content:encoded><![CDATA[<p>重启后，Linux就进入了配置阶段。只要通过配置向导进行简单的设置，Linux就可以运行了。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391977890/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0015" border="0" alt="snap0015" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0015.jpg" width="406" height="340" /></a></p>
<p align="left">配置第1步：防火墙</p>
<p align="left">一般情况下都需要启动防火墙，毕竟Linux更多时候是作为服务器来运行。这时需要用防火墙来保障服务器的安全。关于防火墙，我还是在以后的时间再单独进行配置，现在先禁用。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391214159/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0016" border="0" alt="snap0016" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0016.jpg" width="406" height="340" /></a></p>
<p align="left">配置第２步：SELinux</p>
<p align="left">这玩意是什么？我还不清楚。默认吧。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391217957/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0018" border="0" alt="snap0018" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0018.jpg" width="406" height="340" /></a></p>
<p>配置第３步：日期和时间</p>
<p>这一步，我不知道为什么时间与我真实系统时间相差这么大。下面这张截图时，我系统真实时间是2010年2月27日，18:05。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391221607/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0019" border="0" alt="snap0019" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0019.jpg" width="406" height="340" /></a></p>
</p>
</p>
<p>不过时间偏差一点没关系，在“网络时间协议”选项卡中，启用网络时间自动对时，然后再进行下一步之前，系统就会自动与远程服务器自动校对时间。</p>
<p>配置第4步：创建用户</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391227375/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0021" border="0" alt="snap0021" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0021.jpg" width="406" height="340" /></a></p>
<p>在这步之前，还有一个需要输入密码的地方，那时，建立的是根用户的密码，根用户相当于整个系统的超级管理员。一般情况下很少用超级管理员账号直接登录系统进行操作，因为有可能由误操作导致系统崩溃。通过作法是用一个权限较少的用户登录系统操作，当明确权限不够时，再用su或sudo命令调用根用户权限操作。在此，我还是老老实实创建一个普通用户算了。</p>
<p>配置第5步：声卡</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4392002322/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0022" border="0" alt="snap0022" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0022.jpg" width="406" height="340" /></a></p>
<p>最后1步不用管，直接“下一步”，然后完成。</p>
<p>现在我的CentOS系统就管安装完成了，而且自动进入了图形界面。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391236947/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0024" border="0" alt="snap0024" src="http://zqmadcat.com/wp-content/uploads/Linux_F8CA/snap0024.jpg" width="406" height="340" /></a></p>
<p>&#160;</p>
<p>&#160;</p>
<p><font color="#ff0000">#############&#160; 分割线&#160; ############</font></p>
<p>使用Windows Live Writer来写Blog，简直就是一种享受。再用上Flickr Upload插件，写博客时的图片全部都上传到我的Flickr相册中去，不用占太多的博客空间与流量。赞一个！</p>
]]></content:encoded>
			<wfw:commentRss>http://zqmadcat.com/2010/02/restore-the-basic-configuration-linux-chapter-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重拾Linux 第一章 安装</title>
		<link>http://zqmadcat.com/2010/02/restore-the-first-day-of-installation-of-linux/</link>
		<comments>http://zqmadcat.com/2010/02/restore-the-first-day-of-installation-of-linux/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 08:53:08 +0000</pubDate>
		<dc:creator>zqmadcat</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://zqmadcat.com/2010/02/%e9%87%8d%e6%8b%belinux-%e7%ac%ac%e4%b8%80%e5%a4%a9-%e5%ae%89%e8%a3%85/</guid>
		<description><![CDATA[前言：决定好好重新学习Linux，虽然现在我的工作已经与纯技术越离越远，但内心还是有着对技术的向往。 重新下载了最新版的CentOS 5.4，这次我的学习过程，将用我的博客全程记录。免得学过就忘…… 废话少说，下面就进入正题：安装Linux，为了一边安装，一边写Blog，我当然使用虚拟机进行，虚拟机我选择 VirtualBox 。个人感觉这个虚拟机与 vmware 相比，对机子性能的影响要小一点。 要安装，当然需要一台“电脑”，因此，要先在虚拟机中新建一台电脑。我这里配置如下： 将光驱指向下载回来的CentOS安装光盘，就可以启动这台电脑了。 猛击回车键，先进入的是安装介质校验的功能，如果你对安装光盘有信心，当然可以跳过这一步。 先选择安装语言，这里指安装过程使用的语言，我当然选择中文了。 接着是键盘的选择，默认就行。再下来就是硬盘分区了，这一步比较关键。但我现在只需要一个基本的Linux系统，还是默认吧。 一路默认下来，输入根用户的密码。 继续一路下一步，系统就开始漫长的安装过程了。 这里要说明一下，我现在使用的是默认安装，有很多有用无用的安装包都没有进行定制。这没有关系，在系统安装结束后，我们有很多时间来根据需要定制这个系统。 配了好多张图，这篇文章就显得“长”了一点，反正安装过程将在等待中结束，我就另起一章进行下面的内容吧。]]></description>
			<content:encoded><![CDATA[<p><font size="5">前言：</font>决定好好重新学习Linux，虽然现在我的工作已经与纯技术越离越远，但内心还是有着对技术的向往。</p>
<p>重新下载了最新版的CentOS 5.4，这次我的学习过程，将用我的博客全程记录。免得学过就忘……</p>
<p>废话少说，下面就进入正题：安装Linux，为了一边安装，一边写Blog，我当然使用虚拟机进行，虚拟机我选择 VirtualBox 。个人感觉这个虚拟机与 vmware 相比，对机子性能的影响要小一点。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391105153/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0006" border="0" alt="snap0006" src="http://zqmadcat.com/wp-content/uploads/Linux_ED5E/snap0006.jpg" width="428" height="340" /></a></p>
<p>要安装，当然需要一台“电脑”，因此，要先在虚拟机中新建一台电脑。我这里配置如下：</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391111713/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="虚拟机硬件分配" border="0" alt="虚拟机硬件分配" src="http://zqmadcat.com/wp-content/uploads/Linux_ED5E/snap0007.jpg" width="448" height="337" /></a></p>
<p>将光驱指向下载回来的CentOS安装光盘，就可以启动这台电脑了。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391119945/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0009" border="0" alt="snap0009" src="http://zqmadcat.com/wp-content/uploads/Linux_ED5E/snap0009.jpg" width="396" height="340" /></a></p>
<p>猛击回车键，先进入的是安装介质校验的功能，如果你对安装光盘有信心，当然可以跳过这一步。</p>
<p>先选择安装语言，这里指安装过程使用的语言，我当然选择中文了。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391126501/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0011" border="0" alt="snap0011" src="http://zqmadcat.com/wp-content/uploads/Linux_ED5E/snap0011.jpg" width="406" height="340" /></a></p>
<p>接着是键盘的选择，默认就行。再下来就是硬盘分区了，这一步比较关键。但我现在只需要一个基本的Linux系统，还是默认吧。</p>
<p>一路默认下来，输入根用户的密码。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391900602/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0013" border="0" alt="snap0013" src="http://zqmadcat.com/wp-content/uploads/Linux_ED5E/snap0013.jpg" width="406" height="340" /></a></p>
<p>继续一路下一步，系统就开始漫长的安装过程了。</p>
<p align="center"><a href="http://www.flickr.com/photos/79368281@N00/4391134843/"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snap0014" border="0" alt="snap0014" src="http://zqmadcat.com/wp-content/uploads/Linux_ED5E/snap0014.jpg" width="406" height="340" /></a></p>
<blockquote><p>这里要说明一下，我现在使用的是默认安装，有很多有用无用的安装包都没有进行定制。这没有关系，在系统安装结束后，我们有很多时间来根据需要定制这个系统。</p>
</blockquote>
<p><font style="background-color: #f9f9f9">配了好多张图，这篇文章就显得“长”了一点，反正安装过程将在等待中结束，我就另起一章进行下面的内容吧。</font></p>
]]></content:encoded>
			<wfw:commentRss>http://zqmadcat.com/2010/02/restore-the-first-day-of-installation-of-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

