<?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>Way</title>
	<atom:link href="http://z132.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://z132.com</link>
	<description>不徘徊，不放弃——on the road</description>
	<lastBuildDate>Tue, 14 Feb 2012 14:16:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Ubuntu下Apache虚拟主机配置</title>
		<link>http://z132.com/the-virtrual-host-of-apache-in-linux/</link>
		<comments>http://z132.com/the-virtrual-host-of-apache-in-linux/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 14:16:22 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://z132.com/?p=563</guid>
		<description><![CDATA[当想在单台机器上设置多个域名或主机名时，我们就要用到基于名称的虚拟主机了。在用apt默认安装的系统下，在 Ubuntu 的 /etc/apache2/ 目录中有个 Apache2 的主配置文件 apache2.conf。在该文件中我们可以看到有这么一行内容： Include /etc/apache2/sites-enabled/[^.#]* 这行的意思表明该文件包含了 /etc/apache2/sites-enabled/ 目录中文件名不含 “.” 或 “#” 这两个字符的所有文件。而在这个目录下，只有一个 000-default 的软链接文件，实际连接的是 /etc/apache2/sites-available 目录中的 default 文件，这实际上是一个通用配置文件。我们可以模仿这个来新建一个我们自己的虚拟主机配置文件。 以创建本机下的test.com主机为例： 在/etc/apache2/sites-available/下创建一个文件test.com，文件的内容如下： &#60;VirtualHost *:80&#62; ServerAdmin ******@****** DocumentRoot /home/wwwroot/test ServerName test.com &#60;Directory /&#62; Options FollowSymLinks AllowOverride All &#60;/Directory&#62; &#60;Directory /home/wwwroot/test&#62; Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all &#60;/Directory&#62; ScriptAlias [...]]]></description>
		<wfw:commentRss>http://z132.com/the-virtrual-host-of-apache-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>合并数组中+与array_merge的区别</title>
		<link>http://z132.com/difference-between-and-array_merge-on-array-merger/</link>
		<comments>http://z132.com/difference-between-and-array_merge-on-array-merger/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 13:12:46 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://z132.com/?p=556</guid>
		<description><![CDATA[【array_merge】 如果数组中有相同的字符串键，后面的值会覆盖前一个值。 但如果键是数字或由引号包裹的字符串，就不会覆盖前面的值，所有的数字索引部分（无论键是否相同），键以连续方式重新索引。 【+】 如遇到重复键（数字和字符串），【仅】保留前面的键值，并重新索引剩下非重复的数字索引部分。 简而言之，array_merge() 结合数组，后面的字符串键覆盖前面的；用 + 链接数组，前面的数字键覆盖后面的。 其中二者的数字键均包含，1,’1′这两种情况 &#160; $first = array('apple', 'boy'); $second = array('cat', 'dog'); $result = array_merge($first, $second); echo '&#60;pre&#62;'; var_dump($result); echo '&#60;/pre&#62;'; //结果是： array(4) { [0]=&#62; string(5) "apple" [1]=&#62; string(3) "boy" [2]=&#62; string(3) "cat" [3]=&#62; string(3) "dog" } $first = array('apple', 'boy'); $second = array('cat', 'dog'); $result = $first [...]]]></description>
		<wfw:commentRss>http://z132.com/difference-between-and-array_merge-on-array-merger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cent OS添加用户到sudoer列表中</title>
		<link>http://z132.com/grant-sudo-permissions-for-user-in-centos/</link>
		<comments>http://z132.com/grant-sudo-permissions-for-user-in-centos/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 13:03:11 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://z132.com/?p=552</guid>
		<description><![CDATA[Linux默认是没有将用户添加到sudoers列表中的，需要root手动将账户添加到sudoers列表中，才能让普通账户执行sudo命令。 root账户键入visudo即可进入sudo配置，这个命令要比vim /etc/sudoers要好很多，因为使用visudo进行sudo配置，将会得到很多提示. 键入visudo后，在编辑器下键入 /root 寻找root，找到第三个root的那一行 root    ALL=(ALL)       ALL 按yyp键复制并在粘贴在下一行，在这一行的root处输入cw将root替换为你所需要添加用户的账户名，比如Blinux，结果就是 root    ALL=(ALL)       ALL blinux  ALL=(ALL)       ALL 如果你希望之后执行sudo命令时不需要输入密码，那么可以形如 root    ALL=(ALL)       ALL blinux  ALL=(ALL)       NOPASSWD:ALL 输入:wq保存即可。 之后执行sudo命令时直接在命令前端键入sudo 空格即可，比如sudo shutdown -h now执行立即关机命令. 如果需要输入口令，则输入用户密码即可，而不是root密码. 注：如果用户不在sudoers列表中，将会得到以下提示. Blinux is not in the sudoers file.  This incident will be reported. 热门日志新浪轻博客邀请码google+邀请lightinthebox模板安装——zen-cartphp采集转一个免费的高效批量扫米工具在一个空间建立多个不同wordpress博客关于一些支持外链的免费图床WP-RecentComments插件不能显示最新评论的解决办法WordPress上传rar附件]]></description>
		<wfw:commentRss>http://z132.com/grant-sudo-permissions-for-user-in-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS卸载Apache Mysql 和php</title>
		<link>http://z132.com/remove-apache-mysql-and-php-in-centos/</link>
		<comments>http://z132.com/remove-apache-mysql-and-php-in-centos/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 14:40:13 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://z132.com/?p=549</guid>
		<description><![CDATA[目前新版的Centos系统会集成Apache的服务，或者平时我们直接用rpm的方式进行安装，而我们在安装有些功能的时候，需要一个完全纯净的系统，这样就需要卸载apache的httpd。 首先我们要知道我们安装了哪些组件，通过命令 rpm -qa&#124;grep httpd rpm -qa&#124;grep mysql rpm -qa&#124;grep php 分别可以查看本机安装的apache、mysql和php服务。如果返回为空，则说明本机没有安装该服务。 比如输入第一个命令，返回为： [root@localhost ~]# rpm -qa&#124;grep httpd httpd-2.2.3-43.el5.centos 说明本机已经有了httpd组件。如果我们要卸载它，我们输入以下的命令： rpm -e httpd-2.2.3-43.el5.centos rpm –e 是卸载rpm包的命令，后面是名称，最后的版本号可以不用打。如果我们需要卸载多个应用，只要输入多次即可。 如果实在卸载不掉的话，可以加—nodeps这个参数来卸载，比如我们卸载httpd-2.2.3-43.el5.cento，实在卸不掉了： rpm -e httpd-2.2.3-43.el5.centos &#8211;nodeps 就可以用以上的命令卸载，看清后面是两个-哦！ 热门日志新浪轻博客邀请码google+邀请lightinthebox模板安装——zen-cartphp采集转一个免费的高效批量扫米工具在一个空间建立多个不同wordpress博客关于一些支持外链的免费图床WP-RecentComments插件不能显示最新评论的解决办法WordPress上传rar附件]]></description>
		<wfw:commentRss>http://z132.com/remove-apache-mysql-and-php-in-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux下查看及修改文件读写权限</title>
		<link>http://z132.com/see-and-change-permissions-in-linux/</link>
		<comments>http://z132.com/see-and-change-permissions-in-linux/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 14:42:43 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://z132.com/?p=544</guid>
		<description><![CDATA[查看文件权限的语句： 在终端输入: ls -l xxx.xxx （xxx.xxx是文件名） 那么就会出现相类似的信息，主要都是这些： -rw-rw-r&#8211; 一共有10位数 其中： 最前面那个 &#8211; 代表的是类型 中间那三个 rw- 代表的是所有者（user） 然后那三个 rw- 代表的是组群（group） 最后那三个 r&#8211; 代表的是其他人（other） 然后我再解释一下后面那9位数： r 表示文件可以被读（read） w 表示文件可以被写（write） x 表示文件可以被执行（如果它是程序的话） - 表示相应的权限还没有被授予 现在该说说修改文件权限了 在终端输入： chmod o+w xxx.xxx 表示给其他人授予写xxx.xxx这个文件的权限 chmod go-rw xxx.xxx 表示删除xxx.xxx中组群和其他人的读和写的权限 其中： u 代表所有者（user） g 代表所有者所在的组群（group） o 代表其他人，但不是u和g （other） a 代表全部的人，也就是包括u，g和o r 表示文件可以被读（read） w 表示文件可以被写（write） [...]]]></description>
		<wfw:commentRss>http://z132.com/see-and-change-permissions-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>htaccess文件不起作用的排查过程</title>
		<link>http://z132.com/solve-htaccess-can-not-use/</link>
		<comments>http://z132.com/solve-htaccess-can-not-use/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 11:15:13 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://z132.com/?p=538</guid>
		<description><![CDATA[apache下的地址重写是靠mod_rewrite模块来发挥作用的，在编译添加该模块的时候需要用到apxs这个命令，当用rpm直接安装的时候会提示该命令不存在，这时只要用yum安装httpd-devel即可，安装完之后要把重写模块加载进来。 当我做完以上步骤之后，发现地址重写之后404，查看目录下的文件，发现.htaccess文件确实存在，那么可以说apache的配置中还有需要改动的地方 首先，检查一下AccessFileName的设定是否为.htaccess，如果不是的话则用vim编辑一下，再看是否能地址重写，我执行到这个的时候发现还是404页面。 继续，把配置文件中的含有“AllowOverride None”都改成“AllowOverride All”，我在改的过程中发现有几个地方是“AllowOverride None”，我一个个改的时候试下，发现，没改完的情况下还是404页面，当改完所有的“AllowOverride None”为“AllowOverride All”之后，发现地址重写生效了，这个是我在本地linux排查.htaccess文件不起作用的整个过程。linux下的apache的配置看来还有好多东西我需要学习的，这个记录了，以备下次用到。 热门日志新浪轻博客邀请码google+邀请lightinthebox模板安装——zen-cartphp采集转一个免费的高效批量扫米工具在一个空间建立多个不同wordpress博客关于一些支持外链的免费图床WP-RecentComments插件不能显示最新评论的解决办法WordPress上传rar附件]]></description>
		<wfw:commentRss>http://z132.com/solve-htaccess-can-not-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新浪新版微博邀请码</title>
		<link>http://z132.com/invitecode-of-sina-weibo/</link>
		<comments>http://z132.com/invitecode-of-sina-weibo/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 12:55:37 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[杂七杂八]]></category>
		<category><![CDATA[微薄]]></category>
		<category><![CDATA[邀请码]]></category>

		<guid isPermaLink="false">http://z132.com/?p=533</guid>
		<description><![CDATA[最近新浪微博升级了，我这边还有4个邀请码，谁要的，拿走，先到先得。 新版微博界面显示内容更多，当然，不一定所有人都喜欢新版微博，也可以升级后退回到原先的模板，具体怎么操作可看升级时的演示，如有不明白的可留言回复我。 http://weibo.com/upcode/dghIGj971 a http://weibo.com/upcode/dghIGsyKa http://weibo.com/upcode/dghIGMapS http://weibo.com/upcode/dghIGSlOx 拿走的留个话拿走了哪个，方便别人知道哪个不能用了，谢谢~~ &#160; 上面四个已经都被用了，有需要的请留言，我那边还有10个邀请连接，一位朋友也在评论中给了10个邀请，有需要的拿走吧。 再分享5个，需要的拿走： http://weibo.com/upcode/dgxvo2hwj http://weibo.com/upcode/dgxvoW69k http://weibo.com/upcode/dgxvoMI0X http://weibo.com/upcode/dgxvoEOUr http://weibo.com/upcode/dgxvoxVpJ 又增加2个邀请码，有需要的拿去： http://weibo.com/upcode/dgxvoc1Hq http://weibo.com/upcode/dgxvonpsR &#160; 2011-09-20再更新10个邀请，需要的拿走： http://weibo.com/upcode/dgIK6Q5RK  http://weibo.com/upcode/dgIKZbc9a http://weibo.com/upcode/dgIKVU80W http://weibo.com/upcode/dgIKJNxHz http://weibo.com/upcode/dgIKtwnNZ http://weibo.com/upcode/dgIKsGLFQ http://weibo.com/upcode/dgIKhcGjW http://weibo.com/upcode/dgIKei528 http://weibo.com/upcode/dgIKcMszz http://weibo.com/upcode/dgIKbJ1Jv &#160; &#160; 热门日志新浪轻博客邀请码google+邀请lightinthebox模板安装——zen-cartphp采集转一个免费的高效批量扫米工具在一个空间建立多个不同wordpress博客关于一些支持外链的免费图床WP-RecentComments插件不能显示最新评论的解决办法WordPress上传rar附件]]></description>
		<wfw:commentRss>http://z132.com/invitecode-of-sina-weibo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CentOS 6下命令行查看apache是否安装、路径、版本</title>
		<link>http://z132.com/see-apache-info-and-so-on-in-centos-6/</link>
		<comments>http://z132.com/see-apache-info-and-so-on-in-centos-6/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 15:08:32 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://z132.com/?p=530</guid>
		<description><![CDATA[用的是CentOS 6操作系统，今天刚好要添加下mod-rerwite模块，由于是用rpm安装的，不知道apache的安装路径，在用命令查看apach进程以后，发现位于/usr/sbin/httpd，这个其实就是我机器上的apache路径，但是在网上又找到了一种方法，老是试不成功，最后我发现我电脑上的那个命令要小写，而网上的都是大写的，还是列出这种办法在我电脑上的实现过程吧。 如果你是问linux自动安装的Apache的话，直接使用apachectl-v命令，如果告诉你没有这个方法就可以知道系统没有安装Apache，如果已经安装了则显示Apache的版本，至于安装目录，使用apachectl -c就可以知道了。 使用Apachectl的前提条件也得你知道Apache源码安装的全路径啊，一般是 /usr/local/Apache2/bin/apachectl（我电脑上的路径是/usr/sbin/apachectl）。如通是通过rpm包安装的话直接rpm -q httpd 就能看有没有安装了 好吧，又知道了一个命令了，记录之，继续加载我的重写模块。 热门日志新浪轻博客邀请码google+邀请lightinthebox模板安装——zen-cartphp采集转一个免费的高效批量扫米工具在一个空间建立多个不同wordpress博客关于一些支持外链的免费图床WP-RecentComments插件不能显示最新评论的解决办法WordPress上传rar附件]]></description>
		<wfw:commentRss>http://z132.com/see-apache-info-and-so-on-in-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache下403 Forbidden错误的解决办法</title>
		<link>http://z132.com/403-forbidden-in-apache/</link>
		<comments>http://z132.com/403-forbidden-in-apache/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 13:51:01 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://z132.com/?p=527</guid>
		<description><![CDATA[今天在自己电脑上测试一个网站，发现页面打开后出现了403 Forbidden错误，即HTTP 错误 403 - 禁止访问，即 403 Forbidden：You don&#8217;t have permission to access / on this server.，我是在本地测试的，权限方面没有什么大的问题，打开apache的配置文件httpd.conf，逐行检查。在大约快一半的地方有以下这段代码： &#60;Directory /&#62; Options FollowSymLinks AllowOverride None Order deny,allow Deny from all &#60;/Directory&#62; 由于配置了php后，这里的“Deny from all”已经拒绝了一切连接。把该行改成“allow from all”，修改后的代码如下，问题解决。 &#60;Directory /&#62; Options FollowSymLinks AllowOverride None Order deny,allow allow from all &#60;/Directory&#62; 再次在浏览器里打开测试的网站地址，显示正常！    总结：如果你也发生了这样的403禁止访问，不妨注意下apache的httpd.conf配置文件里有“Deny from all”这行的代码处，看看是不是哪里被系统悄悄地修改了。 另外还有一个没解决的是我本地的其他网站都是正常的，就那个不正常，这个目前还不是很明白，linux下的apache的配置正在熟悉中，后面应该就会明白这次的具体原因了～～ 热门日志新浪轻博客邀请码google+邀请lightinthebox模板安装——zen-cartphp采集转一个免费的高效批量扫米工具在一个空间建立多个不同wordpress博客关于一些支持外链的免费图床WP-RecentComments插件不能显示最新评论的解决办法WordPress上传rar附件]]></description>
		<wfw:commentRss>http://z132.com/403-forbidden-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS6挂载NTFS分区问题</title>
		<link>http://z132.com/mount-ntfs-zone-in-centos/</link>
		<comments>http://z132.com/mount-ntfs-zone-in-centos/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 09:23:03 +0000</pubDate>
		<dc:creator>jxjy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos6]]></category>

		<guid isPermaLink="false">http://z132.com/?p=523</guid>
		<description><![CDATA[在安装CentOS6后的首要问题出现了,CentOS默认无法挂载NTFS分区,会提示: mount: unknown filesystem type &#8216;ntfs&#8217; 而我安装的是windows 7+CentOS的双系统,需要挂载win下的NTFS分区. 由于有32位和64位系统到区别，所以分为两部分： PART A wiki之后得到的解决办法,以下是原文: 1. open the terminal window with the root account. 2. download rpmforge for centos 6 to your system: wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 3. now install the rpmforge for centos 6: rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 4. just install/update the package fuse-ntfs-3g: # yum update fuse-ntfs-3g 5. mount [...]]]></description>
		<wfw:commentRss>http://z132.com/mount-ntfs-zone-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

