本文是简单介绍基于天翼云的Linux环境下,按照apache, php, mysql官网源码编译手动安装的过程。 如果你期望通过已有的一些安装包快速安装的话,可以忽略本文。 第1部分 Apache 安装Apache 2.4.x。 选择官网下载源码编译的方法安装: Step1: 从官网提供的link下载httpd源码,并解压 wget http://archive.apache.org/dist/httpd/httpd-2.4.7.tar.gz gz ...
阅读全文由这个错误来解释java class file内部结构。 java.lang.UnsupportedClassVersionError: HelloWorld : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) 这 ...
阅读全文ant官方文档:http://ant.apache.org/manual/index.html filter: Sets a token filter for this project, or reads multiple token filters from a specified file and sets these as filters. Token filters are used by all tasks that perform file-copying op ...
阅读全文Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time R ...
阅读全文Between the quotation marks of export PS1=” “, you can add the following lines to customize your Terminal prompt: \d – Current date \t – Current time \h – Host name \# – Command number \u – User ...
阅读全文1G内存机器一个简单的配置优化: httpd.conf: timeout 30 KeepAlive Off StartServers 5 MinSpareServers 5 MaxSpareServers 10 ServerLimit 1024 MaxClients &nb ...
阅读全文php里base64_decode可以将base64字符串解析成图片。代码如下: $base64ImgStr = "................."; $imgData = base64_decode($base64ImgStr); $imgFile = __DIR__."/testImg.png"; file_put_contents($imgFile, $imgData); ...
阅读全文echo(), print(),print_r()区别在于 echo 可以输出多个变量值,而print只有一个变量,做为一个字符串输出. echo 没有返回值, print有返回值1. print不能输出数组和对象。print_r 可以输出stirng、int、float、array、object等,输出array时会用结构表示,print_r输出成功时返回true; 而且print_r可以通过print_r($str,true)来使print_r不输出而返回 p ...
阅读全文Maven是一个非常强大的软件项目管理工具(注意是软件项目,所以不只是java项目哦,也可以其他语言的软件项目)。可以用它来管理项目的建立,发布,文档等,它可以贯穿项目的整个生命周期。 本文只是为了快速浏览Maven的官方文档,纯粹新手入门。如需深入Maven,需要更多的实战。 官网:http://maven.apache.org/ 官方文档:http://maven.apache.org/guides/index.html 官文主要提供了 1)基本使用入门(下载,安装, ...
阅读全文在Mac系统中,默认输入法可以通过系统偏好来设置。设置后并不能立刻有效,需要重启。 方式如下: 1、打开系统偏好设置。 2、打开“键盘”——“输入源”选项卡 3、左边是现在系统中已经安装的输入法,选择想要设置为默认的输入法,以“搜狗拼音”为例,选中搜狗拼音,勾选下方“自动切换到文稿的输入源”即可设置好默认输入法了。 ...
阅读全文Linux常用命令 rm -rf foldername grep “searchStr” folder grep “searchStr” file grep -i “searchStr” file //case-insensitive grep -v “searchStr” file //print lines not including the “searc ...
阅读全文这里是PHP String基本函数。不同于mbstring. (multibyte Character) 多字节字符串的处理函数需要enable mbstring,多字节字符串函数不是默认安装的。 PHP Manual 函数参考 文本处理 字符串 字符串函数 addcslashes addslashes bin2hex chop chr chunk_split convert_cyr_string convert_uudeco ...
阅读全文参阅: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html 截屏: ...
阅读全文本文用来收集一些当前流行的JS UI框架以及相关的比较文章。这些比较主要从以下几个方面着手: 浏览器支持(各大浏览器支持的版本) 文件大小 许可证信息 源文件信息 支持的具体特性功能 webSocket Data retrieval数据获取方式的支持(XMLHttpRequest, Server push, other) Drag and Drop 视觉效果(如一些动画,渐变,场景变化效果) Grid Rich Text ed ...
阅读全文百度和google的高级搜索指令: 双引号: 搜索和查询词完全匹配的页面。谷歌和百度都支持。 减号: 是排除减号后面的收索结果。百度和谷歌都支持。 星号: 通配符,可以代表任何文字。百度不支持。 inurl: 是用在查询词语出现在url中的页面。谷歌和百度都支持。 inanchor: 返回导入链接锚文字中包含查询词语。百度不支持。 intitle: 是返回title中包含查询词的页面。百度和谷歌都支持。 ...
阅读全文最近在解决一个客户的Escalation时,花了较多的时间解决了server端的问题,并加了更详细的log. 原先问题解决后,发现在客户的环境下出现了新的问题。没有response返回到client。server端抛出如下错误: java.io.IOException: java.net.SocketException: Connection reset at java.net.SocketOutputStream.socketWrite(SocketOutputStream.j ...
阅读全文apache的日志管理和配置。 LogFormat指令的语法 Description: Describes a format for use in a log file Syntax: LogFormat format|nickname [nickname] Default: LogFormat "%h %l %u %t \"%r\" %>s %b" Context: server config, virtual host S ...
阅读全文URLs中的id位置最佳实践: http://www.site.com/id/slug-title http://www.site.com/slug-title-id 第一个为最佳实践,如stackoverflow网站。原因是有时候url过长会被截断,这时第一种情况下仍然能拿到id。 参考文档: http://webmasters.stackexchange.com/questions/17002/why-do-stack-overflow-question-u ...
阅读全文scp安装的命令以及log #yum install openssh-clients Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.cn99.com * extras: mirrors.cn99.com * updates: mirrors.cn99.com base ...
阅读全文cookie 是存储于访问者的计算机中的变量。每当同一台计算机通过浏览器请求某个页面时,就会发送这个 cookie。可以使用 JavaScript 来创建和取回 cookie 的值。这是变量序列化和反序列化的过程。 Cookie的格式(属性): cookieName=cookieValue;expires=expiresDate;path=URLpath;domain=siteDomain//cookie Cookie常用函数: 1 ...
阅读全文