群晖DSM默认占用80端口自动跳转5000的问题

  1. ssh into your Synology
  2. sudo -s
  3. cd /usr/syno/share/nginx
  4. Make a backup of server.mustache, DSM.mustache, WWWService.mustache
    • cp server.mustache server.mustache.bak
    • cp DSM.mustache DSM.mustache.bak
    • cp WWWService.mustache WWWService.mustache.bak
  5. sed -i "s/80/8880/g" server.mustache
  6. sed -i "s/80/8880/g" DSM.mustache
  7. sed -i "s/80/8880/g" WWWService.mustache
  8. Optionally, you can also move 443 to 8881:
    • sed -i "s/443/8881/g" server.mustache
    • sed -i "s/443/8881/g" DSM.mustache
    • sed -i "s/443/8881/g" WWWService.mustache
  9. Quit the shell (e.g., via Ctrl+D)
  10. systemctl restart nginx 或者直接重启服务器
赞 (0)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址