- 嵌入式Linux的Qt
YottaYuan
嵌入式Linux的Qt在嵌入式Linux系统上,可以使用多个平台插件:EGLFS,LinuxFB,DirectFB或Wayland。但是,这些插件的可用性取决于Qt的配置方式。EGLFS是许多主板上的默认插件。如果不合适,请使用QT_QPA_PLATFORM环境变量来请求另一个插件。另外,对于快速测试,请使用-platform具有相同语法的命令行参数。注意:从Qt5.0开始,Qt不再具有自己的窗口
- poky: PACKAGECONFIG的用法
xiaofeng_yan
Pokyfeatures
PACKAGECONFIG是用来区分一个软件包在不同的条件下,配置依赖和编译选项例如:PACKAGECONFIG??="${@base_contains('DISTRO_FEATURES','x11','x11','',d)}\${@base_contains('DISTRO_FEATURES','directfb','directfb','',d)}"PACKAGECONFIG[x11]="--
- 嵌入式 DirectFB
xasylt
QTDirectFB
转自:原文地址DirectFB常用接口1.概述================本文主要研究DirectFB及其向上向下的接口,顺带讲一下QT搭配DirectFB使用的一些笔记。其他,如DirectFB的内部结构、Qt的内部结构、及其他GUI系统如android不在本文讨论范围内。本文会设计一些DirectFB的2D加速函数介绍,3D加速不再本文讨论范围内。================桌面GUI
- DirectFB内存分配与管理:surface pool
liuysheng
DirectFB
1.1版本之前,DFB只有基本的系统内存概念,即使用局部或共享内存;或者视频内存概念,即固定的物理地址和一定大小的连续的内存块,该内存直接由CPU映射或者由DFB内置的内存管理器SurfaceManager管理。SurfaceManager是一个一维的内存管理器,它会踢出(kick-out)过时的(即不再需要的)内存。这些内存一般是本地备份的内存。只有很少的情况,系统或驱动模块可以控制或自己实现内
- DirectFB教程导读-在屏幕中心画一条横线
zjr19850103
DFB
#include//C库函数#include//UNIX标准函数,与系统相关#include//directfb库函数staticIDirectFB*dfb=NULL;//directfb入口,最高接口staticIDirectFBSurface*primary=NULL;//平面接口对象,若CooerativeLevel设为DFSCL_FULLSCREEN,则为首层平面staticintscre
- DirectFB简单示例
wangjijian
Linux嵌入式
在上一篇文章中启动好了framebuffer,现在可以用这样一个简单的例子来检验下效果。来自DirectFB官方网站的简单程序,在屏幕上画一条线。编译后,执行成功了。Simplefullscreenapplicationthatdrawsahorizontalline.代码如下:#include#include#includestaticIDirectFB*dfb=NULL;staticIDire
- 移植SDL2.0到嵌入式开发板过程
疯狂的蘑菇
SDLlinux
移植SDL2.0到210开发板,正在进行中,隔一段时间把文章写全,下面是调试中用的命令,每实验一次编译都得花10多分钟实验平台:tiny210要把SDL移植到开发板上显示图片或者支持事件响应,要先移植directfb库,而SDL2的源码文档里说了支持的directFB版本为1.1.01.2.x和1.3.0,这里我选择的是1.2.7directfb1.2.7,下载地址,http://download
- linux下僵尸进程(Defunct进程)的产生与避免
Enockipp
linuxlinux僵尸进程Defunct进程僵尸进程产生
在测试基于DirectFB+Gstreamer的视频联播系统的一个Demo的时候,其中大量使用system调用的语句,例如在menu代码中的system("./play"),而且多次执行,这种情况下,在ps-ef列表中出现了大量的defunct进程,对程序的运行时有害的。按说system的源码中应该已经包含了wait,但也不能排除开发板上这个版本的system中可能没有wait,总之,开发板上在调
- 终于在我的s3c2440板子上用上了directfb+gtk了
aishen944
linuxgtkcpathbuildfunctionfile
请尊重著作人的劳动果实,引用请说明出处及原创作者联系方式:aishen944-163.com谢谢!对于我这个不满足现状的人来说,如果能够用现有的主流的开源的GUI来做嵌入式开发,真的很有成就感,想用minigui吧,结果还要买许可证,晕,这段日子在经历了失败失败再失败的基础上终于在gtk+在arm平台上的移植迈出了重要一步,现把心得体会及编译过程写出来,这些只是针对我的机器上的编译环境设置的,大家
- 内核中的多点触摸协议文档 Multi-touch (MT) Protocol
M_Gavin
Android
转自:http://www.arm9home.net/read.php?tid=24754点触摸的信息,是触摸屏这样的触摸设备向inputcore上报MT消息传递的。这些MT消息,可以通过设备文件的接口,被应用程序读取到。整个消息传递过程,以及上层应用程序(DirectFB/Xorg/EFL/Tslib)的支持情况,还没有完全弄清楚。等弄清楚了再和大家分享。将multi-touch-protoco
- qt 5 交叉编译方法
rannar
./configure\-prefix../arm-qt-output\-xplatformlinux-aarch64-gnu-g++\-qt-libpng\-qt-libjpeg\-static\-no-xcb\-no-opengl\-no-eglfs\-no-direct2d\-no-directfb\-no-eglfs\-no-gbm\-no-kms\-no-mirclient\-no-xc
- ubuntu下启用FrameBuffer模块
wangjijian
Linux嵌入式
Ubuntu安装好后,想用DirectFB进行程序设计,发现没有/etc下并没有fb0设备,如何添加这个设备,Google了很多资料都不行,终于找到下面这个资料,成功的添加上了fb0fb11.编辑/etc/initramfs-tools/modules,在其中加入:fbconvesafbvga16fb2.编辑/etc/modprobe.d/blacklist-framebuffer,注释掉以下两行
- ubuntu 交叉编译过程
无花无酒,天涯人
ubuntu交叉编译过程
以下是参考DirectFB中文社区中几个贴子的步骤,在自己的机子上做了些更改,还没进行测试,只是编译通过,有空再加到开发板上#########################################################################主机开发环境是ubuntu8.04目标机是sbc2410交叉编译器是3.4.1安装目录选在/data/gtk用到以下源码包:atk
- Qt 中链接Directfb
myaccella
Linux编程
1.修改qmake.conf文件,用如下方法修改:$(callQT_QMAKE_SET,QMAKE_CC,$(TARGET_CC),$(@D))$(callQT_QMAKE_SET,QMAKE_CXX,$(TARGET_CXX),$(@D))$(callQT_QMAKE_SET,QMAKE_LINK,$(TARGET_CXX),$(@D))$(callQT_QMAKE_SET,QMAKE_LINK
- GNU C __attribute__ 机制简介
weixin_33770878
摘要:在学习linux内核代码及一些开源软件的源码(如:DirectFB),经常可以看到有关__attribute__的相关使用。本文结合自己的学习经历,较为详细的介绍了__attribute__相关语法及其使用。---------------------------------------------------------声明:此文为原创,欢迎转载,转载请保留如下信息作者:聂飞(afreez)
- Linux图形界面中客户端、服务器、窗口管理器之间的关系
iteye_20954
很多LINUX初学者在学习linux图形方面的知识时会遇到一些概念,如:X、X11、Xfree86、WM、KDE、GNOME、QT、QT/E、Qtopia、DirectFB、Framebuffer、显卡加速驱动等等。理解它们之间是什么关系,对我们学习来说是非常重要的。写这篇文章的目的,就是想让大家明晰这些概念及它们之间的关系。(部分内容引用网络上的一些描述比较清晰的内容)一、Linux操作系统和图
- 嵌入式linux GUI--DirectFB + GTK至尊秘笈
afantii
GUI
嵌入式linuxGUI--DirectFB+GTK至尊秘笈
[email protected]版权申明:本文档一切权利归本人(
[email protected])所有,用于商业用途徐征得本人同意,如无法联系到本人,须征得www.directfb.com.cn所有者同意;用于非商业用途的,无需任何许可,但请尊重本人的署名权,并注明出处www.directf
- Freetype学习笔记
李先静
Freetype学习笔记转载时请注明出处和作者联系方式:http://blog.csdn.net/absurd作者联系方式:LiXianJing更新时间:2006-12-19GTK+(基于DirectFB)的字体绘制是通过pango+freetype+fontconfig三者协作来完成的,其中,fontconfig负责字体的管理和配置,freetype负责单个字符的绘制,pango则完成对文字的排
- MiniGUI和其他嵌入式图形系统的优势比较 - 个人见解
测试九宸
MiniGUI
大家知道嵌入式领域是一个很丰富的领域,包括诸多的嵌入式操作系统和嵌入式图形支撑系统,所以除了MiniGUI之外,还有一些其他的嵌入式GUI,比如QT/E,micwindows,DirectFB+GTK,fltk,openGUI,TILCON等等,如下是MiniGUI和这些GUI之间的一些对比:和qt对比:1、QT当初是为PC设计的桌面环境,而且架构过于复杂,很难进行系统裁剪,扩充、定制和移植,尽管
- 一个新手程序员的项目经验
iteye_17686
刚开始进入公司是在3月份,做的一份工作是DirectFB的移植,前后花了一个月的时间。就是做这个项目的时候我知道了在学校和社会的不同了,很简单的一个例子。移植成功后,在跑测试用例的时候发现有几个测试用例运行不成功。这要是在学校谁还会管他呢,但是在公司的做法是去看代码找出为什么会出现这个错误。DirectFB移植完成以后,导师突然说是他邮件给看错了,所以之前移植的DirectFB并不能派上用场。但是
- Qt5.7 Qt for Embedded Linux
#冷风那个吹#
qt
从Qt5.0开始,Qt不再包含自己的视窗系统了(QWS)。对于单屏幕的情况,使用QtPlatformAbstraction是一个很好的选择。多屏的情况可以通过Wayland实现。有许多跨平台的插件可以使用:EGLFS,LinuxFB,KMS,DirectFB,Wayland。可以通过配置Qt使用这些插件。默认的平台插件是特殊设备。例如,许多板子默认使用eglfs。如果默认的不合适,可以通过修改QT
- linux启动后自动登录并运行自定义图形界面程序
Li Shawn
linux
在《UbuntuCTRL+ALT+F1~F6进入命令模式后不支持中文显示的解决办法》一文中提到linux启动在以后运行一个独占显示器的图形程序的两种办法。1、不启动xserver,使用fb或者directfb图形模式;2、启动xserver不启动桌面系统。第一种方法性能并不一定高,因为支持fb的显卡驱动可能找不到,就是用上显卡驱动了也需要CPU大量参与。另外如果用这种方式可供选择的图形程序开发技术
- linux启动后自动登录并运行自定义图形界面程序
tgis
在《UbuntuCTRL+ALT+F1~F6进入命令模式后不支持中文显示的解决办法》一文中提到linux启动在以后运行一个独占显示器的图形程序的两种办法。1、不启动xserver,使用fb或者directfb图形模式;2、启动xserver不启动桌面系统。第一种方法性能并不一定高,因为支持fb的显卡驱动可能找不到,就是用上显卡驱动了也需要CPU大量参与。另外如果用这种方式可供选择的图形程序开发技术
- glib: 恶梦终结者 - Linux mobile development - 博客频道 - CSDN.NET
mobile
glib: 恶梦终结者 - Linux mobile development - 博客频道 - CSDN.NET
glib: 恶梦终结者
分类:
50.GTK+/DirectFB
2006-02-08 21:58
4328人阅读
评论(7)
收藏
举报
gnome是
- GTK、GDK、GLIB三者的关系 - 阿堂的专栏 - 博客频道 - CSDN.NET
.net
GTK、GDK、GLIB三者的关系 - 阿堂的专栏 - 博客频道 - CSDN.NET
GTK、GDK、GLIB三者的关系
分类:
GTK+/DirectFB学习笔记
2008-09-11 19:48
6297人阅读
评论(6)
收藏
举报
什么是GDK?
&nbs
- GTK+/DirectFB PC模拟运行环境
gtk
GTK+/DirectFB PC模拟运行环境
转载时请注明出处和作者联系方式
作者联系方式:李先静 <xianjimli at hotmail dot com>
GTK+/DirectFB不但可以运行在frambebuffer上,而且可以运行在其它GUI之上,比如像SDL和X11等等,因此在PC上建立模拟运行环境是非常简单的。不过有一个小小麻烦一直困扰着我们,直到最近才解决这
- pygtk手记(1)
gtk
GTK+使用C语言开发,但是其设计者使用面向对象技术。 也提供了C++(gtkmm)、Perl、Ruby、Java和Python(PyGTK)绑定,其他的绑定有Ada、D、Haskell、PHP和所有的.NET编程语言,GTK+ 灵活性也很强,最早应用于X Window System,如今已移植至其他平台,诸如Microsoft Windows、DirectFB,以及Quartz在Mac OS X
- sink相关
in
首先介绍一下Gstreamer支持的几种video sink,v4lsink, v4l2sink:video for linux的输出ximagesink:使用XWindow输出,基本都支持xvimagesink:使用XVideo extension输出,在ubuntu下要装一大堆库才支持sdlvideosink:使用sdl库输出,需要装sdl库dfbvideosink:用DirectFB库输出,
- Cairo
AIR
Cairo是2D图形库(2D Graphic Library),支持多种输出,例如:X window(通过Xlib和XCB),Quartz,Win32,image buffers,PostScript,PDF,SVG file等。处于测试阶段的输出包括OpenGL,BeOS,OS/2,DirectFB。
Cairo的设计目标:在所有的输出媒介上提供一致性的输出。并且能用硬件加速就用硬件加速。
- gtk directfb 交叉编译过程
gtk
直接把编译脚本贴出来吧,仅供参考。
#Packages list
#atk-1.26.0.tar.bz2 expat_2.0.1.orig.tar.gz glib-2.21.5.tar.bz2 &
- [星球大战]阿纳金的背叛
comsci
本来杰迪圣殿的长老是不同意让阿纳金接受训练的.........
但是由于政治原因,长老会妥协了...这给邪恶的力量带来了机会
所以......现代的地球联邦接受了这个教训...绝对不让某些年轻人进入学院
- 看懂它,你就可以任性的玩耍了!
aijuans
JavaScript
javascript作为前端开发的标配技能,如果不掌握好它的三大特点:1.原型 2.作用域 3. 闭包 ,又怎么可以说你学好了这门语言呢?如果标配的技能都没有撑握好,怎么可以任性的玩耍呢?怎么验证自己学好了以上三个基本点呢,我找到一段不错的代码,稍加改动,如果能够读懂它,那么你就可以任性了。
function jClass(b
- Java常用工具包 Jodd
Kai_Ge
javajodd
Jodd 是一个开源的 Java 工具集, 包含一些实用的工具类和小型框架。简单,却很强大! 写道 Jodd = Tools + IoC + MVC + DB + AOP + TX + JSON + HTML < 1.5 Mb
Jodd 被分成众多模块,按需选择,其中
工具类模块有:
jodd-core &nb
- SpringMvc下载
120153216
springMVC
@RequestMapping(value = WebUrlConstant.DOWNLOAD)
public void download(HttpServletRequest request,HttpServletResponse response,String fileName) {
OutputStream os = null;
InputStream is = null;
- Python 标准异常总结
2002wmj
python
Python标准异常总结
AssertionError 断言语句(assert)失败 AttributeError 尝试访问未知的对象属性 EOFError 用户输入文件末尾标志EOF(Ctrl+d) FloatingPointError 浮点计算错误 GeneratorExit generator.close()方法被调用的时候 ImportError 导入模块失
- SQL函数返回临时表结构的数据用于查询
357029540
SQL Server
这两天在做一个查询的SQL,这个SQL的一个条件是通过游标实现另外两张表查询出一个多条数据,这些数据都是INT类型,然后用IN条件进行查询,并且查询这两张表需要通过外部传入参数才能查询出所需数据,于是想到了用SQL函数返回值,并且也这样做了,由于是返回多条数据,所以把查询出来的INT类型值都拼接为了字符串,这时就遇到问题了,在查询SQL中因为条件是INT值,SQL函数的CAST和CONVERST都
- java 时间格式化 | 比较大小| 时区 个人笔记
7454103
javaeclipsetomcatcMyEclipse
个人总结! 不当之处多多包含!
引用 1.0 如何设置 tomcat 的时区:
位置:(catalina.bat---JAVA_OPTS 下面加上)
set JAVA_OPT
- 时间获取Clander的用法
adminjun
Clander时间
/**
* 得到几天前的时间
* @param d
* @param day
* @return
*/
public static Date getDateBefore(Date d,int day){
Calend
- JVM初探与设置
aijuans
java
JVM是Java Virtual Machine(Java虚拟机)的缩写,JVM是一种用于计算设备的规范,它是一个虚构出来的计算机,是通过在实际的计算机上仿真模拟各种计算机功能来实现的。Java虚拟机包括一套字节码指令集、一组寄存器、一个栈、一个垃圾回收堆和一个存储方法域。 JVM屏蔽了与具体操作系统平台相关的信息,使Java程序只需生成在Java虚拟机上运行的目标代码(字节码),就可以在多种平台
- SQL中ON和WHERE的区别
avords
SQL中ON和WHERE的区别
数据库在通过连接两张或多张表来返回记录时,都会生成一张中间的临时表,然后再将这张临时表返回给用户。 www.2cto.com 在使用left jion时,on和where条件的区别如下: 1、 on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。
- 说说自信
houxinyou
工作生活
自信的来源分为两种,一种是源于实力,一种源于头脑.实力是一个综合的评定,有自身的能力,能利用的资源等.比如我想去月亮上,要身体素质过硬,还要有飞船等等一系列的东西.这些都属于实力的一部分.而头脑不同,只要你头脑够简单就可以了!同样要上月亮上,你想,我一跳,1米,我多跳几下,跳个几年,应该就到了!什么?你说我会往下掉?你笨呀你!找个东西踩一下不就行了吗?
无论工作还
- WEBLOGIC事务超时设置
bijian1013
weblogicjta事务超时
系统中统计数据,由于调用统计过程,执行时间超过了weblogic设置的时间,提示如下错误:
统计数据出错!
原因:The transaction is no longer active - status: 'Rolling Back. [Reason=weblogic.transaction.internal
- 两年已过去,再看该如何快速融入新团队
bingyingao
java互联网融入架构新团队
偶得的空闲,翻到了两年前的帖子
该如何快速融入一个新团队,有所感触,就记下来,为下一个两年后的今天做参考。
时隔两年半之后的今天,再来看当初的这个博客,别有一番滋味。而我已经于今年三月份离开了当初所在的团队,加入另外的一个项目组,2011年的这篇博客之后的时光,我很好的融入了那个团队,而直到现在和同事们关系都特别好。大家在短短一年半的时间离一起经历了一
- 【Spark七十七】Spark分析Nginx和Apache的access.log
bit1129
apache
Spark分析Nginx和Apache的access.log,第一个问题是要对Nginx和Apache的access.log文件进行按行解析,按行解析就的方法是正则表达式:
Nginx的access.log解析正则表达式
val PATTERN = """([^ ]*) ([^ ]*) ([^ ]*) (\\[.*\\]) (\&q
- Erlang patch
bookjovi
erlang
Totally five patchs committed to erlang otp, just small patchs.
IMO, erlang really is a interesting programming language, I really like its concurrency feature.
but the functional programming style
- log4j日志路径中加入日期
bro_feng
javalog4j
要用log4j使用记录日志,日志路径有每日的日期,文件大小5M新增文件。
实现方式
log4j:
<appender name="serviceLog"
class="org.apache.log4j.RollingFileAppender">
<param name="Encoding" v
- 读《研磨设计模式》-代码笔记-桥接模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/**
* 个人觉得关于桥接模式的例子,蜡笔和毛笔这个例子是最贴切的:http://www.cnblogs.com/zhenyulu/articles/67016.html
* 笔和颜色是可分离的,蜡笔把两者耦合在一起了:一支蜡笔只有一种
- windows7下SVN和Eclipse插件安装
chenyu19891124
eclipse插件
今天花了一天时间弄SVN和Eclipse插件的安装,今天弄好了。svn插件和Eclipse整合有两种方式,一种是直接下载插件包,二种是通过Eclipse在线更新。由于之前Eclipse版本和svn插件版本有差别,始终是没装上。最后在网上找到了适合的版本。所用的环境系统:windows7JDK:1.7svn插件包版本:1.8.16Eclipse:3.7.2工具下载地址:Eclipse下在地址:htt
- [转帖]工作流引擎设计思路
comsci
设计模式工作应用服务器workflow企业应用
作为国内的同行,我非常希望在流程设计方面和大家交流,刚发现篇好文(那么好的文章,现在才发现,可惜),关于流程设计的一些原理,个人觉得本文站得高,看得远,比俺的文章有深度,转载如下
=================================================================================
自开博以来不断有朋友来探讨工作流引擎该如何
- Linux 查看内存,CPU及硬盘大小的方法
daizj
linuxcpu内存硬盘大小
一、查看CPU信息的命令
[root@R4 ~]# cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id"
model name : Intel(R) Xeon(R) CPU X5450 @ 3.00GHz
model name :
- linux 踢出在线用户
dongwei_6688
linux
两个步骤:
1.用w命令找到要踢出的用户,比如下面:
[root@localhost ~]# w
18:16:55 up 39 days, 8:27, 3 users, load average: 0.03, 0.03, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
- 放手吧,就像不曾拥有过一样
dcj3sjt126com
内容提要:
静悠悠编著的《放手吧就像不曾拥有过一样》集结“全球华语世界最舒缓心灵”的精华故事,触碰生命最深层次的感动,献给全世界亿万读者。《放手吧就像不曾拥有过一样》的作者衷心地祝愿每一位读者都给自己一个重新出发的理由,将那些令你痛苦的、扛起的、背负的,一并都放下吧!把憔悴的面容换做一种清淡的微笑,把沉重的步伐调节成春天五线谱上的音符,让自己踏着轻快的节奏,在人生的海面上悠然漂荡,享受宁静与
- php二进制安全的含义
dcj3sjt126com
PHP
PHP里,有string的概念。
string里,每个字符的大小为byte(与PHP相比,Java的每个字符为Character,是UTF8字符,C语言的每个字符可以在编译时选择)。
byte里,有ASCII代码的字符,例如ABC,123,abc,也有一些特殊字符,例如回车,退格之类的。
特殊字符很多是不能显示的。或者说,他们的显示方式没有标准,例如编码65到哪儿都是字母A,编码97到哪儿都是字符
- Linux下禁用T440s,X240的一体化触摸板(touchpad)
gashero
linuxThinkPad触摸板
自打1月买了Thinkpad T440s就一直很火大,其中最让人恼火的莫过于触摸板。
Thinkpad的经典就包括用了小红点(TrackPoint)。但是小红点只能定位,还是需要鼠标的左右键的。但是自打T440s等开始启用了一体化触摸板,不再有实体的按键了。问题是要是好用也行。
实际使用中,触摸板一堆问题,比如定位有抖动,以及按键时会有飘逸。这就导致了单击经常就
- graph_dfs
hcx2013
Graph
package edu.xidian.graph;
class MyStack {
private final int SIZE = 20;
private int[] st;
private int top;
public MyStack() {
st = new int[SIZE];
top = -1;
}
public void push(i
- Spring4.1新特性——Spring核心部分及其他
jinnianshilongnian
spring 4.1
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- 配置HiveServer2的安全策略之自定义用户名密码验证
liyonghui160com
具体从网上看
http://doc.mapr.com/display/MapR/Using+HiveServer2#UsingHiveServer2-ConfiguringCustomAuthentication
LDAP Authentication using OpenLDAP
Setting
- 一位30多的程序员生涯经验总结
pda158
编程工作生活咨询
1.客户在接触到产品之后,才会真正明白自己的需求。
这是我在我的第一份工作上面学来的。只有当我们给客户展示产品的时候,他们才会意识到哪些是必须的。给出一个功能性原型设计远远比一张长长的文字表格要好。 2.只要有充足的时间,所有安全防御系统都将失败。
安全防御现如今是全世界都在关注的大课题、大挑战。我们必须时时刻刻积极完善它,因为黑客只要有一次成功,就可以彻底打败你。 3.
- 分布式web服务架构的演变
自由的奴隶
linuxWeb应用服务器互联网
最开始,由于某些想法,于是在互联网上搭建了一个网站,这个时候甚至有可能主机都是租借的,但由于这篇文章我们只关注架构的演变历程,因此就假设这个时候已经是托管了一台主机,并且有一定的带宽了,这个时候由于网站具备了一定的特色,吸引了部分人访问,逐渐你发现系统的压力越来越高,响应速度越来越慢,而这个时候比较明显的是数据库和应用互相影响,应用出问题了,数据库也很容易出现问题,而数据库出问题的时候,应用也容易
- 初探Druid连接池之二——慢SQL日志记录
xingsan_zhang
日志连接池druid慢SQL
由于工作原因,这里先不说连接数据库部分的配置,后面会补上,直接进入慢SQL日志记录。
1.applicationContext.xml中增加如下配置:
<bean abstract="true" id="mysql_database" class="com.alibaba.druid.pool.DruidDataSourc