服务器的大用户量的承载方案
一、前言
二、编译安装
三、 安装MySQL、memcache
四、 安装Apache、PHP、eAccelerator、php-memcache
五、 安装Squid
六、后记

本日志由 flyinweb 于 2009-08-25 10:59:17 发表到 Linux 中,目前已经被浏览 145 次,评论 0 次;

作者添加了以下标签: nginxapachemysqlphpmemcachedSquid

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

MCrypt
MCrypt is a replacement for the old crypt() package and crypt(1) command, with extensions. It allows developers to use a wide range of encryption functions, without making drastic changes to their code. It allows users to encrypt files or data streams without having to be cryptographers. Above all, it allows you to have some really neat code on your machine. :)

The companion to MCrypt is Libmcrypt, which contains the actual encryption functions themselves, and provides a standardized mechanism for accessing them.


Mhash:

Mhash is a free (under GNU Lesser GPL) library which provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures.
The HMAC support implements the basics for message authentication, following RFC 2104. In the later versions some key generation algorithms, which use hash algorithms, have been added. The manpage for mhash is mhash.3.html.

At the time of writing this, the library supports the algorithms:

SHA1, SHA160, SHA192, SHA224, SHA384, SHA512, HAVAL128, HAVAL160, HAVAL192, HAVAL224, HAVAL256, RIPEMD128, RIPEMD256, RIPEMD320, MD4, MD5, TIGER, TIGER128, TIGER160, ALDER32, CRC32, CRC32b, WHIRLPOOL, GOST, SNEFRU128, SNEFRU256

本日志由 flyinweb 于 2009-08-20 19:49:30 发表到 Linux 中,目前已经被浏览 305 次,评论 0 次;

作者添加了以下标签: PHPmcryptmhash

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

  在生产应用中,某台“Nginx+PHP+MySQL”接口数据服务器,扮演的角色十分重要,如果服务器硬件或Nginx、MySQL发生故障,而短时间内无法恢复,后果将非常严重。为了避免单点故障,我设计了此套方案,编写了failover.sh脚本,实现了双机互备、全自动切换,故障转移时间只需几十秒。

本日志由 flyinweb 于 2009-07-04 08:11:13 发表到 Linux 中,目前已经被浏览 136 次,评论 0 次;

作者添加了以下标签: LinuxNginxPHPMySQL架构

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文


  前言:本文是我撰写的关于搭建“Nginx + PHP(FastCGI)”Web服务器的第5篇文章。本系列文章作为国内最早详细介绍 Nginx + PHP 安装、配置、使用的资料之一,为推动 Nginx 在国内的发展产生了积极的作用。这是一篇关于Nginx 0.7.x系列版本的文章,安装、配置方式与第4篇文章相差不大,但增加了MySQL安装配置的信息、PHP 5.2.10 的 php-fpm 补丁。Nginx 0.7.x系列版本虽然为开发版,但在很多大型网站的生产环境中已经使用。

本日志由 flyinweb 于 2009-07-04 07:28:55 发表到 Linux 中,目前已经被浏览 704 次,评论 0 次;

作者添加了以下标签: linux性能调优NginxPHP

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

  操作系统:Linux

  安装及配置eaccelerator-0.9.5加速PHP-5.2.1

本日志由 flyinweb 于 2009-07-04 07:09:11 发表到 WEB应用开发 中,目前已经被浏览 133 次,评论 0 次;

作者添加了以下标签: phpeacceleratorZend

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

LAMP 系统性能调优,第 1 部分: 理解 LAMP 架构
LAMP 系统的工作原理、性能度量方法及底层操作系统的调优方法

LAMP 系统性能调优,第 2 部分: 优化 Apache 和 PHP
是什么降低了 Apache 的速度,如何使 PHP 发挥最大效力

LAMP 系统性能调优,第 3 部分: MySQL 服务器调优
利用服务器的几个调优技巧,让 MySQL 服务器飞速运行

本日志由 flyinweb 于 2009-07-02 08:59:33 发表到 Linux 中,目前已经被浏览 190 次,评论 0 次;

作者添加了以下标签: Linuxapachemysqlphp性能调优LAMP

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

How to implement COMET with PHP

Comet is a programming technique that enables web servers to send data to the client without having any need for the client to request it. This technique will produce more responsive applications than classic AJAX. In classic AJAX applications, web browser (client) cannot be notified in real time that the server data model has changed. The user must create a request (for example by clicking on a link) or a periodic AJAX request must happen in order to get new data fro the server.

I will now explain how to implement Comet with PHP programming language. I will demonstrate it on two demos which uses two techniques: the first one is based on hidden ”<iframe>” and the second one is based on classic AJAX non-returning request. The first demo will simply show the server date in real time on the clients and the second demo will display a mini-chat.

本日志由 flyinweb 于 2009-06-30 10:50:06 发表到 WEB应用开发 中,目前已经被浏览 185 次,评论 0 次;

作者添加了以下标签: PHPCOMET

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文