随笔分类 -  Web

摘要:1. 安装测试apache包1.1 安装apache包sudo apt-get install apache21.2. 启动并测试apache环境sudo /etc/init.d/apache2 start访问http://localhost,可以看到页面有“It works!”的提示。2. 安装测试php相关包2.1 安装php相关包sudo apt-get install php5-cli php5-dev libapache2-mod-php52.2. 测试apache+php环境,在/var/www/目录下创建一个test.php文件,内容如下:<?php phpinfo(); 阅读全文
posted @ 2011-09-08 21:57 程序员天下 阅读(178) 评论(0) 推荐(0) 编辑
摘要:1. 在“WorkBench”右键 -> “Add” -> “Non-Test Elements” -> “HTTP Proxy Server”;2. 在“HTTP Proxy Server”窗口的的“Test plan content” -> “Target controller:”选项中选择“Use Recording Controller”;3. 在“HTTP Proxy Server”窗口的的“Test plan content” -> “Grouping:”选项中选择“Do not group samplers”;4. 在“Test Plan”下新建一个 阅读全文
posted @ 2011-04-25 09:10 程序员天下 阅读(714) 评论(0) 推荐(0) 编辑
摘要:通常在用JMemter做压力测试的时候都需要正对已登录的用户来做,这时就需要对创建的测试线程组做一些修改,需要添加一个“HTTP Cookie Manager”的测试组件,这个组件可以通过在 “Thread Group”上右键->Config Element->HTTP Cookie Manager来添加,然后就可以像通常测试步骤一样,先访问登录页,发送登录参数(username/password),登录后就会通过“HTTP Cookie Manager”记住状态,然后就可以继续测试登录后的页面了。 阅读全文
posted @ 2011-04-25 08:50 程序员天下 阅读(262) 评论(0) 推荐(0) 编辑
摘要:OS: CentOS release 5.5Lighttpd: 1.4.28安装sudo yum install lighttpd.i386 lighttpd-fastcgi.i386 lighttpd-mod_mysql_vhost.i386运行检查配置文件lighttpd -t -f lighttpd.conf 启动lighttpd服务lighttpd -D -f lighttpd.conf 结束lighttpd服务CTRL+C 或者使用Linux的系统服务启动停止lighttpd服务/etc/init.d/lighttpd start/stop/restart测试在/srv/www/li 阅读全文
posted @ 2011-03-09 09:12 程序员天下 阅读(392) 评论(0) 推荐(0) 编辑
摘要:最近在看一些关于Web server的东西,找了一些Apache,nginx和lighttpd比较的文章,这里共享一下,以后有时间在总结一下吧。Apache, Varnish, nginx and lighttpd[Benchmark] Apache 2, Cherokee, LigHTTPd, Nginx Benchmarked with Static Files, PHP5 Script and WordPressApache vs Nginx : Web Server Performance DeathmatchBenching Lighttpd vs Nginx (static fil 阅读全文
posted @ 2011-03-09 08:02 程序员天下 阅读(153) 评论(0) 推荐(0) 编辑
摘要:最近公司有个客户报了一个问题,就是运行一段时间后在apache的日志/var/log/httpd/error_log文件中有一条错误信息[Fri Mar 04 10:48:20 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting检查了一下,这是由于并发链接数太多导致的,后来查了一下apache的文档,发现可以通过修改apache的配置文/etc/httpd/conf/httpd.conf中的MaxClients参数来调整。在调整之前首先要检查一下apache运行在哪一种 阅读全文
posted @ 2011-03-07 08:21 程序员天下 阅读(1804) 评论(0) 推荐(0) 编辑
摘要:今天在公司碰到一个问题,就是我们做的web应用程序在通过机器名访问的时候总是登录不了,但是如果改成IP访问就可以访问正常,并且这种情况只出现在IE浏览器上,而Firefox上都没有问题,调查了半天才发现原来应该是IE的一个bug,IE在访问地址中(机器名)包含下划线“_”的网址的时候不能够使用Cookie,所以导致在登录系统之后又被踢出。下面是调研的时候找到的一片文章说明:http://www.enhanceie.com/ie/bugs.asp(IE0005:By-design.Setting cookies fails when the hostname of the server cont 阅读全文
posted @ 2011-01-11 20:15 程序员天下 阅读(212) 评论(0) 推荐(0) 编辑
摘要:1. 第一种方法,编辑${CATALINA_HOME}/conf/context.xml文件,将以下行的注释打开,然后重新启动Tomcat <Manager pathname="" /> 2. 第二种方法,编辑具体的webapp的context.xml文件,这个文件有可能是${CATALINA_HOME}/conf/Catalina/localhost/<myapp>.xml,也有可能是${CATALINA_HOME}/webapps/<myapp>/META-INF/context.xml,编辑这个文件,加入以下行,然后重新启动Tomc 阅读全文
posted @ 2010-10-25 17:08 程序员天下 阅读(190) 评论(0) 推荐(0) 编辑
摘要:最近在使用Tomcat开发一个项目,由于特殊原因不能使用IDE自带的Maven或者Web Server环境,因此每次修改都需要copy文件到生产环境,但是当项目文件太多以后每次copy都会很慢,于是就想到使用Linux软连接的方式,但是我在自己的webapp下创建软链接之后总是不能访问,后来发现如果需要使用软链接的话需要修改webapp的一些设置,具体方法是,在webapp目录下创建META-INF目录,并在其下创建一个context.xml文件,内容如下:<?xml version="1.0" encoding="UTF-8"?><C 阅读全文
posted @ 2010-10-19 14:29 程序员天下 阅读(509) 评论(0) 推荐(0) 编辑
摘要:1. 对于IE,在<object>标签里添加以下子节点 <param name=”WMode” value=”Transparent”></param>2. 对于火狐,在<embed>标签里添加以下属性 <embed wmode=”transparent” ... ></embed>3. 对于使用JavaScript API的情况,添加以下粗体代码来设置参数 var mychart = new FusionCharts("../FusionCharts/Column3D.swf", "mych 阅读全文
posted @ 2010-07-26 08:35 程序员天下 阅读(179) 评论(0) 推荐(0) 编辑
摘要:http://guacamole.sourceforge.net/What is Guacamole?Guacamole 0.1.5, served by an Amazon EC2 instance.Guacamole is an HTML5 + JavaScript (AJAX) viewer for VNC, which makes use of a server-side VNC-to-XML proxy written in Java. The current version is almost as responsive as native VNC and should work 阅读全文
posted @ 2010-06-01 21:38 程序员天下 阅读(302) 评论(0) 推荐(0) 编辑
摘要:The jLayout JavaScript library provides layout algorithms for laying out components. A component is an abstraction; it can be implemented in many ways, for example as items in a HTML5 Canvas drawing or as HTML elements. The jLayout library allows you to focus on drawing the individual components ins 阅读全文
posted @ 2010-05-31 19:56 程序员天下 阅读(370) 评论(0) 推荐(0) 编辑
摘要:1. Open firefox2. Type "about:config" in address3. Type "cache" in filter4. Change "network.http.use-cache" value from true to false5. Access your test page again 阅读全文
posted @ 2010-05-27 09:51 程序员天下 阅读(212) 评论(0) 推荐(0) 编辑
摘要:Do you want an ultra fast web site? Get JSL and optimize your JavaScript loading now!Imagine there's a 4-lane highway between your web browser and the internet itself. This highway is optimize to let pictures, text, andcssfly by. But, when it comes to external scripts, the highway creates a toll 阅读全文
posted @ 2010-05-20 09:54 程序员天下 阅读(460) 评论(0) 推荐(0) 编辑
摘要:25 Best Icon Sets for Application Design 阅读全文
posted @ 2010-05-19 19:34 程序员天下 阅读(105) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示