一. 基本安装
官方网站: 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 ...
1. iscsi-target 服务器端
(1)安装软件
rpm -ivh iscsitarget-0.4.13-14.19.i586.rpm #SLES10SP2
* windows系统下有一个叫 starwind 的软件
(2)修改配置文件
vi /etc/ietd.conf
Target iqn.2001-04.com.example:storage.disk2.sys1.xyz.sda3
Lun 0 Path=/dev/sda3,Type=fileio
Target iqn.2001-04.com.example:storage.disk1.test.file1tb
Lun 0 Continue Reading ...
1.apache安装
./configure –prefix=/usr/local/apr && make && make install
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr/ && make && make install
./configure –prefix=/jeffrey/app/apache-2.0.63 –enable-so –enable-rewrite –enable-dav –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util && make && make install
2. svn
tar jxf Continue Reading ...
Xen虚拟机有两种运行方式:完全虚拟化(full virtualization)和半虚拟化(para virtualization)。
完全虚拟化提供底层物理系统的全部抽象化,且创建一个新的虚拟系统,客户机操作系统可以在里面运行。不需要对客户机操作系统或者应用程序进行修改.
Continue Reading ...
Create a Bonded Interface in SUSE Linux Enterprise Server 10 SP1
1. /etc/modprobe.conf 中添加:
alias bond0 bonding
options bond0 mode=1 miimon=100 use_carrier=0
说明:
mode 表示bonding 的模式,一共有0~6共7种模式,缺省情况下为0。
0: 负载均衡之一,按照顺序顺次将IP包发至相应的网络接口。可实现负载均衡和冗余
Continue Reading ...
系统: SUSE10
rpm -ivh /media/cdrom/suse/i586/tftp-0.42-8.2.i586.rpm
vi /etc/xinetd.d/tftp
# disable = yes
/etc/init.d/xinetd restart
mkdir /tftpboot
touch c2950_20080202
chmod 777 c2950_20080202 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 ...
作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=630
squid代理网关笔记
++最简单办法开启代理服务:
editting /usr/local/squid/etc/squid.conf,locate “http_access deny all”and change to “http_access allow all”
++WEB方式简单管理
/usr/lib/squid/cachemgr.cgi下有个脚本cachemgr.cgi(Default path on redhat Continue Reading ...
作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=616
MSA20盘阵,250G x 7,做硬件RAID5, 再做LVM
看本地硬盘信息
[root@backup root]# fdisk -l
Disk /dev/cciss/c0d0: 1500.1 GB, 1500153831424 bytes
255 heads, 63 sectors/track, 182383 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/cciss/c0d0 doesn’t contain a valid partition Continue Reading ...
作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=588
freebsd 6.2 安装配置笔记
#最小化安装后….
sysinstall,改口令,时区,src-sys,ports,man,Xorg, bash3,cvsup-without-gui,lynx,linux,unzip
并设置网卡,sshd服务
++开启sshd服务
vi /etc/ssh/sshd_config ,加入以下行
PermitRootLogin yes
退出后重启服务即可 /etc/rc.d/sshd restart
++csh改bash
Continue Reading ...