Archive for the 'Server' Category

11月 01 2008

Lighttpd with PHP and MySQL

Published by kcw under Server

在 Debian 下安裝 LLMP 網頁伺服器:Lighttpd、PHP、MySQL
1) 安裝 MySQL 套件
apt-get install mysql-server-5.0 mysql-client-5.0 mysql-common
2) 安裝 PHP 套件、Lighttpd 網頁伺服器
apt-get install php5-cgi php5-gd php5-mysql
apt-get install lighttpd

No responses yet

10月 19 2008

節省 Apache & MySQL 所用記憶體

Published by kcw under Server

最近VPS主機狂出鎚,原因都是Memory不夠用。重開機後,大概只要一週的時間整台機器就炸掉了!!以前在學校主機執行Apache、MySQL都沒這個狀況。目前VPS系統只有可憐的64MB RAM能用...從幾個方面著手,看能不能節省記憶體用量:
1) Apache 設定檔 /etc/apache2/apache2.conf

# 設定存活時間
KeepAliveTimeout 5
 
# Apache 使用 prefork MPM 模式執行
StartServers 1
MinSpareServers 1
MaxSpareServers 5
[...]

No responses yet

3月 30 2008

WordPress 2.5 正式發表

Published by kcw under Server

眾人期盼的Wordpress 2.5版終於正式登場了,聽說是凌晨發佈的。不過由於正在趕論文,所以完全沒注意到這件事。新增的功能似乎包山包海:
The improvements in 2.5 are numerous, and almost entirely a result of your feedback: multi-file uploading, one-click plugin upgrades, built-in galleries, customizable dashboard, salted passwords and cookie encryption, media library, a WYSIWYG that doesn't mess with your code, concurrent post editing protection, full-screen writing, and search that covers posts and pages.
多檔上傳、Plugin單鍵升級、內建相本、自訂Dashboard、加強安全性、搜尋功能加強...哦哦哦,可真多功能啊。

No responses yet

10月 17 2007

ssh 登入過慢

Published by kcw under Server

用 ssh 連線到遠端主機時,在某些時候會覺得 login的速度很慢。那種慢法是,在你輸入使用者帳號(user name)後,往往要等個半分鍾,主機才會詢問使用者密碼。
通常這個問題的起因,會是「反查」所造成的問題。在Debian 環境下,預設是開啟反向 Domain解析。解決的方法:
1) 編輯 /etc/nsswitch.conf 找到 hosts 那行。改成下述:
hosts: files dns [NOTFOUND=return]
2) 另外一個方法,則是直接關閉 ssh反查功能。
於 /etc/ssh/sshd_conf 中新增:
UseDNS no

No responses yet