2017年3月17日

ngnix +tomcat7 简单配置

摘要: 1.下载tomcat7 修改conf 文件夹下的server.xml文件 2.启动两个tomcat 服务 3.配置nginx的conf 文件夹下 的 Nginx.conf文件 为了看效果可以修改tomcat 的index.jsp文件 最后启动 Nginx 访问localhost:81 ,最后可以看见 阅读全文

posted @ 2017-03-17 17:25 悄悄的来,匆匆的走 阅读(255) 评论(0) 推荐(0) 编辑

sendfile Linux函数

摘要: 现在流行的 web 服务器里面都提供sendfile 选项用来提高服务器性能,那到底 sendfile 是什么,怎么影响性能的呢? sendfile 实际上是 Linux 2.0+ 以后的推出的一个系统调用,web 服务器可以通过调整自身的配置来决定是否利用 sendfile 这个系统调用。 先来看 阅读全文

posted @ 2017-03-17 16:27 悄悄的来,匆匆的走 阅读(436) 评论(0) 推荐(0) 编辑

导航