用 sudo apt-get install thttpd 已經找不到 package
user@user-ubuntu140402:~$ sudo apt-get install thttpd
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package thttpd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'thttpd' has no installation candidate
還好本家 debian 還是有這個 package
https://packages.debian.org/squeeze/thttpd
http://ftp.tw.debian.org/debian/pool/main/t/thttpd/
下載 deb, 用 software center 自動安裝
2. 修改設定
sudo cp /etc/defualt/thttpd /etc/defualt/thttpd.backup
sudo nano /etc/defualt/thttpd
find and change ENABLED=no to ENABLED=yes
3. 啟動/停止 thttpd
sudo /etc/init.d/thttpd start
sudo /etc/init.d/thttpd stop
4. 使用事項
a. 預設使用 /var/www 當網頁根目錄, 相關 html, 圖檔等資料存放位置
b. 設定檔 /etc/thttpd/thttpd.conf 可開啟或關掉 thttpd 某項功能
4. 使用事項
a. 預設使用 /var/www 當網頁根目錄, 相關 html, 圖檔等資料存放位置
b. 設定檔 /etc/thttpd/thttpd.conf 可開啟或關掉 thttpd 某項功能
沒有留言:
張貼留言