Openwrt luci+nginx+uwsgi+php超详细教程无坑配置

K3,就是当年的斐xun K3,原本计划更换个路由器,但是实际上从个人需求、设备功耗、配置、宜用、美观来看,貌似也都没有什么值得替换的必要,作为旁路的辅助路由器(上级还有其他路由器负责net),发布服务或许更合适一些,而且做固件的人也多,向我这么懒的老一代程序员,对于能懒就懒来说,越简单越好。

当前版本
Openwrt  Mster 内核基于Linux version 4.19.138  (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r3066-0de1301c5)) 

nginx/1.19.6

为什么内核没用5.4及更高的版本,而是继续选择4的版本主要是图一个稳定,外加5.4usb存储有问题,以及一些莫名其妙的问题,同样功耗还高。

nginx1.19 这个版本相对比较新,而且ssl、cgi环境相对完整,对于用户来说,省了很多麻烦。

uhtptd是一个很好用的httpserver,我用这个服务发布了2年,很稳定,犹豫需求变更,所以改用nginx,本人以前玩apache的,而对于nginx的结构不是很清楚,但是当第一眼看到坑的时候,就意味着后面的路不好走。

软件源

src/gz openwrt_core https://mirrors.cloud.tencent.com/lede/snapshots/targets/bcm53xx/generic/packages
src/gz openwrt_base https://mirrors.cloud.tencent.com/lede/snapshots/packages/arm_cortex-a9/base
src/gz openwrt_freifunk https://mirrors.cloud.tencent.com/lede/snapshots/packages/arm_cortex-a9/freifunk
src/gz openwrt_helloworld https://mirrors.cloud.tencent.com/lede/snapshots/packages/arm_cortex-a9/helloworld
src/gz openwrt_luci https://mirrors.cloud.tencent.com/lede/releases/18.06.8/packages/arm_cortex-a9/luci
src/gz openwrt_packages https://mirrors.cloud.tencent.com/lede/snapshots/packages/arm_cortex-a9/packages
src/gz openwrt_routing https://mirrors.cloud.tencent.com/lede/snapshots/packages/arm_cortex-a9/routing
src/gz openwrt_telephony https://mirrors.cloud.tencent.com/lede/snapshots/packages/arm_cortex-a9/telephony

自定义

src/gz bopenwrt_core https://mirror.tuna.tsinghua.edu.cn/lede/releases/18.06.8/targets/bcm53xx/generic/packages/
src/gz bopenwrt_base https://mirror.tuna.tsinghua.edu.cn/lede/releases/18.06.8/packages/arm_cortex-a9/base/
src/gz bopenwrt_luci https://mirror.tuna.tsinghua.edu.cn/lede/releases/18.06.8/packages/arm_cortex-a9/luci
src/gz bopenwrt_packages https://mirror.tuna.tsinghua.edu.cn/lede/releases/18.06.8/packages/arm_cortex-a9/packages
src/gz bopenwrt_routing https://mirror.tuna.tsinghua.edu.cn/lede/releases/18.06.8/packages/arm_cortex-a9/routing

自定义用的源比较老,因为老的程序相对来说更加稳定,而且通常向下兼容

正文开始:

https://i.qsis.cn:88/bbme//?post/lardvy

你可能感兴趣的:(网络配置,openwrt,nginx,luci,uwsgi,替换uhttpd)