2016年6月4日
摘要:
1.mysql优化 sql语句,字段类型( 长度的含义),存储引擎的选择,事务,索引和索引的优缺点 , 主从同步原理, 高可用。2.HA keeepalived mysql的双机热备http://www.linuxidc.com/Linux/2013-09/90319.htm 3.负载均衡相关: L
阅读全文
posted @ 2016-06-04 08:45
久违的绽放
阅读(222)
推荐(0)
2016年6月2日
摘要:
Smarty优点: 1. 速度:采用smarty编写的程序可以获得最大速度的提高,这一点是相对于其它的模板引擎技术而言的。 2. 编译型:采用smarty编写的程序在运行时要编译成一个非模板技术的PHP文件,这个文件采用了PHP与HTML混合的方式,在下一次访问模板时将WEB请求直接转换到这个文件中
阅读全文
posted @ 2016-06-02 08:21
久违的绽放
阅读(610)
推荐(0)
2016年6月1日
摘要:
最近手头上有个项目需要用到Ucenter跟Discuz和UcHome整合到一起,使用同步登录、注册,使用同一的用户数据。 以前没用过Ucenter,第一次接触,看过官网的教程感觉不难。于是开始动手,下载了Discuz! 7.2_FULL,安装,没难度。然后下载了UCenter Home 2.0同样安
阅读全文
posted @ 2016-06-01 20:29
久违的绽放
阅读(339)
推荐(0)
2016年5月19日
摘要:
public function img($src){ preg_match_all('/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i',$src,$temp); return $temp[1][0]; }
阅读全文
posted @ 2016-05-19 15:03
久违的绽放
阅读(132)
推荐(0)
摘要:
memcache 与 redis 都是key-value存储系统,相对来说redis可能比memcache适应场景多些,存储的value类型也更多些,而redis也支持主从同步。而mongo是一种文档型的数据库。 1、memcache 主要可以用作缓存系统,用于缓存文件、数据库查询结果等,因为它在内
阅读全文
posted @ 2016-05-19 12:12
久违的绽放
阅读(284)
推荐(0)
2016年5月16日
摘要:
http://blog.csdn.net/ms_x0828/article/details/7662066 http://blog.sina.com.cn/s/blog_5f66526e0102vf43.html
阅读全文
posted @ 2016-05-16 20:22
久违的绽放
阅读(110)
推荐(0)
摘要:
安装redisyum install redis 2. 安装php-redis扩展yum install php-redis 3. 启动redis,并设定开机自动启动service redis startchkconfig redis on 完成,安装就是这么简单、粗暴!!!!
阅读全文
posted @ 2016-05-16 10:30
久违的绽放
阅读(90)
推荐(0)
2016年5月14日
摘要:
附:CentOS 6.4下载地址 32位:http://mirror.centos.org/centos/6.4/isos/i386/CentOS-6.4-i386-bin-DVD1to2.torrent 64位:http://mirror.centos.org/centos/6.4/isos/x8
阅读全文
posted @ 2016-05-14 16:05
久违的绽放
阅读(464)
推荐(0)
2016年5月11日
摘要:
1、首先我们要在组件里面配置一下 Rbac ,如下所示(common/config/main-local.php或者main.php)。 'authManager' => [ 'class' => 'yii\rbac\DbManager', 'itemTable' => 'auth_item', '
阅读全文
posted @ 2016-05-11 19:34
久违的绽放
阅读(1006)
推荐(0)
2016年5月9日
摘要:
安装mysqlyum list | grep mysqlyum install mysql-server.x86_64启动mysql/etc/init.d/mysqld start进入mysql创建用户并授权mysql -urootshow databses;use mysql;delete fro
阅读全文
posted @ 2016-05-09 14:27
久违的绽放
阅读(146)
推荐(0)