.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
前提条件
拥有一台墙外vps
一个域名(本例以挂靠cloudflare上的域名为例)
1、HostVDS上创建vps时需要创建SSH密钥在Windows中,打开PowerShell输入以下命令生成一个新的SSH密钥对:
1ssh-keygen -t rsa -b 2048 -C "[email protected]"
其中,-t rsa 指定使用RSA算法,-b 2048 指定密钥长度为2048位,-C "your_email ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
1. 通过浏览器,点击ssh连接2. 切换root1sudo -i
3. 设置PasswordAuthentication为yes去掉前面的#号(如果有的话)
1vim /etc/ssh/sshd_config
修改以下内容:
12PasswordAuthentication yesChallengeResponseAuthentication yes # 部分机器需要配置为yes
4. 重启ssh服务1sudo systemctl restart ssh
5 ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
查看任务管理器cron的使用方法1. 查看任务管理器cron有没有启动:1/etc/init.d/cron status
输出内容一般看到 running 字样,说明正在运行。
2. 编辑任务管理器配置表1crontab -e
crontab的文件格式1234567分 时 日 月 星期 要运行的命令第1列 分钟 0~59第2列 小时 0~23(0表示子夜)第3列 日 1~31第4列 月 1~12第5列 星期 0~7(0和7表示星期天)第6列 要运行的命令
3. 查看 ...