感謝KCW提供!!

灌Debian 快速設定
(1) 更新 sources.list
#[Packages]——————————-
deb http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ etch main contrib non-free
#[Security Update]————————
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

(2) 安裝常用套件
# apt-get install build-essential sudo screen unzip unrar tree vsftpd vim postfix mutt yafc

(3) 安裝 MySQL
# apt-get install mysql-server-5.0 mysql-client-5.0 mysql-common

替換設定檔my.cnf,使用:
/usr/share/doc/mysql-server-5.0/examples/my-small.cnf

關掉用不到的 Storage Engine:
skip-bdb
skip-innodb

設定 root 密碼:
mysqladmin -u root password

(4) 安裝 PHP5 與 Lighttpd

# apt-get install php5-cgi php5-gd php5-mysql
# apt-get install lighttpd

啟用 FastCGI、Virtual Host 模組
lighty-enable-mod fastcgi simple-vhost

(5) 新增一般用戶給予 sudo 權限(編輯 /etc/sudoers)
user ALL=(ALL) ALL

(6) 設定 vsftpd(編輯 /etc/vsftpd.conf)
# 允許上傳
write_enable=YES
# 帳號清單使用本地端 /etc/passwd
local_enable=YES
# 開放的 port
listen_port=1234
# 放寬檔案權限(預設太嚴格)
local_umask=022
# 設定登入後的根目錄
local_root=/home/ftp

(7) 變更 SSH Server 設定(編輯 /etc/ssh/sshd_config)
Port 1234
PermitRootLogin no

重新啟動 SSH:/etc/init.d/ssh reload

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s