瀏覽模式: 普通 | 列表

編譯perl模組遇到的問題

當我 perl Makefile.PL

Warning: I could not locate your pod2man program. Please make sure,
         your pod2man program is in your PATH before you execute 'make'

解決方式

LANG=C perl Makefile.PL



標籤: perl module cpan

有大量 TIME_WAIT時該怎麼辦

編輯 /etc/sysctl.conf
net.ipv4.tcp_syncookies = 1 # 可防止syn攻擊
net.ipv4.tcp_tw_reuse = 1   # 允許將time-wait sockets重新用於新的tcp連線上
net.ipv4.tcp_tw_recycle = 1    # 允許快速回收
net.ipv4.tcp_fin_timeout = 30  # timeout 時間
生效 sysctl -p

CentOS 5.6 預設是
# cat /proc/sys/net/ipv4/tcp_syncookies
1
# cat /proc/sys/net/ipv4/tcp_tw_reuse
0
# cat /proc/sys/net/ipv4/tcp_tw_recycle

[閱讀全文]

什麼是kswapd0,kjournald,pdflush

Quote:

版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明

http://ri0day.blogbus.com/logs/46707525.html

1.kswapd0

Linux uses kswapd for virtual memory management such that pages that have been recently accessed are kept in memory and less active pages are paged out to disk.
(what is a page?)…Linux uses manages memory in units called pages.
So,the kswapd process regularly decreases the ages of unreferenced pages…and at the end they are paged out(moved out) to disk

系统每过一定时间就会唤醒kswapd,看看内存是否紧张,如果不紧张,则睡眠,在kswapd中,有2个阀值,pages_hige和pages_low,当空闲内存页的数量低于pages_low的时候,kswapd进程就会扫描内存并且每次释放出32个free pages,直到free page的数量到达pages_high.

2.kjournald

EXT3文件系统的日志进程,具有3种模式:

    journal - logs all filesystem data and metadata changes. The slowest of the three ext3 journaling modes, this journaling mode minimizes the chance of losing the changes you have made to any file in an ext3 filesystem.(记录所有文件系统上的元数据改变,最慢的一种模式,)

    ordered - only logs changes to filesystem metadata, but flushes file data updates to disk before making changes to associated filesystem metadata. This is the default ext3 journaling mode.(默认使用的模式,只记录文件系统改变的元数据,并在改变之前记录日志)

    writeback - only logs changes to filesystem metadata but relies on the standard filesystem write process to write file data changes to disk. This is the fastest ext3 journaling mode.(最快的一种模式,同样只记录修改过的元数据,依赖标准文件系统写进程将数据写到硬盘)

    修改模式EXT3的工作模式;

    vim /etc/fstab

    /dev/hda5      /opt            ext3       data=writeback        1 0

    详细介绍:
    http://www.linuxplanet.com/linuxplanet/reports/4136/5/

    3.pdflush

    pdflush用于将内存中的内容和文件系统进行同步,比如说,当一个文件在内存中进行修改,pdflush负责将它写回硬盘.每当内存中的垃圾页(dirty page)超过10%的时候,pdflush就会将这些页面备份回硬盘.这个比率是可调节的,通过/etc/sysctl.conf中的 vm.dirty_background_ratio项 默认值为10 也可以

    cat /proc/sys/vm/dirty_background_ratio 查看当前的值

Windows 系統管理:為您的伺服器把脈

當 Windows 慢、負載高,

可以參考 http://technet.microsoft.com/zh-tw/magazine/2008.08.pulse.aspx 診斷問題

MySQL與DNS及resolv.conf的關系

這裡 http://jeremy.zawodny.com/blog/archives/011421.html

它認為my.cnf有一些預設值其實很爛

所以對一些參考作了說明

引用:

[閱讀全文]

標籤: dns resolv.conf

ispCP -- 網站/主機管理平台

類似 plesk、DA、cpanel、ispconfig 的網站管理平台 (參考)

ispCP是從 VHCS 延伸而來的

Quote: http://isp-control.net/project-info.html

What is isp Control Panel?

isp Control Panel (ispCP) is an open source project founded to build a Multi Server Control and Administration Panel. This Control Panel is usable by any Internet Service Provider (ISP).

Rather than start a project from scratch, the team searched for existing open source implementations and decided to fork the dying Virtual Hosting Control Panel (VHCS) project. This community effort to continue on the work of VHCS lead to the creation of ispCP Omega.
ispCP Omega release

The ispCP Omega release is completely based on the original open source VHCS project. Because part of the ispCP dev team were core members of the dead VHCS project, Malte (ephigenie) and Benedikt (RatS) felt an obligation to offer the desperate community a way to migrate to ispCP. This led to the creation of ispCP Omega, a migration path from VHCS to ispCP, allowing the community to enjoy a fast, reliable and stable platform with unlimited growth potential.

使用指令方式佈署IIS

建立虛擬目錄

cscript /nologo C:\Inetpub\AdminScripts\adsutil.vbs CREATE  W3SVC/1/ROOT/cross "IIsWebVirtualDir"

給於虛擬目錄路徑

cscript /nologo C:\Inetpub\AdminScripts\adsutil.vbs SET W3SVC/1/ROOT/cross/PATH "C:\123"

刪除虛擬目錄

iisvdir /delete W3SVC/1/ROOT/cross



參考: http://www.dotblogs.com.tw/petedotnet/archive/2010/10/26/deploywebsiteusingcommandline.aspx