openwrt下的 thttpd-2.25b ipk安装包, 自测成功

3050阅读 0评论2013-06-07 qiushui_007
分类:Web开发

文件说明:
thttpd_xu1_fac_ar71xx.ipk: 原厂代码编译.
thttpd_xu1_debug_ar71xx.ipk: 增加了UDP调试功能,调试机: IP=192.168.1.224, 端口:8080
可以看到相关的调试信息http://blog.chinaunix.net/uid-27194309-id-3695123.html

//------ 配置文件内容
# This section overrides defaults
dir=/www
#chroot
nochroot
user=root # default = nobody
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid
# This section _documents_ defaults in effect
#port=80
port=8081
# nosymlink # default = !chroot
# novhost
# nocgipat
cgipat=/cgi-bin/*
# nothrottles
# host=0.0.0.0
# charset=iso-8859-1
charset=utf-8


#安装, 配置开机自启动
opkg install 
/etc/init.d/thttpd enable
/etc/init.d/thttpd start

#32M内存下, 占用VSZ约为2%,  但CGI好像占用内存比较大
Mem: 28652K used, 33160K free, 0K shrd, 3788K buff, 11384K cached
CPU:   1% usr   2% sys   0% nic  95% idle   0% io   0% irq   0% sirq
Load average: 0.24 0.06 0.06 1/46 12957
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 1325     1 root     S     1580   3%   0% hostapd -P /var/run/wifi-phy0.pid -B
  636     1 root     S     1516   2%   0% /sbin/syslogd -C16
12932  2113 root     R     1508   2%   0% top
    1     0 root     S     1512   2%   0% init
 2092  1442 root     S     1216   2%   0% /usr/sbin/dropbear -P /var/run/dropbe
 1558     1 root     S     3200   5%   0% /usr/sbin/nmbd -D
 1556     1 root     S     3116   5%   0% /usr/sbin/smbd -D
 1420     1 root     S     1520   2%   0% /usr/sbin/crond -c /etc/crontabs -l 5
  756   676 root     S     1516   2%   0% udhcpc -p /var/run/udhcpc-eth0.pid -s
 2113  2092 root     S     1512   2%   0% -ash
  461     1 root     S     1512   2%   0% init
 1584     1 root     S     1508   2%   0% /usr/sbin/ntpd -n -p 0.openwrt.pool.n
 1228     1 root     S     1508   2%   0% /sbin/watchdog -t 5 /dev/watchdog
 1961  1925 root     S     1504   2%   0% -ash
  638     1 root     S     1496   2%   0% /sbin/klogd
 8863     1 root     S     1492   2%   0% /usr/sbin/thttpd -C /etc/config/thttp
  676     1 root     S     1476   2%   0% /sbin/netifd
 1925  1442 root     S     1244   2%   0% /usr/sbin/dropbear -P /var/run/dropbe
 1442     1 root     S     1152   2%   0% /usr/sbin/dropbear -P /var/run/dropbe
C470     1 root     S     1140   2%   0% /usr/sbin/uhttpd -f -h /www -r OpenWr

root@OpenWrt:/xutest# 


上一篇:thttpd, 利用CGI获取GET/POST的参数, openwrt下自测成功
下一篇:Javascript 的自用基本函数汇总