摘要:
用PHP来构造一个单例类<?php class Single { private static $self; final protected function __construct() { } final public static function get_self() { if (Single::$self instanceof Single) return Single::$self; Single::$self = new Single(); return Single::$self; } function __clone() { trigger_e... 阅读全文
posted @ 2013-07-29 17:26
、包小包
阅读(89)
评论(0)
推荐(0)
摘要:
在编译软件之前请先保证linux上已经安装了gcc和gcc-c++编译器执行rpm -qa | grep gcc(如果没有安装,请先使用rpm -ivh安装编译软件,或者使用yum安装)安装之前请添加mysql用户组和mysql用户groupadd mysqluseradd -g mysql mysql将mysql源码包解压,进入解压目录./configure --prefix=/usr/local/mysql \ #mysql安装目录--with-charset=utf8 \--with-extra-charsets=all\ #我一般只配置这两项回车执行上面操作配置完成后 如果看到这... 阅读全文
posted @ 2013-07-29 16:48
、包小包
阅读(84)
评论(0)
推荐(1)