<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hellollx</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hellollx]]></copyright><item><title><![CDATA[mongo用户授权]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/7922950</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/7922950</guid><author>hellollx</author><pubDate>Thu, 30 Aug 2012 09:50:12 +0800</pubDate><description><![CDATA[进入mongodb命令行： 
cd /usr/local/mongodb/bin 
./mongo 

1、 进入ljc 数据库：      
use ljc;              --ljc为数据库名称。 

2、添加用户（读写权限，readOnly-->false）： 
db.addUser("java","java"); 

3、 查看一下所有的用户 
db.sy]]></description><category></category></item><item><title><![CDATA[centos常用操作]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/7567513</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/7567513</guid><author>hellollx</author><pubDate>Tue, 15 May 2012 10:11:46 +0800</pubDate><description><![CDATA[centos更新快速下载索引源
yum install yum-fastestmirror


安装gcc编译器
yum -y install gcc



终端乱码
LANG="zh_CN.GB18030" 
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN" 
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_]]></description><category></category></item><item><title><![CDATA[redis安装使用]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6901148</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6901148</guid><author>hellollx</author><pubDate>Mon, 24 Oct 2011 16:48:10 +0800</pubDate><description><![CDATA[服务端安装：目前官方没有windows版本，只有Linux
$ wget http://redis.googlecode.com/files/redis-2.4.1.tar.gz
$ tar xzf redis-2.4.1.tar.gz
$ cd redis-2.4.1
$ make
启动 ./src/redis-server
 
直到目前2.40版本前，虚拟磁盘还是不稳定而且有很多]]></description><category></category></item><item><title><![CDATA[vmware增加磁盘空间]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6901131</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6901131</guid><author>hellollx</author><pubDate>Mon, 24 Oct 2011 16:43:13 +0800</pubDate><description><![CDATA[关闭虚拟机中的操作系统。

虚拟机-》设置-》的右下角有个add的按钮点击新增，先第一个。然后启动虚拟机中的系统
fdisk -l下发现有增加了个磁盘，类似，/sdb2之类的，就是它了，这时需要先格式化，fdisk /dev/sdb2，输入n创建新分区，然后输入P，创建主分区，
w保存，就好了，然后必须格式化mkfs -t ext3 -c /dev/sdb2,创建目录/mnt/sdb2,挂]]></description><category></category></item><item><title><![CDATA[vm 下增加磁盘空间]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6901043</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6901043</guid><author>hellollx</author><pubDate>Mon, 24 Oct 2011 16:33:46 +0800</pubDate><description><![CDATA[关闭虚拟机中的操作系统。
虚拟机-》设置-》的右下角有个add的按钮点击新增，先第一个。然后启动虚拟机中的系统
fdisk -l下发现有增加了个磁盘，类似，/sdb2之类的，就是它了，这时需要先格式化，fdisk /dev/sdb2，输入n创建新分区，然后输入P，创建主分区，
w保存，就好了，然后必须格式化mkfs -t ext3 -c /dev/sdb2,创建目录/mnt/sdb2,挂载m]]></description><category></category></item><item><title><![CDATA[php 模拟GMAIL，HOTMAIL（MSN），YAHOO，163，126邮箱登录]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6432060</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6432060</guid><author>hellollx</author><pubDate>Thu, 19 May 2011 14:24:00 +0800</pubDate><description><![CDATA[<br />最近一直在忙，赶在这个十一假期结束的时候，发表一下此文，为了是让这些源码开源出来<br /><br />
当然这些方法可能不可取，但大致应该是这种方向了吧，由于目前做的一个UCHOME港台的站点<br /><br />
咱们策划说要改一下好友邀请里面的显示方式，开始我也没有在意，当时就说行！<br /><br />
到了弄这个的时候才发现，UCH里面的这个地方是用漫游型式做的，让人很是无解，啥都改不了！<br /><br />
唉，既然都答应了说可以，现在实际情况不行了，所以觉得不好意思]]></description><category></category></item><item><title><![CDATA[windows下phpdoc安装心得]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6394499</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6394499</guid><author>hellollx</author><pubDate>Wed, 04 May 2011 16:52:00 +0800</pubDate><description><![CDATA[windowsxp下好像不能运行最新版本的phpdoc，一直报1937行和内存只读的错误，后来换成window7下就没有问题了，看来系统必须升级了。pear收集了phpdoc，所以通过先装pear，go-pear.bat，然后输入local，一直回车安装phpdoc，pear install -o phpdocumentor，如果注释是中文的，一定要执行 iso-8859-1 到 utf-8 的替换，否则生成出来的是乱码。(把 tmp/PhpDocumentor-1.4.3/phpDocumentor/Co]]></description><category></category></item><item><title><![CDATA[Mongodb的Windows&Linux安装以及注意事项]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6259282</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6259282</guid><author>hellollx</author><pubDate>Fri, 18 Mar 2011 15:58:00 +0800</pubDate><description><![CDATA[<br /><br />Mongodb的Windows安装以及注意事项：<br />1.下载mongodb的windows版本(注意32位和64位的区别)：<br />
下载地址：http://www.mongodb.org/downloads<br />2.解压缩至D:/mongodb中；<br />3.创建data和db目录,比如D:/mongodb/data/db. 这是数据库文件的默认存放位置.<br />4.打开cmd命令行，进入D:/mongodb/bin目录，输入如下的命令启动mongodb]]></description><category></category></item><item><title><![CDATA[NoSQL数据库探讨之一 － 为什么要用非关系数据库？]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6171052</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6171052</guid><author>hellollx</author><pubDate>Mon, 31 Jan 2011 18:04:00 +0800</pubDate><description><![CDATA[<br />随着互联网web2.0网站的兴起，非关系型的数据库现在成了一个极其热门的新领域，非关系数据库产品的发展非常迅速。而传统的关系数据库在应付web2.0网站，特别是超大规模和高并发的SNS类型的web2.0纯动态网站已经显得力不从心，暴露了很多难以克服的问题，例如： <br /><br />1、High performance - 对数据库高并发读写的需求 <br />web2.0网站要根据用户个性化信息来实时生成动态页面和提供动态信息，所以基本上无法使用动态页面静态化技术，因此数据库并发负载非常高]]></description><category></category></item><item><title><![CDATA[php-fpm守护脚本]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6100893</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6100893</guid><author>hellollx</author><pubDate>Mon, 27 Dec 2010 16:16:00 +0800</pubDate><description><![CDATA[<br />cp /usr/local/php/sapi/fpm/init.d.php-fpm.in  /etc/rc.d/init.d/php-fpm<br />修改文件中的<br />php_fpm_BIN=/usr/local/php/sbin/php-fpm<br />php_fpm_CONF=/usr/local/php/etc/php-fpm.conf<br />php_fpm_PID=/tmp/php-fpm.pid<br />一切OK<br />参考http://cn.php.net/man]]></description><category></category></item><item><title><![CDATA[nginx启动和停止脚本]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6100553</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6100553</guid><author>hellollx</author><pubDate>Mon, 27 Dec 2010 14:24:00 +0800</pubDate><description><![CDATA[#!/bin/sh
 
NGINX_BASE_DIR="/opt/nginx"NGINX_DAEMON="${NGINX_BASE_DIR}/sbin/nginx"NGINX_CONF="${NGINX_BASE_DIR}/conf/nginx.conf"
 
__launch_signal(){
 
  ${NGINX_DAEMON}-s${1}&>/dev/null
}
 
__checkconfig(){
 
  ${NGINX_DAEMON}-c${NGINX_CONF}-t&]]></description><category></category></item><item><title><![CDATA[Nginx优化]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6100275</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6100275</guid><author>hellollx</author><pubDate>Mon, 27 Dec 2010 11:54:00 +0800</pubDate><description><![CDATA[select和poll是一个级别的，epoll和kqueue是一个级别的，相差不多。epoll用在linux上,kqueue用在bsd上,不能物理上共存。如果你的服务器cpu较好，linux内核新，可考虑用epoll.基本上现在的服务器配置都能上epoll了]]></description><category></category></item><item><title><![CDATA[linux安装方式]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6093738</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6093738</guid><author>hellollx</author><pubDate>Thu, 23 Dec 2010 11:46:00 +0800</pubDate><description><![CDATA[<br />rpm<br />      比较简单，也需要自己处理依赖性的问题<br />源码安装：config,cmake配置编译<br />      性能最好，也是最灵活的方式，可以只考虑当前平台和自己的需求，不过依赖性处理起来比较麻烦<br />编译好后的二进制文件像windows下的绿色软件<br />      比较简单，较通用，不过编译后文件大，可能性能也会有些影响<br />软件索引库：gentoo(emerge),rehat,centos(yum)<br />      比较简单，而且能保]]></description><category></category></item><item><title><![CDATA[CentOS+Nginx+PHP+MySQL]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6093698</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6093698</guid><author>hellollx</author><pubDate>Thu, 23 Dec 2010 11:27:00 +0800</pubDate><description><![CDATA[一、安装MySQL

       
目前web服务器已经很少有跑静态页面的，如果要跑动态网站那当然就离不开数据库，虽然在以前文章中有写MySQL是怎么安装的，但是感觉好久没装MySQL，现在只把步骤贴出来，就不做过多的讲解了

http://dev.mysql.com/downloads/mirror.php?id=399302

http://ftp.jaist.ac.jp/pu]]></description><category></category></item><item><title><![CDATA[比较准确地检测字符的编码是否是UTF8]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6042885</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6042885</guid><author>hellollx</author><pubDate>Mon, 29 Nov 2010 15:16:00 +0800</pubDate><description><![CDATA[<br />function valid_1byte($char) {<br />
        if(!is_int($char)) return false;<br />
        return ($char & 0x80) == 0x00;<br />
    }<br />
    <br />
    function valid_2byte($char) {<br />
        if(!is_int($char)) return false;<br />
     ]]></description><category></category></item><item><title><![CDATA[smf 转 discuz]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6037469</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6037469</guid><author>hellollx</author><pubDate>Fri, 26 Nov 2010 14:59:00 +0800</pubDate><description><![CDATA[在进行转移的时候发现，编码总是出错，后来发现是两个长连接，SET NAMES 'utf8'一下有时候两个同时setnames了导致了设置了错误的数据库查询编码，导致了数据库编码出错，所以长连接中连接有时候会错乱，或者中断， 一定要注意重新连接一下]]></description><category></category></item><item><title><![CDATA[常用mysql命令]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/6029993</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/6029993</guid><author>hellollx</author><pubDate>Tue, 23 Nov 2010 15:53:00 +0800</pubDate><description><![CDATA[<br />导入数据表<br />source sql.sql]]></description><category></category></item><item><title><![CDATA[window查看端口 netstat]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/5926556</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/5926556</guid><author>hellollx</author><pubDate>Fri, 08 Oct 2010 10:27:00 +0800</pubDate><description><![CDATA[1.查进程:
netstat -b -n –a
-b 为列出进程,必须-b在前,不能是-a在前不然报错.
-n为端口号
 
查到是peer.exe 进程PID 632
2.杀占用80的进程
CMD下杀进程的命令ntsd.
ntsd –c q –p 632


3根据进程号查端口
netstat -apn|grep 端口号]]></description><category></category></item><item><title><![CDATA[gentoo乱码]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/5914047</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/5914047</guid><author>hellollx</author><pubDate>Wed, 29 Sep 2010 13:28:00 +0800</pubDate><description><![CDATA[<br />      1. 安装中文字体 <br />
      #emerge arphicfonts wqy-bitmapfont  
corefonts ttf-bitstream-vera <br />2. 先修改locale.gen文件 <br />#gedit /etc/locale.gen    <br />代码: <br />en_US  ISO-8859-1 <br />en_US.UTF-8  UTF-8 <br />zh_CN  GB18030 <br />zh_CN.GBK ]]></description><category></category></item><item><title><![CDATA[linux 文件共享 smbfs]]></title><link>https://blog.youkuaiyun.com/hellollx/article/details/5907649</link><guid>https://blog.youkuaiyun.com/hellollx/article/details/5907649</guid><author>hellollx</author><pubDate>Sun, 26 Sep 2010 16:03:00 +0800</pubDate><description><![CDATA[linux下加载其它系统的共享文件夹，一般是windows了，如果是linux的话，直接用nfs了mount -t smbfs -o iocharset=utf8,codepage=936,uid=0,username=share //192.168.16.110/gentoo2 /mnt/share_110_1/linux下设置smbfs服务器1emerge smbfs2修改/etc/samba/smb.conf增加[share4]
   path = /home/share4
   browseab]]></description><category></category></item></channel></rss>