群晖修改nginx默认的80和443端口

cd /usr/syno/share/nginx
sudo sed -i 's/443/442/g' DSM.mustache server.mustache WWWService.mustache
sudo sed -i 's/80/79/g' DSM.mustache server.mustache WWWService.mustache/usr/syno/share/nginx
sudo systemctl restart nginx  
netstat -anp | grep 443
netstat -anp | grep 80

群晖默认将nginx的80和443端口分别用来跳转至DSM的5000和5001端口,导致额外的占用。