一. 基本安装
官方网站: http://www.lighttpd.net
./configure –prefix=/zhangjianfeng.com/app/lighttpd-1.4.19l
mkdir /zhangjianfeng.com/app/lighttpd-1.4.19/conf/
cp doc/lighttpd.conf /zhangjianfeng.com/app/lighttpd-1.4.19/conf/
手工启动方法: /zhangjianfeng.com/app/lighttpd-1.4.19/sbin/lighttpd -f /zhangjianfeng.com/app/lighttpd-1.4.19/conf/lighttpd.conf
服务控制脚本: 安装包自带了一个脚本, doc/rc.lighttpd, Continue Reading ...
lighttpd安装配置
下载: http://www.lighttpd.net/download
./configure –prefix=/jeffrey/app/lighttpd-1.4.19 && make && make install
mkdir /jeffrey/app/lighttpd-1.4.19/conf/
mkdir /var/log/lighttpd
cp doc/lighttpd.conf /jeffrey/app/lighttpd-1.4.19/conf/
vi /jeffrey/app/lighttpd-1.4.19/conf/lighttpd.conf
server.modules = (
…..
Continue Reading ...
1.从源服务器上导出数据文件到指定目录
exp client/zhangjianfengclient file=/zhangjianfeng/backup/oracle/client.dmp log=/zhangjianfeng/backup/oracle/client.log
2.在源服务器上查看用户默认表空间,以便导入时创建一样的表空间
SQL> select username,default_tablespace from dba_users where username =’CLIENT’;
3.查看用户使用的表空间
SQL> select DISTINCT owner ,tablespace_name from dba_extents where Continue Reading ...
因近期打算对公司应用架构进行调整, 其中的一些思路值得借鉴.
以下为转载内容:
一、LiveJournal发展历程
Continue Reading ...
载自itpub xbxing
很好,很全面的一篇关于oracle sql调优的文章。文章非常长,大家可一有空就看一点。
1. 选用适合的ORACLE优化器
ORACLE的优化器共有3种:
a. RULE (基于规则) b. COST (基于成本) c. CHOOSE (选择性)
设置缺省的优化器,可以通过对init.ora文件中OPTIMIZER_MODE参数的各种声明,如RULE,COST,CHOOSE,ALL_ROWS,FIRST_ROWS . Continue Reading ...
access.log记录格式如下
remotehost rfc931 authuser [date] “method URL” status bytes [Result Codes]:[Hierarchy Codes]
如:
221.222.213.64 - - [15/Nov/2006:00:00:03 +0800] “GET http://bbs.ci123.com/sample.jpg HTTP/1.1″ 200 240673 TCP_MEM_HIT:NONE
可以通过脚本查看一些统计信息,如各种反应状态所占的比例,通常较好的情况下HIT所占的比例(应该就是所谓的命中率)可以在70%~80%
cat Continue Reading ...
mysql主从服务器的配置笔记
注: 从MySQL从服务器的版本不能小于主服务器的版本
一. MySQL主服务器配置
1.建立用户
grant replication slave on *.* to repluser1@192.168.8.126 identified by ‘111111′;
# grant replication slave on *.* to ‘用户名’@'主机’ identified by ‘密码’;
# 可在B Slave上做连接测试: mysql -h 192.168.8.126 -u test Continue Reading ...
作者:tyc00n
原文url: http://bbs.chinaunix.net/viewthread.php?tid=579846
MySQL配置文件
MySQL发布的最新产品实际上超出了Red Hat Enterprise Linux所携带的版本。但是,稳定性和开放源代码可是很重要的因素,因此在操作系统上使用较早MySQL版本是有道理的。
Continue Reading ...