Pureftpd小小技巧 讓你受益無窮
Pureftpd是一款FTP程序軟件,今天我給大家講幾個(gè)實(shí)用的技巧!
PureFTPD下面有幾點(diǎn)建議.
* Compile with :
- #env CFLAGS="-O2 -fomit-frame-pointer -fgcse -Os"
- #./configure --with-minimal --without-inetd --without-pam
- #make install-strip
-=特殊功能都不要加.以減輕Server負(fù)擔(dān)=-
*用standalone的模式去啟動(dòng).不要打開pure-ftpwho & pure-uploadscript
& per-userlimits 的選項(xiàng)
-=因?yàn)槟菐讉€(gè)都是很吃系統(tǒng)資源的工具=-
*編輯/etc/fstab, 對所有filesystems的options增加",noatime"
*在/boot/loader.conf里增加以下兩行
- hw.ata.wc="1"
- kern.ipc.nmbclusters="60000"
*在/etc/sysctl.conf里增加
- vfs.vmiodirenable=1
- kern.ipc.maxsockbuf=2097152
- kern.ipc.somaxconn=8192
- kern.ipc.maxsockets=16424
- kern.maxfiles=65536
- kern.maxfilesperproc=32768
- net.inet.tcp.rfc1323=1
- net.inet.tcp.delayed_ack=0
- net.inet.tcp.sendspace=65535
- net.inet.tcp.recvspace=65535
- net.inet.udp.recvspace=65535
- net.inet.udp.maxdgram=57344
- net.local.stream.recvspace=65535
- net.local.stream.sendspace=65535
求一下土地公.讓你等一下不用跑機(jī)房.然后reboot.重開機(jī)后就大功告成.
通過閱讀整篇文章,我們只知道了Pureftpd小技巧,希望能讓你受益無窮!
【編輯推薦】