看板 Modchip 關於我們 聯絡資訊
繼續修改/etc/init.d/rcS 檔案,現在變成這樣: ============================================ #! /bin/sh /bin/mount -a if [ -x /sbin/udhcpc ]; then udhcpc& fi if [ -x /usr/sbin/telnetd ]; then telnetd& fi if [ -x /usr/sbin/ftpd ]; then tcpsvd 0 21 ftpd -w /& fi if [ -x /usr/sbin/httpd ]; then httpd -p 80 -h /home/httpd/html& fi ============================================ 這樣就把 FTP伺服器跟HTTP伺服器都架起來了,聽說busybox 的HTTP伺服器還能 支援cgi-bin ,換句話應該能跑 php跟mysql ,變身最便宜網頁伺服器XD FTP根目錄我設在 /,這樣要修改檔案會方便很多,直接有寫入權限。 網頁我是放在 /home/httpd/html 目錄,有需要的人可以視情況改到其他的目錄 ,然後丟一個index.html檔案進去測試。http.conf 的設定方式似乎跟一般的不 大一樣,得在研究研究。 -- ____ _ _ _ _ ____ _ _ ____ _____ ____ (_ _)( \( )( \/ )( ___)( \( )(_ _)( _ )( _ \ _)(_ ) ( \ / )__) ) ( )( )(_)( ) / (____)(_)\_) \/ (____)(_)\_) (__) (_____)(_)\_) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.31.137 ※ 編輯: cassine 來自: 140.120.31.137 (03/11 14:49)
poohd:可以跑php也太酷了!! 推強者220.129.192.201 03/11 14:57
felix77:but 網樂通有個條款是逾60天未使用將回收~ 210.69.84.251 03/11 15:15
cassine:看看吧,我這台擺了兩個多月到上禮拜才拆 140.120.31.137 03/11 15:19
cassine:要回收就給它回收咩 140.120.31.137 03/11 15:20
ruemann:....有這個條款哦 完全沒注意到 124.12.91.32 03/11 22:16
ccicmi:請問一下 還需要做前面提到mount嗎 114.42.136.15 04/12 23:14
ccicmi:sysfs 及 tmpfs? 114.42.136.15 04/12 23:14