查看Docker宿主机的IP和容器的IP
ip addr route -n Last login: Fri Oct 20 21:41:53 2023 from localhost [root@centos ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00…
Continue Readingip addr route -n Last login: Fri Oct 20 21:41:53 2023 from localhost [root@centos ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00…
Continue Readingserver { listen 80; listen 443 ssl http2; server_name www.yyspark.com; #域名 #server_name www.yyspark.com yyspark.com; #域名 #SSL-START SSL相关配置 #########不带www的网址跳转到带www if ( $host !~ ^www ) { return $scheme://www.$host$request_uri; } #########不带www的网址跳转到带www #########HTTP_TO_HTTPS_START…
Continue Reading<?xml version="1.0" ?> <rules> <clear/> <rule name="Add_WWW" stopProcessing="true"> <match url="^(.*)$"/> <conditions> <add input="{HTTP_HOST}" pattern="^(?!www.)(.*)$"/> </conditions> <action type="Redirect" url="http://www.{C:0}{PATH_INFO}" redirectType="Permanent"/> </rule> <rule name="http_toHttps" stopProcessing="true"> <match url="(.*)"/> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true"/>…
Continue Reading修改默认的webstation端口为8080和8443,并启动容器 cd /usr/syno/share/nginx 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 docker run -itd…
Continue Reading一、 释放80、443端口占用 #ssh登陆nas sudo -i #切换至root用户 #检查端口占用情况 netstat -anp |grep 80 netstat -anp |grep 443 #能确定端口被nginx占用 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…
Continue Readinghttp://yiyilearning.com:8080/https://yiyilearning.com:8443/
Continue Reading先SSH到DSM sudo -i 输入密码切换到root 在已经安装好docker的情况下输入 docker run -itd -p 9999:999 --name centos-vm --hostname centos --privileged=true centos:centos7 /usr/sbin/init 输入以下命令进入到容器centos-vm docker exec -it centos-vm /bin/bash 更新下centos包 yum update yum upgrade 安装常用的包和ssh yum…
Continue ReadingSSH到DSM 以Robert用户登录 sudo -i 输入同样的密码 /////////////////////////////////////////以下是具体操作 vi /usr/syno/synoman/webman/desktop.html /////////////////////////////////////////以下是具体操作 {JSFILE}下面插入js引用 <script type="text/javascript" src="webman/robert.js"></script> /////////////////////////////////////////以下是具体操作 vi /usr/syno/synoman/webman/robert.js /////////////////////////////////////////以下是具体操作 将js内容粘贴进入 /////////////////////////////////////////以下是js文件内容 window.onload = function () { setTimeout("changeFooter()", 1000); } function changeFooter() {…
Continue Reading