软件安装

nginx

1
2
3
4
5
6
7
8
9
10
11

# 安装
opkg update && opkg install nginx

cd /etc/nginx

# 复制默认配置文件uci.conf,然后把复制后的文件改成nginx.conf
cp uci.conf nginx.conf
# 默认的/etc/nginx/uci.conf改成uci.conf.bak,这样不会重启后重置这个配置文件
mv uci.conf uci.conf.bak

编辑conf,删除默认的两个server

执行命令

1
2
3
4
nginx -s 
nginx -s reload
nginx -s quit
nginx -s stop

引用

问题及解决

web界面崩溃,重置配置
firstboot;reboot

页面假死,重启页面
/etc/init.d/uhttpd start