info

Nginx + php-fpm 开启 PATH_INFO 模式

本秂侑毒 提交于 2019-12-03 10:47:31
很多框架默认路由都是 PATH_INFO 模式,比如默认在 Apache 并且没有 rewrite 时,CodeIgniter 一般可以这样访问 /index.php/controller/action ,那么 nginx 和 php-fpm 如何设置支持 PATH_INFO 模式呢? php.ini 中一个与 PATH_INFO 有关的设置是 cgi.fix_path 默认为 1,我们将其设置为 0。 php.ini 设置: cgi.fix_path = 0 接下来是 nginx 配置: 01 location ~ \.php($|/) { 02 03 # 下面这一行设置 $fastcgi_script_name 和 $fastcgi_path_info 的值,具体请看 nginx 文档 04 fastcgi_split_path_info ^(.+\.php)(/.+)$; 05 06 # 下面这行也可以为 fastcgi_pass unix:/var/run/php-fpm.sock 看你的 fpm 设置了 07 fastcgi_pass 127.0.0.1:9000; 08 fastcgi_index index.php; 09 include fastcgi_params; 10 11 # 下面这行不能少,默认 fastcgi_params 里面并没有 SCRIPT

进程_Linux内核设计与实现笔记

断了今生、忘了曾经 提交于 2019-12-03 10:44:58
进程 进程是处于执行期的程序以及相关资源的总称,是正在执行的代码的实时结果. 进程部分位于Kernel的PM层.进程是Unix操作系统的抽象概念中最基本的一种,操作系统的存在就是为了运行用户程序,所以进程管理是所有操作系统的心脏所在. 程序本身不是进程,进程不局限于可执行程序代码段(text section),完全可能出现多个不同的进程,执行的是同一个程序, 多个进程之间还可以共享一些资源,如打开的文件,地址空间等. 线程 执行线程简称线程,是进程中的活动对象,每个线程都具有 独立的程序计数器 , 进程栈 ,和 一组进程寄存器 . 调度对象是进程中的活动对象 线程 ,而不是进程本身,通常一个进程包含多个线程,即 多线程序 . 虚拟处理器与虚拟内存 进程提供两种机制, 虚拟处理器 和 虚拟内存 ,实际可能是许多进程分享同一个处理器,虚拟处理器会让进程觉得自己在独享处理器,虚拟内存同样,会让进程觉得自己拥有整个系统的内存资源. 包含在同一个进程中的线程之间可以共享虚拟内存.但是每个线程都拥有各自的虚拟处理器. 从内核的角度说,没有线程的概念,对Linux来说线程只不过是进程之间共享资源的一种手段. 创建进程 使用fork函数创建进程 ... NAME fork - create a child process SYNOPSIS #include <sys/types.h>

VWG KeyUp 事件处理实验记录

别说谁变了你拦得住时间么 提交于 2019-12-03 10:44:11
2016-07-23 00:11:49,721 [11] INFO IBeam.MDAA.VWGUI.VWGHepler [(null)] - KeyUP:Control:False,Shift:False,Alt:True,Key:Space 2016-07-23 00:11:49,721 [11] INFO IBeam.MDAA.VWGUI.VWGHepler [(null)] - Gizmox.WebGUI.Forms.TextBox结束 ControlToControl_KeyDown 2016-07-23 00:11:53,902 [14] INFO IBeam.MDAA.VWGUI.VWGHepler [(null)] - Gizmox.WebGUI.Forms.TextBox开始 ControlToControl_KeyDown 2016-07-23 00:11:53,902 [14] INFO IBeam.MDAA.VWGUI.VWGHepler [(null)] - KeyUP:Control:False,Shift:False,Alt:True,Key:Menu 2016-07-23 00:11:53,902 [14] INFO IBeam.MDAA.VWGUI.VWGHepler [(null)] - Gizmox.WebGUI.Forms.TextBox结束

Spring integration bootstrap - intellij in debug works, packaged jar does not

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run same project as packaged jar file and as debug config from intellij. Intellij works fine, but in packaged .jar, it seems integration fails to initialize some channels, leading to Dispatcher has no subscribers for channel 'unknown.channel.name'. This is DEBUG output from working case (you can see that Starting beans in phase 1073741823 is after everything is configured): INFO [2018-02-08 11:54:19,450] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@3fa50a24{/,null,AVAILABLE} INFO

How to display info text in iphone application settings?

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I wonder if it is possible to have a button in application settings just like the facebook app has: As you see there is an Info entry. I know I can achieve this with the multi value specifier but it requires some values and not just text: So when you tap on Info it opens a view that has just a long title element. Any ideas how to achieve this? 回答1: Ok, let's look to below images: This is a Root.plist in Setting.bundle. Here are Item5 - Group called 'Title' and Item6 - button called 'Hello'. Notice to the record Filename and value

java.lang.IncompatibleClassChangeError: Implementing class Mongo

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am not able to figure out why I get this error. I tried cleaning up libs that are redundant and so forth. I get the error when I try to do: mongo = new Mongo(host, port); The funny thing is that I can run any unit tests I made from IDE (IntelliJ), but when I try to run it through Tomcat I get this: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com. sfatandrei.db.MongoManager]: Constructor threw exception; nested exception is java.lang.IncompatibleCla ssChangeError: Implementing class at

Kafka + Zookeeper: Connection to node -1 could not be established. Broker may not be available

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am running in my locahost both Zookeeper and Kafka (1 instance each). I create succesfully a topic from kafka: ./bin/kafka-topics.sh --zookeeper localhost:2181 --create --replication-factor 1 --partitions 1 --topic Hello-Nicola Created topic "Hello-Nicola". Kafka logs show: [2017-12-06 16:00:17,753] INFO [KafkaServer id=0] started (kafka.server.KafkaServer) [2017-12-06 16:03:19,347] INFO [ReplicaFetcherManager on broker 0] Removed fetcher for partitions Hello-Nicola-0 (kafka.server.ReplicaFetcherManager) [2017-12-06 16:03:19,393] INFO

怎样写Linux LCD 驱动程序

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 10:23:14
基本原理 通过 framebuffer ,应用程序用 mmap 把显存映射到应用程序虚拟地址空间,将要显示的数据写入这个内存空间就可以在屏幕上显示出来; 驱动程序分配系统内存作为显存;实现 file_operations 结构中的接口,为应用程序服务;实现 fb_ops 结构中的接口,控制和操作 LDC 控制器; 驱动程序将显存的起始地址和长度传给 LCD 控制器的寄存器 (一般由 fb_set_var 完成) , LDC 控制器会自动的将显存中的数据显示在 LCD 屏上。 写 framebuffer 驱动程序要做什么 简单的讲,framebuffer 驱动的功能就是分配一块内存作显存,然后对 LCD 控制器的寄存器作一些设置。 具体来说: 填充一个 fbinfo 结构 用 reigster_framebuffer (fbinfo*) 将 fbinfo 结构注册到内核 对于 fbinfo 结构,最主要的是它的 fs_ops 成员,需要针对具体设备实现 fs_ops 中的接口 考虑是否使用中断处理 考虑内存访问方式 显卡不自带显存的,分配系统内存作为显存 显卡自带显存的,用 I/O 内存接口进行访问 (request_mem_region / ioremap), 关于如何写驱动的参考资料,在网站 http: /linux-fbdev.sourceforge.net/HOWTO

高通8x25平台display模块总结

北战南征 提交于 2019-12-03 10:22:58
一、 概述 1.1 简介 本文档主要包括 LCD 模块的驱动流程分析、 Framebuffer 相关知识、 Gralloc 等相关内容,以及 LCD 调试的一些经验和相关 bug 的分析和讲解。 1.2 开发环境 Android:4.0 Kernel: Linux3.0 Ubuntu: 需要 10.04 以及之后的版本 Gcc: 4.4.3 toolchain 1.3 硬件平台 Msm8x25,pmic(pm8029) 1.4 操作系统 Android:4.0, Kernel: 3.0 1.5 开发工具 VIM,SourceInsight,JTAG,ADB 二、 LCD 驱动流程分析 2.1 帧缓冲 2.1.1 帧缓冲概念 帧缓冲( framebuffer )是 Linux 系 统为显示设备提供的一个接口,它将显示缓冲区抽象,屏蔽图像硬件的底层差异,允许上层应用程序在图形模式下直接对显示缓冲区进行读写操作。用户不必关系物 理显示缓冲区的具体位置及存放方式,这些都由帧缓冲设备驱动本身来完成。对于帧缓冲设备而言,只要在显示缓冲区中与显示点对应的区域写入颜色值,对应的颜 色会自动在屏幕上显示。帧缓冲为标准字符设备,主设备号为 29 ,对应于 /dev/fbn 。 2.1.2 fb_info 结构体 帧缓冲设备最关键的一个数据结构体是 fb_info 结构,为了便于记忆,简称 FBI

Ant BuildException error building Hadoop 2.2.0

匿名 (未验证) 提交于 2019-12-03 10:10:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've been having trouble to build Hadoop 2.2.0 using Maven 3.1.1, this is part of the output I get (full log at http://pastebin.com/FE6vu46M ): [ INFO ] ------------------------------------------------------------------------ [ INFO ] Reactor Summary : [ INFO ] [ INFO ] Apache Hadoop Main ................................ SUCCESS [ 27.471s ] [ INFO ] Apache Hadoop Project POM ......................... SUCCESS [ 0.936s ] [ INFO ] Apache Hadoop Annotations ......................... SUCCESS [ 3.819s ] [ INFO ] Apache Hadoop Assemblies