以下文章來源:Hylafax server 安裝設定教學
kingjoy1235 發表在 痞客邦 留言(0) 人氣(7,751)
首先在終端機鍵入下列指令:
glxinfo | grep rendering
kingjoy1235 發表在 痞客邦 留言(0) 人氣(250)
最近在測試 Zend Framework 這個開發工具,發現一個問題。由於 Zend Framework
在 apache2 中需使用 mod_rewrite 這個模組,雖然 apache2 有安裝這個模組,但卻沒啟動它,我們可在
/etc/apache2/mod-available/ 這個目錄中得知。
# ls -l /etc/apache2/mods-available | grep rewrite
apache2 的模組都放在那里呢,在 /usr/lib/apache2/modules/ 這個目錄之內,在這個目錄中我們可看到 mod_rewrite .so 這個可載入模組。
要如何載入呢?當然我們可編輯 /etc/apache2/mod-available/ 這個目錄,在這個目錄中加上一個檔案,檔名為 rewrite.load,檔案內容如下:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
另外一個快速的方式,就是使用 a2enmod 這個由 apache2 提供的指令,如下:
# sudo a2enmod rewrite
由指令不難看出這是由 apache2 (a2enmod 中的 a2) 啟動 ( a2enmod 中的 en) module ( a2enmod 中的 mod) 的指令。
其它類似的指令還有 a2dismod、a2ensite、a2dissite 等指令,這些指令可有效的讓我們管理 apache2 的模組及網站(site)。
啟動 rewrite 這個模組後,記得重新使用 apache2ctl restart 或 /etc/init.d/apache2 restart 來重新啟動 apache2。
kingjoy1235 發表在 痞客邦 留言(0) 人氣(225)
LAMP=linux+apache2+mysql+php
安裝順序:
1. 安裝 MySQL
apt-get install mysql-server mysql-client
2. 安裝 apache2,共有三種 Multi-Processing Modules(MPM) 可以選擇。預設是安裝 apache2-mpm-worker 但改 用 prefork模組在穩定性上會比較好
apt-get install apache2 apache2-mpm-prefork
3. 安裝 PHP
apt-get install php5 libapache2-mod-php5 php5-gd php5-mysql phpmyadmin
kingjoy1235 發表在 痞客邦 留言(0) 人氣(1,070)
Step.1 檢查網路卡Driver是否存在
dmesg | grep net
若不存在,進行Step.1-A和Step.1-B程序
Step.1-A 檢查網路卡使用的晶片
lspci | grep net
Step.1-B 使用modconf工具安裝網路卡Driver
此部份程序專屬Debian Linux使用
modconf -- 安裝硬體module的文字模式GUI工具
若modconf工具未安裝,可使用以下指令安裝
apt-get install modconf
Step.2 設定連線方式
一、DHCP和Static IP設定連線
修改 /etc/network/interfaces 檔案內容。
DHCP設定方式:
auot eth0
iface eth0 inet dhcp
Static IP設定方式:
以下address、netmask和gateway三個參數數值是由網管決定,請詢問網管。
auto eth0
iface eth0 inet static
address 192.168.2.66
netmask 255.255.255.0
gateway 192.168.2.254
二、PPPoE(PPP over Ethernet)設定連線
用在ADSL,需要有pppoe和pppoeconf二個設定程式
若沒有安裝,需要先安裝:
apt-get install pppoe
apt-get install pppoeconf
然後在執行 pppoeconf 程式進行設定即可
Step.3 設定DNS
若未設定DNS,就只能以IP的方式連線,不能使用熟知的Domain Name如 forum.liferec.com 連線,相當不方便。
修改 /etc/resolv.conf 檔案內容:
#168.95.1.1是HiNet提供的DNS,這是HiNet最大方的地方,並不限制HiNet的客戶才能使用。
nameserver 168.95.1.1
Step.4 重新啟動網路
/etc/init.d/networking restart
kingjoy1235 發表在 痞客邦 留言(0) 人氣(27,409)
這是我第一次安裝debian系統,為免日後再裝時裝不起來,故安裝過程中勤作筆記記錄於此。第一次安裝過程花了好幾個禮拜,第二次安裝有了這份筆
記後一
兩天內就裝起來了,本文使用 debian 4.0 R4a 系統安裝,若你使用的版本與我相同,那就絕不會有安裝設定上的差異。
內容簡介:使用 debian 4.0 R4a
i386版安裝,設定內容含:debian、ssh、3.vim、4.環
境設定、5.設
定語系、6.samba、7.改
固定IP、8.apache、9.awstats、10.mysql、11.phpmyadmin、12.vsftp、13.加
帳號、 14.iptables、15.ADSL、16.域
名更新、17.mrtg、18,cacti、19.apache
目錄加密碼保護、20.NAT、21.DHCP、22.apache
加掛cache和proxy功能、23.IP
更
換記錄、24.rsync、25.DNS
設定、26.檢
查硬碟壞
軌、27.系
統備援、28.斷
線重連、29.apache
啟用ssl連線、30.NFS
設定、31.網
路校時、32.安
裝公鑰、33.監
控網路流
量、34.Xshell、35.apache
頻寬限制、36.解
rar檔、37.mysql
問題、38.傳
真伺服器、39.列
印伺服器、40.關
閉服務。
kingjoy1235 發表在 痞客邦 留言(0) 人氣(2,592)
(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
kingjoy1235 發表在 痞客邦 留言(0) 人氣(702)
耶!經過了kewang大大的調教以後…
我終於把第一台的server架了起來~
裡面的服務有「LAMP」「FTP」「SSH」等~
至於我用的版本是「ubuntu 6.10版」
因為7.0版還在beta,所以我就沒有選用~
kingjoy1235 發表在 痞客邦 留言(1) 人氣(79)