Apache2 在 FreeBSD 上安裝的步驟: (使用 Configure 方式安裝) :
1. Download httpd-2.2.10.tar.gz
2. tar xzvf httpd-2.2.10.tar.gz
3. cd httpd-2.2.10
4. /bin/sh ../httpd.configure.sh (先將要configure 的餐數設定為一個檔案)
5. make install
安裝完畢後, 執行
/usr/local/apache2/bin/apachectl start
Apache 即會啟動, 如果要停止, 執行
/usr/local/apache2/bin/apachectl stop
即會停止, 如果開始後想再次啟動,執行
/usr/local/apache2/bin/apachectl restart
即可再次啟動
以下列出為參考其他人使用的Apache configure 的參數設定:
#!/bin/bash
./configure –prefix=/usr/local/apache2 –infodir=/usr/local/apache2/info –mandir=/usr/local/apache2/man –enable-so –enable-MODULE=shared –enable-ssl –enable-mods-shared=most
1. Download httpd-2.2.10.tar.gz
2. tar xzvf httpd-2.2.10.tar.gz
3. cd httpd-2.2.10
4. /bin/sh ../httpd.configure.sh (先將要configure 的餐數設定為一個檔案)
5. make install
安裝完畢後, 執行
/usr/local/apache2/bin/apachectl start
Apache 即會啟動, 如果要停止, 執行
/usr/local/apache2/bin/apachectl stop
即會停止, 如果開始後想再次啟動,執行
/usr/local/apache2/bin/apachectl restart
即可再次啟動
以下列出為參考其他人使用的Apache configure 的參數設定:
#!/bin/bash
./configure –prefix=/usr/local/apache2 –infodir=/usr/local/apache2/info –mandir=/usr/local/apache2/man –enable-so –enable-MODULE=shared –enable-ssl –enable-mods-shared=most