-
lantinglou
发布于 2022-07-22
- 分类:互联网
- 阅读(58)
- 评论(0)
- ssh into your Synology
sudo -s
cd /usr/syno/share/nginx
- 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
sed -i "s/80/8880/g" server.mustache
sed -i "s/80/8880/g" DSM.mustache
sed -i "s/80/8880/g" WWWService.mustache
- 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
- Quit the shell (e.g., via Ctrl+D)
- systemctl restart nginx 或者直接重启服务器
最新评论