nginx是一个反向代理服务,安装它之后,Fox-Edge的页面才会被传输到用户的浏览器页面。
#更新仓库
apt update -y
#默认安装nginx
apt install nginx -y
#检查nginx的安装是否成功
systemctl status nginx
#前端页面fox-edge-ui的nginx配置,等reload后,打开http:xxx.xxx.xxx.xxx,即可验证
cp /opt/fox-edge/doc/nginx/conf.d/fox-edge.com.ipadr.conf /etc/nginx/conf.d
#重新装载配置
nginx -s reload
下面提供了一键安装命令,简化安装过程
apt-get update -y && \
apt install nginx -y && \
nginx -s reload