摘要: 实地测试非常有效转一下下载sphinx包之后进行编译,需要标识使用bigint作为sphinx的idJava代码./configure--prefix=/path/you/want--enable-id64Java代码makeinstall写好实时索引的配置文件Java代码vimetc/sphinx.confindextestrt{type=rtrt_mem_limit=32Mpath=/sphinxhome/var/data/testrtdocinfo=externmlock=0morphology=nonemin_word_len=1charset_type=utf-8charset_ta 阅读全文
posted @ 2013-09-10 17:41 见欲不见 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 1.需修改ft_min_word_len=1 因为ft_min_word_len默认为4,是针对英文的,中文分词基本长度都为2,所以修改 my.ini在 [mysqld] 后面加入一行“ft_min_word_len=1”2.重建全文索引 REPAIR TABLE title QUICK; 修改了如上面的配置后重建下索引生效3.终止当前执行的操作 show processlist; 找出你要停止的语句 然后找出你要终止的语句的id 在系统下mysqladmin -uroot -ppassword kill 要杀的ID4.查看所有表的引擎 查看前先分析下要查看的表analyzeta... 阅读全文
posted @ 2013-09-02 10:48 见欲不见 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 经常遇到一些命令使用上的问题现记录下1.ubuntu中DNS修改命令/etc/resolvconf/resolv.conf.d/base添加两行nameserver 8.8.8.8nameserver 114.114.114.1142.apache在ubuntu中重启命令/etc/init.d/apache2 start/etc/init.d/apache2 stop/etc/init.d/apache2restart3.查看ubuntu服务器版本cat /etc/issue4.ubuntu关机重启命令shutdown -h now 关机reboot 重启 阅读全文
posted @ 2013-08-17 16:42 见欲不见 阅读(224) 评论(0) 推荐(0) 编辑
摘要: http://windows.php.net/downloads/releases/archives/经常要用的记载兼分享下 阅读全文
posted @ 2013-08-16 19:06 见欲不见 阅读(163) 评论(0) 推荐(0) 编辑
摘要: google应用商店地址https://chrome.google.com/extensions/detail/fjccknnhdnkbanjilpjddjhmkghmachn?hl=zh-CN在商店不知道为什么就是搜索不到记载一下备用 阅读全文
posted @ 2013-08-16 10:25 见欲不见 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1、首先要停止Mysql服务。打开CMD,键入命令net stop mysql默认的mysql服务名就是mysql,如果你修改过服务名,请自行对照修改命令。2、在CMD中进入mysql的bin目录,例如我的就是 c:\mysql\bin ,键入命令mysqld-nt --skip-grant-tables这个命令是用来跳过mysql的权限检查表,如果命令成功就会发现CMD窗口处于停滞状态。3、重新打开一个CMD窗口,再次进入mysql的bin目录,键入命令mysql -u root这时就会以root身份登入mysql了,可以看到命令提示符变为mysql>4、修改root密码。依次键入命令 阅读全文
posted @ 2013-07-27 17:16 见欲不见 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 今天突然想知道mysql和postgresql的性能哪个好些搜索看了一些文章,然后看到一篇专业的测试文章网址是http://www.randombugs.com/linux/mysql-postgresql-benchmarks.html#agg_subtotal_report()对比测试的环境如下电脑配置Hardware ResourcesCPU: Intel(R) Pentium(R) D CPU 3.00GHz Dual CoreRAM: 3G RamHDD: WDC WD3200AAJS-0测试安装的软件Software ResourcesDebian Lenny 5.0 64 bit 阅读全文
posted @ 2013-07-26 23:15 见欲不见 阅读(3511) 评论(0) 推荐(0) 编辑
摘要: getServiceLocator(); $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter'); $goods_table=new TableGateway("ecm_goods",$dbAdapter); //这句相当于执行了sql语句:SELECT "ecm_goods".* FROM "ecm_goods" ORDER BY "goods_id" ASC LIMIT '20' OFFSET '10' $goods 阅读全文
posted @ 2013-07-17 16:39 见欲不见 阅读(1047) 评论(0) 推荐(1) 编辑
摘要: PHPUnit_Frameworkd_TestCase的断言方法异常的测试可以测试类的方法是否有对某些情况抛出异常 public function testSetGoods_longname() { $this->setExpectedException("Exception"); $this->Goods_obj->SetGoods("双肩包的名字不能太长"); }上例如果在商品名称过长未抛出异常时,测试时会显示错误2) BaoGoodsTest::testSetGoods_longnameFailed asserting that 阅读全文
posted @ 2013-07-09 17:21 见欲不见 阅读(212) 评论(0) 推荐(0) 编辑
摘要: http://pear.phpunit.de/ phpunit官方站点https://github.com/sebastianbergmann/phpunit/ phpunit Github地址phpunit安装命令:pear channel-discover pear.phpunit.depear install -o phpunit/phpunit运行上门的命令安装phpunit,当然必须是你的pear安装良好的情况下如果安装的时候遇到pear/Mail_Mime requires PEAR Installer (version >= 1.9.4), installed versio 阅读全文
posted @ 2013-07-09 16:41 见欲不见 阅读(748) 评论(0) 推荐(0) 编辑