1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| sudo -i
netstat -anp |grep 80 netstat -anp |grep 443
cd /usr/syno/share/nginx
cp server.mustache server.mustache_`date +%Y%m%d` cp DSM.mustache DSM.mustache_`date +%Y%m%d` cp WWWService.mustache WWWService.mustache_`date +%Y%m%d`
sed -i "s/80/8080/g" server.mustache sed -i "s/80/8080/g" DSM.mustache sed -i "s/80/8080/g" WWWService.mustache
sed -i "s/443/8443/g" server.mustache sed -i "s/443/8443/g" DSM.mustache sed -i "s/443/8443/g" WWWService.mustache
synosystemctl restart nginx
ps -ef|grep nginx
netstat -anp |grep 80 netstat -anp |grep 443
|