• 查看视频所有类型,只看不下载
    youtube-dl -F [url]
    或者
    youtube-dl --list-formats [url]
    这是一个列清单参数,执行后并不会下载视频,但能知道这个目标视频都有哪些格式存在,这样就可以有选择的下载啦!
查看YouTube视频所有类型
  • 下载指定质量的视频和音频并自动合并
    youtube-dl -f [format code] [url]
    通过上一步获取到了所有视频格式的清单,最左边一列就是编号对应着不同的格式.
    由于YouTube的1080p及以上的分辨率都是音视频分离的,所以我们需要分别下载视频和音频,可以使用137+140这样的组合.
    如果系统中安装了ffmpeg的话, youtube-dl 会自动合并下下好的视频和音频, 然后自动删除单独的音视频文件

下載音樂

起手式: 指定音樂檔案類型

  • -x--extract-audio表示提取音頻
  • --audio-format後面指定音頻檔案類型,像是 mp3, wav, m4a, aac

Example:

1
$ youtube-dl -x –audio-format mp3 <url>

 

 

 

 

下载指定质量的视频和音频并自动合并
youtube-dl -f [format code] [url]
通过上一步获取到了所有视频格式的清单,最左边一列就是编号对应着不同的格式.
由于YouTube的1080p及以上的分辨率都是音视频分离的,所以我们需要分别下载视频和音频,可以使用137+140这样的组合.

git config –global user.name shudal

git config –global user.email shudal@qq.com

ssh-keygen -t rsa -C

cat ~/.ssh/id_rsa.pub

// 把输出的内容添加到GitHub的ssh key

ssh -T git@github.com

// 一定要输入yes,不然会Host key verification failed.默认系统不会认为输入了yes

// 具体配置成功没看这句的输出

见这里 (用第二个配置

把项目移动到/usr/share/nginx/html下,

项目名为tp5,然后直接copy链接博文的第二个


server {
listen 80;
server_name localhost;

#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;

location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
root /usr/share/nginx/html/tp5/public/;
index index.php;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /usr/share/nginx/html/tp5/public/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

# deny access to .htaccess files, if Apache’s document root
# concurs with nginx’s one
#
#location ~ /\.ht {
# deny all;
#}
}
———————
作者:上官二狗
来源:CSDN
原文:https://blog.csdn.net/qq_36431213/article/details/80456993
版权声明:本文为博主原创文章,转载请附上博文链接!

  1. 设置背景颜色:body {background:#000 ;}
  2. 设置背景图片:body {background:url(”http:://www.dfaaf/1.jpg’);}
  3. 设置背景图片自适应:body{background-repeat:no-repeat; background-size:100% 100%;-moz-background-size:100% 100%;}