• RSS订阅
  • 交换链接
  • WAP首页
  • 首页

Jeffrey’s Blog

Web&P2P架构及优化


Archive for the '应用服务' Category

Page 6 of 9« First...«45678»...Last »

apache的一些设定

March 31st, 2006

apache技巧1). 关闭无默认主页文件时仍出现目录结构在目录权限设定中设置 Options None 2). 让apache不回显版本等信息 #ServerSignature On ServerSignature Off 3). 设置主机别名 ServerAlias zhangjianfeng.com www.zhangjianfeng.com4)RewriteEngine onRewriteRule   .*  http://www.chinaunix.net#写到虚拟主机配置里

主动FTP vs. 被动FTP 权威解释

March 31st, 2006

主动FTP vs. 被动FTP 权威解释
原文地址(E文) http://slacksite.com/other/ftp.html
主动FTP与被动FTP-权威解释目录
开场白基础主动FTP主动FTP的例子被动FTP被动FTP的例子总结参考资料附录 1: 配置常见FTP服务器开场白处理防火墙和其他网络连接问题时最常见的一个难题是主动FTP与被动FTP的区别以及如何完美地支持它们。幸运地是,本文能够帮助你清除在防火墙环境中如何支持FTP这个问题上的一些混乱。本 文也许不像题目声称的那样是一个权威解释,但我已经听到了很多好的反馈意见,也看到了本文在许多地方被引用,知道了很多人都认为它很有用。虽然我一直在找 寻改进的方法,但如果你发现某个地方讲的不够清楚,需要更多的解释,请告诉我!最近的修改是增加了主动FTP和被动FTP会话中命令的例子。这些会话的例 子应该对更好地理解问题有所帮助。例子中还提供了非常棒的图例来解释FTP会话过程的步骤。现在,正题开始了…基础FTP是仅基于TCP的服务,不支持UDP。 与众不同的是FTP使用2个端口,一个数据端口和一个命令端口(也可叫做控制端口)。通常来说这两个端口是21-命令端口和20-数据端口。但当我们发现根据(FTP工作)方式的不同数据端口并不总是20时,混乱产生了。主动FTP主动方式的FTP是这样的:客户端从一个任意的非特权端口N(N>;1024)连接到FTP服务器的命令端口,也就是21端口。然后客户端开始监听 端口N+1,并发送FTP命令“port N+1”到FTP服务器。接着服务器会从它自己的数据端口(20)连接到客户端指定的数据端口(N+1)。针对FTP服务器前面的防火墙来说,必须允许以下通讯才能支持主动方式FTP:任何端口到FTP服务器的21端口 (客户端初始化的连接 SFTP服务器的21端口到大于1024的端口(服务器响应客户端的控制端口 S->C)FTP服务器的20端口到大于1024的端口(服务器端初始化数据连接到客户端的数据端口 S->C)大于1024端口到FTP服务器的20端口(客户端发送ACK响应到服务器的数据端口 S画出来的话,连接过程大概是下图的样子:
阅读全文——共5564字

apache日志解释

March 31st, 2006

apache日志解释
作者:作者Apche日志系列(1):访问日志
想要知道什么人在什么时候浏览了网站的哪些内容吗?查看Apache的访问日志就可以知道。访问日志是Apache的标准日志,本文详细解释了访问日志的内容以及相关选项的配置。
一、访问日志的格式
阅读全文——共12935字

Apache服务器配置全攻略

March 31st, 2006

Apache服务器的设置文件位于/usr/local/apache/conf/目录下,传统上使用三个配置文件httpd.conf,access.conf和srm.conf,来配置Apache服务器的行为。
httpd.conf提供了最基本的服务器配置,是对守护程序httpd如何运行的技术描述;srm.conf是服务器的资源映 射文件,告诉服务器各种文件的MIME类型,以及如何支持这些文件;access.conf用于配置服务器的访问权限,控制不同用户和计算机的访问限制; 这三个配置文件控制着服务器的各个方面的特性,因此为了正常运行服务器便需要设置好这三个文件。
除了这三个设置文件之外,Apache还使用mime.types文件用于标识不同文件
阅读全文——共23634字

LVS的配置详解配置

March 31st, 2006

Red Hat Cluster Manager安装操作系统,选择组件advance server,安装LVS部分。两台主机,主机名为haha和hehe主机haha的本地ip地址为net0:192.168.2.11,net1:192.168.2.14主机hehe的本地ip地址为net0:192.168.2.12,net1:192.168.2.16(主机网络连线只能用直连线进行连接,不能用交叉线连接,否则双机不能进行监控)修改/etc/hosts文件,封掉localhost行的内容,写入本地主机、对方主机和虚拟主机相应的ip地址和主机名:(两台主机配置相同)192.168.2.11 haha192.168.2.12 hehe192.168.2.13 xixi进入/etc/sysconfig/rawdevices文件,增加两行内容:(两台主机设置相同)/dev/raw/raw1 /dev/sdb1/dev/raw/raw2 /dev/sdb2以上两行是LVS需要的两个裸设备作为系统监控使用,每个裸设备的空间不能小于10M。当然需要fdisk建立两个两个相应的设备。然后从起主机,进入/sbin下,./cluconfig进行cluster的配置:Red Hat Cluster Manager Configuration Utility (running on haha) –haha为本地主机名Enter cluster name [Red Hat Cluster Manager]:xixi –xixi为虚拟主机名Enter IP address for cluster alias [NONE]:192.168.2.13 –地址为虚拟地址——————————–Information for Cluster Member 0——————————–Enter name of cluster member [haha]: –本地成员,回车即可Enter number of heartbeat channels (minimum = 1) [1]: 2 –两块网卡心跳线(也可串口心跳)Channel type: net or serial [net]: –第一块网卡做心跳Enter hostname of the cluster member on heartbeat channel 0 [haha]: –心跳线成员名称Channel type: net or serial [net]: –第二块网卡做心跳线Enter hostname of the cluster member on heartbeat channel 1:hehe –另外一个成员名称Information about Quorum PartitionsEnter Primary Quorum Partition [/dev/raw/raw1]:Enter Shadow Quorum Partition [/dev/raw/raw2]:Information About the Power Switch That Power Cycles Member ‘haha’Choose one of the following power switches:o NONEo RPS10o BAYTECHo APCSERIALo APCMASTERo WTI_NPSo SW_WATCHDOGPower switch [NONE]:——————————–Information for Cluster Member 1——————————–Enter name of cluster member:hehe –对方成员名Enter hostname of the cluster member on heartbeat channel 0: heheEnter hostname of the cluster member on heartbeat channel 1: hahaInformation about Quorum PartitionsEnter Primary Quorum Partition [/dev/raw/raw1]:Enter Shadow Quorum Partition [/dev/raw/raw2]:Information About the Power Switch That Power Cycles Member ‘hehe’Choose one of the following power switches:o NONEo RPS10o BAYTECHo APCSERIALo APCMASTERo WTI_NPSo SW_WATCHDOGPower switch [NONE]:Save the cluster member information? yes/no [yes]: –对配置信息进行保存Save the cluster member information? yes/no [yes]:Writing to configuration file…doneConfiguration information has been saved to /etc/cluster.conf.—————————-Setting up Quorum Partitions—————————-Running cludiskutil -I to initialize the quorum partitions: doneSaving configuration information to quorum partitions: doneDo you wish to allow remote monitoring of the cluster? yes/no [yes]: –是否允许远程主机进行cluster监视访问Configuration on this member is complete.To configure the next member, invoke the following command on that system:# /sbin/cluconfig –init=/dev/raw/raw1Refer to the Red Hat Cluster Manager Installation and Administration Guidefor details.本地主机配置完成进入对方主机的/sbin目录,执行cluconfig –init=/dev/raw/raw1显示信息如下:Information about Channel 0/sbin/cluconfig: [: haha: unary operator expectedLooking for host haha (may take a few seconds)…Information about Channel 1/sbin/cluconfig: [: hehe: unary operator expectedLooking for host hehe (may take a few seconds)…Information about Quorum PartitionsInformation About the Power Switch That Power Cycles Member ‘haha’Note: Operating a cluster without a remote power switch does not prmaximum data integrity guarantees.——————————–Information for Cluster Member 1——————————–/sbin/cluconfig: [: hehe: unary operator expectedLooking for host hehe (may take a few seconds)…Information about Channel 0/sbin/cluconfig: [: hehe: unary operator expectedLooking for host hehe (may take a few seconds)…Information about Channel 1/sbin/cluconfig: [: haha: unary operator expectedLooking for host haha (may take a few seconds)…Hostname does not map to any interface. Keep your selection? [yes]:Information about Quorum PartitionsInformation About the Power Switch That Power Cycles Member ‘hehe’Note: Operating a cluster without a remote power switch does not providemaximum data integrity guarantees.Press <Return> to continue. –按回车继续Cluster name: xixiCluster alias IP address: 192.168.2.13——————–Member 0 Information——————–Name: hahaPrimary quorum partition: /dev/raw/raw1Shadow quorum partition: /dev/raw/raw2Heartbeat channels: 2Channel type: net, Name: hahaChannel type: net, Name: hehePower switch IP address or hostname: hahaIdentifier on power controller for member haha: un——————–Member 1 Information——————–Name: hehePrimary quorum partition: /dev/raw/raw1Shadow quorum partition: /dev/raw/raw2Heartbeat channels: 2Channel type: net, Name: heheChannel type: net, Name: hahaPower switch IP address or hostname: heheIdentifier on power controller for member hehe: un————————–Power Switch 0 Information————————–Power switch IP address or hostname: hahaType: NONELogin or port: unusedPassword: unused————————–Power Switch 1 Information————————–Power switch IP address or hostname: heheType: NONELogin or port: unusedPassword: unusedSave the cluster member information? yes/no [yes]: –是否进行保存Writing to configuration file…doneConfiguration information has been saved to /etc/cluster.conf.Saving configuration information to quorum partitions: doneDo you wish to allow remote monitoring of the cluster? yes/no [yes]:—————————————————————-Configuration on this member is complete.Execute “/sbin/service cluster start” to start the cluster software.这时,双机软件基本配置已经完成,在两台主机上分别运行service cluster start启动服务通过cluadmin进行管理,如下所示:cluadmin> cluster statusCluster Status Monitor (xixi) 11:16:11Cluster alias: xixi========================= M e m b e r S t a t u s ==========================Member Status Node Id Power Switch————– ———- ———- ————haha Up 0 Goodhehe Up 1 Good========================= H e a r t b e a t S t a t u s ====================Name Type Status—————————— ———- ————haha <–> hehe network ONLINE========================= S e r v i c e S t a t u s ========================Last Monitor RestartService Status Owner Transition Interval Count————– ——– ————– —————- ——– ——-cluadmin>通过状态可以看到双机状态正常,但未加入任何服务,通过help可以看到帮助:cluadmin> helpcluster service apropos clear help version exit quitcluadmin> service add –加入一个服务Service name: disk –服务名称Preferred member [None]:haha –首选成员User script (e.g., /usr/foo/script or None) [None]: –用户脚本Status check interval [0]: –状态检测间隔Do you want to add an IP address to the service (yes/no/?) [no]:Do you want to add a disk device to the service (yes/no/?) [no]: yes –加disk设备Disk Device InformationDevice special file (e.g., /dev/sdb4): /dev/sdb3 –设备名称Filesystem type (e.g., ext2, or ext3): ext2 –文件系统类型Mount point (e.g., /usr/mnt/service1) [None]: /mnt –mount点Mount options (e.g., rw,nosuid,sync):Forced unmount support (yes/no/?) [yes]: –是否强制unmountWould you like to allow NFS access to this filesystem (yes/no/?) [no]:Would you like to share to Windows clients (yes/no/?) [no]:Do you want to (a)dd, (m)odify, (d)elete or (s)how DEVICES, or are you (f)inished adding DEVICES [f]:Add disk service as shown? (yes/no/?) yes –是否加入服务0) haha1) hehec) cancelChoose member to start service on: 0 –在首选哪台主机启动Added disk. –加入服务成功

用rsync实现网站镜像和备份

March 31st, 2006

简介对于选择Linux 作为应用平台的的中小型企业或网站来说,往往面临如何实现数据远程备份或者网站镜象的问题,虽然有商业化的备份和镜象产品可供选择,但这些产品的价格往往过于昂贵。因此如何利用自由软件高效实现远程备份和网站镜象就成为一个值得讨论的话题。
通过网络进行远程数据备份或者网站镜象的最简单的方法就是使用wget,但是这种方式每次都需要将所有数据都重新在网络上传输一遍,而不考虑哪些文件是经过更新的,因此效率非常低下。尤其在需要备份的数据量很大的时候,往往需要花费数个小时来在网络上进行数据传输。
因此这里就介绍一种高效的网络远程备份和镜象工具-rsync,它可以满足绝大多数要求不是特别严格的备份需求。
阅读全文——共14724字

在编译jabberd时出现不能找到mysql client libraries

March 31st, 2006

1. 在编译jabberd时出现不能找到mysql client libraries:具体内容:checking for mysql_init in -lmysqlclient… noconfigure: error: MySQL client libraries not foundAS4-up1环境,mysql采用自带rpm包安装.解决办法:在./configure前运行
QUOTE:
export LDFLAGS=”-L/usr/local/lib -L/usr/lib/mysql”
(此处mysql路径根据安装情况修改)2. sm died错误/usr/local/bin/jabberdERROR: sm died.  Shutting down server.解决办法是运行一下./sm

mysql学习笔记

March 31st, 2006

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/article/208
===MySQL基础====
mysql下载: http://www.mysql.com/
阅读全文——共6673字

公司邮件服务器向163及sina免费邮箱用户发信被退回解决纪录

March 31st, 2006

163:
QUOTE:
kf163@188.com(客服告诉我的)kefu@service.netease.com(客服告诉我的)kefu@service.netease.com(官方网站提供的)TEL:24小时全国热线:020-83568090京沪粤浙苏鄂闽川渝专线:95105163
Sina:
阅读全文——共345字

as3-update5通过自带rpm包安装BIND笔记

March 31st, 2006

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=199
1. 安装bind-9.2.4-7_EL3.rpm+caching-nameserver-7.3-3_EL3.noarch.rpm
2. vi /etc/named.conf
阅读全文——共1143字

Page 6 of 9« First...«45678»...Last »


    最新文章

    • CRIonline实用英语课堂学习笔记
    • Linux SNMP OID’s for CPU,Memory and Disk Statistics
    • lighttpd+mod_flv_streaming+flowplayer实现拖动播放/推荐FLV
    • 英语写作必背200句
    • MySQL 服务器调优[zt]
    • 简单iscsi网络存储服务器的配置笔记
    • Subversion的用户自助修改口令实现(linux测试通过)
    • SLES10-SP1+Apache-2.0.63+SVN-1.4.6安装配置笔记
    • [音乐欣赏]A place nearby
    • 不错的firefox插件---鼠标手势mouse gestures

    评分最高文章

      • 今天下载的一个CHM文件,打开时右边的内容看不到,提示“该页无法显示”。
      • linux日志服务器配置笔记
      • Legato networker学习笔记(杂)
      • linux tips 技巧笔记
      • [BT下载]2006韩剧-葡萄园的那小伙儿
      • 我家的金吉拉
      • 卡巴斯基病毒库离线更新方法
      • 忽悠姐妹花主题曲下载
      • 轻轻松松把 Apache 配置安全
      • 北京IDC机房介绍

    随机文章:

    • jabber安装笔记
    • DHCP服务器迁移(从2000至2003)小记
    • 远程开启2003的远程桌面功能
    • apache限制用户线程数实现
    • RHEL4 通过yum自动升级实现
    • 来看看北京“天上人间“去得起吗[zz]
    • 用 Windows Live Messenger 8.1 聊天也能做慈善喔..[zz]
    • 服务器老手谈WEB服务器如何选用配件
    • StatTraq的summary页面的中文显示乱� �问题
    • NetScreen防火墙中文说明文档

    最新评论

    • [...] Jeffrey 出处:http://blog.zhangjianfeng.co...
    • [...] 文章来源:http://blog.zhangjianfeng.co...
    • 是的. 只要端口不冲突就可...
    • 请教 我在UBUNTU上 (8。04)装了apache2....
    • 謝謝您提供的這些訊息...
    • venhow, 我已经好久没用legato networker了,...
    • 謝謝。 我還沒有提及最主要的一點...
    • 是7.x版本吗? 我记得在配置备份源目...
    • 謝謝。 是原主機(server)還原。 您...
    • venhow,你好 我这边没有相关环境,但根...


    邮件订阅  
  • Categories

    • 个人日志 (15)
    • 休闲娱乐 (79)
    • 应用服务 (87)
    • 影音娱乐 (10)
    • 电脑网络 (79)
    • 站点日志 (19)
    • 系统管理 (244)
    • 英语学习 (17)
    • 衣食住行 (41)
    • 资料共享 (28)
  • 工具网址

    • 天气预报
    • 常用电话
    • 疾病查询
    • 在线翻译
    • Alexa排名查询
    • IP信息查询
    • 邮箱图标生成
    • 我的Firefox插件
  • 友情链接

    • linuxの飘扬
    • winter的平凡生活
    • 伤感星星的天空
    • 回忆未来[张宴]
    • 存储部落
    • 扶凯Blog
    • 沐宇春风
    • 爱MySQL中文网
    • 狗.车.志
    • 非礼勿视
    • 顾秦博客
  • Tags

    • 下载 优化 使用 免费 北京 升级 学习 学习笔记 安装 工具 性能 技巧 日志 最新 服务器 笔记 英语学习 菜谱 视频 解决 调优 软件 运程 配置 配置文件 食物 2007 apache blog dreamhost freebsd Legato linux mysql networker oracle php RAID5 RedHat sendmail squid suse Ubuntu windows wordpress

Jeffrey's Blog is powered by WordPress 2.3.1 and Unnamed 1.22
Entries (RSS) and Comments (RSS) Admin 京ICP备06038449号

Podcast Powered by podPress (v8.8)