<?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>运达&#039;s  blog &#187; wamp</title>
	<atom:link href="https://www.yunda51.com/?feed=rss2&#038;tag=wamp" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>windows下安装Redis+连接PHP</title>
		<link>https://www.yunda51.com/?p=1436</link>
		<comments>https://www.yunda51.com/?p=1436#comments</comments>
		<pubDate>Tue, 18 Nov 2014 10:35:55 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[Redis]]></category>
		<category><![CDATA[redis]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1436</guid>
		<description><![CDATA[最近听说Redis用的人挺多的，就抽出时间研究一下，嘿嘿~~ 废话就不多说了，直接说正题！ 首先，下载Redi<a href="https://www.yunda51.com/?p=1436" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>最近听说Redis用的人挺多的，就抽出时间研究一下，嘿嘿~~ 废话就不多说了，直接说正题！</p>
<p>首先，下载Redis的windows32位客户端：<a target="_blank"  href="http://pan.baidu.com/s/12IsnO">window32位下载</a></p>
<p>下载后建议解压到web目录之类的地方，譬如：D:\WWW\Redis</p>
<p>解压完之后，打开cmd运行窗口，输入以下指令（我把redis放在了D盘www目录下面）<br />
<strong>如图</strong>：<a href="http://www.yunda51.com/wp-content/uploads/2014/11/114.jpg"><img class="alignnone size-full wp-image-1437" title="114" src="http://www.yunda51.com/wp-content/uploads/2014/11/114.jpg" alt="" width="350" height="93" /></a></p>
<p>如果你能看到CMD显示以下内容，恭喜你，你的Redis服务端已经ok了：<br />
<strong>如图</strong>：<a href="http://www.yunda51.com/wp-content/uploads/2014/11/8.jpg"><img class="alignnone size-full wp-image-1438" title="8" src="http://www.yunda51.com/wp-content/uploads/2014/11/8.jpg" alt="" width="641" height="399" /></a></p>
<p>以后要使用都可以用这个指令开启Redis，当然窗口不能关闭，关闭窗口Redis会停止运行。</p>
<p>然后：建立PHP到Redis的连接，使PHP能够直接往Redis里发送数据：</p>
<p>请运行phpinfo()查看以下内容：PHP版本号、TS or NTS、VC版本<br />
<strong>如图：</strong><a href="http://www.yunda51.com/wp-content/uploads/2014/11/1702.jpg"><img class="alignnone size-full wp-image-1439" title="1702" src="http://www.yunda51.com/wp-content/uploads/2014/11/1702.jpg" alt="" width="374" height="82" /></a></p>
<p>请选择对应的版本下载</p>
<p>php5.3-ts-vc9 （我用的是WAMP）</p>
<p>php5.4-ts-vc9 （XAMPP的一般用这个）</p>
<p>下载后请将解压得到的DLL文件拷贝到php/ext目录下，譬如我的是D:\wamp\bin\php\php5.3.10目录下</p>
<p>然后就是修改php.ini了，在你看到的一大堆extension=XXXXX.dll的后面加上以下内容（大意就是让Apache在启动的时候去加载对应扩展）：<br />
PHP5.3：extension=php_redis.dll</p>
<p>如果是PHP5.4：（顺序不可颠倒）<br />
extension=php_igbinary.dll<br />
extension=php_redis.dll</p>
<p>字段添加完后保存重启Apache（不重启是不会加载的），然后再看一下你的phpinfo里面是不是能搜到Redis扩展了，如果搜到那就恭喜你，扩展加载成功可以接着下一步了，如果搜不到也恭喜你，回头检查下哪个步骤出了问题。（如图，版本不同可以不用纠结）<br />
<strong>如图：</strong><a href="http://www.yunda51.com/wp-content/uploads/2014/11/83023.jpg"><img class="alignnone size-full wp-image-1440" title="83023" src="http://www.yunda51.com/wp-content/uploads/2014/11/83023.jpg" alt="" width="608" height="111" /></a></p>
<p>到目前安装以及配置都完事了，那么就让我们来测试一下：<br />
让我们来新建一个php文件,代码如下:</p>
<pre class="wp-code-highlight prettyprint">
&lt;?php
	$redis = new Redis();
	$redis-&gt;connect(&#039;127.0.0.1&#039;,6379);
	//$redis-&gt;connect(&quot;test.com&quot;,6379); //php客户端设置的ip及端口
	//存储一个值
	$redis-&gt;set(&quot;say&quot;,&quot;Hello World&quot;);
	echo $redis-&gt;get(&quot;say&quot;); //应输出Hello World

	//存储多个值
	$array = array(&#039;first_key&#039;=&gt;&#039;first_val&#039;,
	&#039;second_key&#039;=&gt;&#039;second_val&#039;,
	&#039;third_key&#039;=&gt;&#039;third_val&#039;);
	$array_get = array(&#039;first_key&#039;,&#039;second_key&#039;,&#039;third_key&#039;);
	$redis-&gt;mset($array);
	var_dump($redis-&gt;mget($array_get));
?&gt;
</pre>
<p>保存，运行。如果看到下图，恭喜你，开始你的Redis之旅吧！<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/11/41118183415.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/11/41118183415.jpg" alt="" title="41118183415" width="307" height="172" class="alignnone size-full wp-image-1441" /></a><br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1436.html">http://www.yunda51.com/1436.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1436</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mantis安装步骤</title>
		<link>https://www.yunda51.com/?p=1240</link>
		<comments>https://www.yunda51.com/?p=1240#comments</comments>
		<pubDate>Wed, 26 Mar 2014 07:55:51 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Mantis]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mantis]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1240</guid>
		<description><![CDATA[今天听朋友说的mantis,没事研究了一下,它类似于"禅道",内部使用比较好,它可以指派任务,监视人,任务进展<a href="https://www.yunda51.com/?p=1240" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>今天听朋友说的mantis,没事研究了一下,它类似于"禅道",内部使用比较好,它可以指派任务,监视人,任务进展,任务状态等!在网上搜素了一些资料感觉都太散乱,所以自己总结了一下! 废话就不多说了，安装步骤：<br />
<strong>一、准备工作(windows 平台)</strong><br />
下载Mantis(1.1.8)，地址：http://www.mantisbt.org/download.php<br />
下载EasyPHP（5.2.10），地址：http://www.easyphp.org/download.php(<strong>注:如果你本机有wamp或者Apmserver环境的的就不需要下载Easyphp了,可以把解压之后的mantis文件夹直接仍到www目录下面,然后在mantis文件下找到config_inc.php.sample,复制一份修改成config_inc.php,然后在里面配置一下数据库!<br />
注意:我的配置如下:</strong><br />
        $g_hostname      = "localhost:3306";<br />
  	$g_db_username   = "root";<br />
	$g_db_password   = "";<br />
 	$g_database_name = "bugtracker";<br />
	$g_db_type       = "mysql";<br />
 	# --- email variables -------------<br />
	$g_administrator_email  = 'administrator@example.com';<br />
	$g_webmaster_email      = 'webmaster@example.com';<br />
	# the "From: " field in emails<br />
	$g_from_email           = 'noreply@example.com';<br />
	# the return address for bounced mail<br />
	$g_return_path_email    = 'admin@example.com';<br />
 	$g_default_language                = 'chinese_simplified';)<br />
安装EasyPHP到C:\EasyPHP目录。<br />
把Mantis解压到C:\EasyPHP\www目录下，并重命名为bugs<br />
注意：<br />
1、EasyPHP的版本不要高于5.2.10，原因后面详说。<br />
2、EasyPHP的安装路径中不要包含空格。<br />
3、EasyPHP安装完后不要立即运行它。</p>
<p><strong>二、配置Apache</strong><br />
打开文本文件C:\EasyPHP\conf_files\httpd.conf，<br />
修改Listen 127.0.0.1:80为你想要的IP地址和监听端口，如Listen 192.168.1.103:80。<br />
这个地方IP 地址一定要改成网卡IP，否则用127.0.0.1这样的地址就算是局域网内的其它计算机也无法访问的。<br />
ServerName localhost:80一行视需要修改，方法见该该行上方的参考信息。</p>
<p><strong>三：配置MySQL</strong><br />
安全性：root用户的密码，可视需要自己更改。<br />
字符集：MySQL默认的校验字符集是瑞典语的，需要改成utf8，否则mantins无法存取中文字符。<br />
为防止意外，把MySQL和字符集有关的变量全部改成utf8。<br />
先改character_set_*之类的变量，且是全局的，*_*_ci之类的变量会跟着自己变动（HeidiSQLPortable 工具)。<br />
改完后退出，重新登录MySQL，再查看刚刚修改的变量是否已生效，因为有些(全部？）MySQL全局变量是要从下一个会话才开始生效的，所以不重新登录刷新变量的话会发现变量修改后还是那样。<br />
修改工具可用HeidiSQLPortable、phpmyadmin或MySQL-Front等等，注意这一步要在安装Mantis之前<br />
修改后的字符集变量如下：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/140326154710.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/140326154710.jpg" alt="" title="140326154710" width="365" height="214" class="alignnone size-full wp-image-1241" /></a><br />
<strong><br />
四、配置EasyPHP</strong><br />
如果Appache端口配置正确（IP地址有效、端口无冲突）的话还出现下面这个对话框，<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/1546.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/1546.jpg" alt="" title="1546" width="328" height="109" class="alignnone size-full wp-image-1242" /></a><br />
那么可以配置一下EasyPHP，让它启动时不再验证80端口，步骤如下：<br />
打开配置界面<a href="http://www.yunda51.com/wp-content/uploads/2014/03/16.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/16.jpg" alt="" title="16" width="430" height="242" class="alignnone size-full wp-image-1243" /></a><br />
把画红色横线部分的勾去掉<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/17.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/17.jpg" alt="" title="17" width="427" height="243" class="alignnone size-full wp-image-1244" /></a></p>
<p><strong>五、安装、配置Mantis：</strong><br />
启动EasyPHP 5.2.10，打开浏览器，输入http://your-ip:port/bugs<br />
此时应该出现mantis的安装界面，在Admin Username (to create Database) 一行填上root，然后点“Install/Upgrade Database”按钮。接下来的测试和安装界面中没有出现红色背景的测试项，应该就没问题了。</p>
<p>然后打开C:\EasyPHP\www\bugs\config_inc.php，在末尾的“?>”符号之前插入以下语句：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/18.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/18.jpg" alt="" title="18" width="457" height="344" class="alignnone size-full wp-image-1245" /></a><br />
修改后以utf8编码的方式“另存为”C:\EasyPHP\www\bugs\config_inc.php，也就是以utf8编码覆盖掉原文件，否则$g_from_name变量中有中文时，邮件发件人部分会显示为乱码，其它部分正常。<br />
邮箱速度：从实际使用的情况来看，$g_phpMailer_method 设为2，用126的smtp作服务器。邮件收取速度如下：gmail邮箱速度很快，马上就可以收到；126的要几到十几分钟上；yahoo.com.cn邮箱半个多小时左右还没收到。<br />
安全性：Mantis要求禁用administrator用户、重命名或删除管理目录admin。注意禁用administrator用户之前先建一个管理员权限的用户。<br />
<strong><br />
六、可能遇到的问题：</strong><br />
如果PHP用5.3及以上版本，有时浏览器上会显示许多以下类似错误：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2014/03/19.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/03/19.jpg" alt="" title="19" width="498" height="60" class="alignnone size-full wp-image-1246" /></a><br />
这是因为PHP版本换成5.3以下的就OK了!<br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1240.html">http://www.yunda51.com/1240.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1240</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
