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

Jeffrey’s Blog

Web&P2P系统架构及优化


Archive for the '电脑网络' Category

Page 5 of 36« First...«34567»...Last »

cvs笔记

September 28th, 2007

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=641
参考了车东网站 http://www.chedong.com/tech/cvs_card.html
++软件安装部分$rpm -qa cvs #没有可找光盘rpm包安装,或http://cvs.nongnu.org/下载编译创建相关用户和组,以后开发用户可以组管理$groupadd cvs$useradd cvsroot -g cvs -d /cvsroot/$passwd cvsroot
阅读全文——共2588字

使用heartbeat做双机热备笔记

September 20th, 2007

作者: Jeffrey
出处: http://blog.zhangjianfeng.com/?p=638
我用到的集群系统主要就2种:
高可用(High Availability)HA集群, 使用Heartbeat实现;也会称为”双机热备”, “双机互备”, “双机”。
阅读全文——共1262字

Optimizing host.conf and sysctl.conf

September 16th, 2007

#!/bin/sh cp /etc/host.conf /etc/host.back echo "# Lookup names via DNS first then fall back to /etc/hosts." > /etc/host.conf echo "order bind,hosts" >> /etc/host.conf echo "# We have machines with multiple IP addresses." >> /etc/host.conf echo "multi on" >> /etc/host.conf echo "# Check for IP address spoofing." >> /etc/host.conf echo "nospoof on" >> /etc/host.conf cp /etc/sysctl.conf /etc/sysctl.conf.old echo "# Max File Handlers" >> /etc/sysctl.conf echo "fs.file-max = 8192" >> /etc/sysctl.conf echo "# Disable CTR+ALT+DEL Restart Keys" >> /etc/sysctl.conf echo "kernel.ctrl-alt-del = 1" >> /etc/sysctl.conf echo "# Enable TCP SYN cookie protection" >> /etc/sysctl.conf echo "net.ipv4.tcp_syncookies = 1" >> /etc/sysctl.conf echo "# Disable ICMP Redirect Acceptance" >> /etc/sysctl.conf echo "net.ipv4.conf.all.accept_redirects = 0" >> /etc/sysctl.conf echo "# Enable bad error message protection" >> /etc/sysctl.conf echo "net.ipv4.icmp_ignore_bogus_error_responses = 1" >> /etc/sysctl.conf echo "# Decrease time between keepalives" >> /etc/sysctl.conf echo "net.ipv4.tcp_keepalive_time = 1200" >> /etc/sysctl.conf echo "# Turn off timestamps" >> /etc/sysctl.conf echo "net.ipv4.tcp_timestamps = 0" >> /etc/sysctl.conf echo "# Ignore icmp broadcast request" >> /etc/sysctl.conf echo "net.ipv4.icmp_echo_ignore_broadcasts = 1" >> /etc/sysctl.conf echo "# Decrease the time default value for tcp_fin_timeout connection" >> /etc/sysctl.conf echo "net.ipv4.tcp_fin_timeout = 25" >> /etc/sysctl.conf echo "# Turn off the tcp_window_scaling" >> /etc/sysctl.conf echo "net.ipv4.tcp_window_scaling = 0" >> /etc/sysctl.conf echo "# Turn off the tcp_sack" >> /etc/sysctl.conf echo "net.ipv4.tcp_sack = 0" >> /etc/sysctl.conf echo "# Allow more SYN backlog" >> /etc/sysctl.conf echo "net.ipv4.tcp_max_syn_backlog = 1048" >> /etc/sysctl.conf echo "# Lower retry rates" >> /etc/sysctl.conf echo "net.ipv4.tcp_synack_retries = 2" >> /etc/sysctl.conf echo "net.ipv4.tcp_syn_retries = 3" >> /etc/sysctl.conf cp /etc/syslog.conf /etc/syslog.conf.old echo "# Log all kernel messages to the new file /var/log/kernel" >> /etc/syslog.conf echo "kern.* /var/log/kernel" >> /etc/syslog.conf echo "# Log all logins to /var/log/login_log" >> /etc/syslog.conf echo "auth.*;user.*;daemon.none /var/log/login_log" >> /etc/syslog.conf

iptables学习笔记

September 12th, 2007

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=632
++基本
modprobe ip_nat_ftp
阅读全文——共3448字

服务器老手谈WEB服务器如何选用配件

September 10th, 2007

      很多中小型企业的技术人员或者打算以网站、盈利的个人团体组织都经常提出这么一个疑问:究竟什么样的配置可以支持多大的流量?
      其实这个问题不可能有准确答案,因为每个网站使用的Web系统都不一样,有些喜欢用IIS+ASP,有些则是用Apache+PHP,这在脚本的执行效率上本身就存在很大的差异,另外,网页系统编写的复杂程度和优化程度也极大的影响着服务器能够承载的访问人数,大部分的新闻资讯、下载类网站都已经使用了静态页面来减少Web系统对服务器处理能力的依赖,但是仍然有不少例如论坛、商城一类的系统需要大量动态代码的支持,所以笼统的去谈论一个服务器能够支持多少访问量是没有实际意义的,还是需要具体的去分析:
阅读全文——共3413字

SQL常用语句[zz]

September 7th, 2007

SQL常用命令使用方法:(1) 数据记录筛选:sql="select * from 数据表 where 字段名=字段值 order by 字段名 [desc]"sql="select * from 数据表 where 字段名 like '%字段值%' order by 字段名 [desc]"sql="select top 10 * from 数据表 where 字段名 order by 字段名 [desc]"sql="select * from 数据表 where 字段名 in ('值1','值2','值3')"sql="select * from 数据表 where 字段名 between 值1 and 值2"(2) 更新数据记录:sql="update 数据表 set 字段名=字段值 where 条件表达式"sql="update 数据表 set 字段1=值1,字段2=值2 …… 字段n=值n where 条件表达式"(3) 删除数据记录:sql="delete from 数据表 where 条件表达式"sql="delete from 数据表"  (将数据表所有记录删除)(4) 添加数据记录:sql="insert into 数据表 (字段1,字段2,字段3 …) values (值1,值2,值3 …)"sql="insert into 目标数据表 select * from 源数据表"  (把源数据表的记录添加到目标数据表)(5) 数据记录统计函数:AVG(字段名) 得出一个表格栏平均值COUNT(*|字段名) 对数据行数的统计或对某一栏有值的数据行数统计MAX(字段名) 取得一个表格栏最大的值MIN(字段名) 取得一个表格栏最小的值SUM(字段名) 把数据栏的值相加引用以上函数的方法:sql="select sum(字段名) as 别名 from 数据表 where 条件表达式"set rs=conn.excute(sql)用 rs("别名") 获取统的计值,其它函数运用同上。(5) 数据表的建立和删除:Create TABLE 数据表名称(字段1 类型1(长度),字段2 类型2(长度) …… )例:Create TABLE tab01(name varchar(50),datetime default now())Drop TABLE 数据表名称 (永久性删除一个数据表)
阅读全文——共8638字

squid代理网关笔记

September 3rd, 2007

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=630
squid代理网关笔记
++最简单办法开启代理服务:
阅读全文——共3022字

Hoekey - 终极的热键软件

August 31st, 2007

从小众软件看到,很不错的小工具,与大家分享! http://soft.lzzxt.com/hoekey-one/
Hoekey 能让你以最快的速度打开需要的软件、网页、或文件夹,但她的优势并不在于此。

相比同类软件,Hoekey 不仅有基本的热键设置,还提供了许多其他功能。如将当前窗口置顶,设置当前窗口的透明度,以及调整音量。而这些所有的功能都是通过热键来实现的!
阅读全文——共558字

Squid Analysis Report Generator(sarg)安装使用笔记

August 30th, 2007

作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=628
sarg是分析squid日志的一个小工具,
Sarg的输出格式为html格式,可列出了每位用户访问互联网的目标站点,时间占用,排名,连接次数,访问量等
阅读全文——共808字

解密Windows Vista各版本的区别

August 24th, 2007

vista昨天用了也还不错,打算找一个回家试试,不知道P4 2.4G+1G+64M显卡能不能跑起来? vista+freebsd6.2双系统^_^
为了针对不同用户群更好地满足市场的需求,微软推出了多种不同版本的Windows Vista。目前面向全世界销售的主要有Windows Vista Home Basic、Windows Vista Home Premium、Windows Vista Business和Windows Vista Ultimate四种版本。在此之外,微软还通过批量许可授权向企业级客户销售Windows Vista Enterprise版本,对部分不发达国家地区销售Windows Vista Starter版本,对欧盟和韩国等特殊地区销售剥除部分功能的Windows Vista N版本。
阅读全文——共3279字

Page 5 of 36« First...«34567»...Last »


    最新文章

    • Subversion的用户自助修改口令实现(linux测试通过)
    • SLES10-SP1+Apache-2.0.63+SVN-1.4.6安装配置笔记
    • [音乐欣赏]A place nearby
    • 不错的firefox插件---鼠标手势mouse gestures
    • 一些相克食品
    • oracle一次数据迁移笔记
    • 不错的vi-vim键盘图(中英文双版)
    • xen安装及配置笔记
    • Multiple network cards and bridges in Xen[zz]
    • 从LiveJournal后台发展看大规模网站性能优化方法[zz]

    评分最高文章

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

    随机文章:

    • 铁道部宣布从今年起春运火车票价不再上浮
    • 域控报 (事件 ID:12 来源:W32Time) 错误,解决办法
    • 用户组的管理
    • awk的学习
    • 子网掩码快速算法
    • 凤凰卫视主持人许戈辉结婚照曝光...
    • vim for windows
    • 穷人和富人的十三大经典差异!
    • DHCP服务器批量导入保留IP
    • 半夜偷偷下载禁片 被老婆撞个正着

    最新评论

    • very good :em02: ,I like very much !!...
    • :em03: :em13: :em15: :em07...
    • 北京电信通有四个机房1惠普机房 2中...
    • :em04: :em18: :em17...
    • 结婚的好日子啊8月10...
    • c2950-1-1(config)# snmp-server trap-source FastEt...
    • :em16: :em16: :em16: :em16: :em16: :em16: :...
    • :em01: :em07: :em04: :em17: :em10: :em18: :...
    • 我是天称座 :em14: :em15: :em03: :em02: :...
    • [...] 前面一段:1.3.6.1.4.1. 可以查看这...


    邮件订阅  
  • Categories

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

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

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

    • 下载 优化 使用 免费 北京 升级 学习 学习笔记 安装 工具 技巧 日志 最新 服务器 笔记 英语学习 菜谱 视频 解决 调优 软件 运程 配置 配置文件 食物 2007 apache blog dreamhost freebsd Legato linux mysql networker oracle php RAID5 RedHat sendmail shell 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)