原文地址:https://lala.im/5373.html,請支持原作者!該處僅作轉載。
网易云音乐绝对是当之无愧的国内最优秀的听锅(Guo)软件,但有点可惜的是由于近年来国内越来越重注版权意识,几大音乐软件互相抢版权,导致网易云内很多歌都听不了了(显示灰色)现在这个小工具可以帮助你解决这个问题。
安装Nodejs:
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum -y install nodejs
安装supervisor:
yum -y install epel-release
yum -y install supervisor
拉取文件:
cd /opt
git clone https://github.com/nondanee/UnblockNeteaseMusic.git
cd UnblockNeteaseMusic
第一种方式监听80端口
node app.js -p 80
Windows修改Hosts文件:
C:\Windows\System32\drivers\etc\hosts
指定域名解析:
VPSIP music.163.com
VPSIP interface.music.163.com
第二种方式监听其他端口,例如:
node app.js -p 65535
Windows网易云客户端内设置HTTP代理:
我自己用第二种方式,已经足够了,如果你需要其他方式可以看看项目页面的介绍:
https://github.com/nondanee/UnblockNeteaseMusic
使用supervisor放到后台运行:
nano /etc/supervisord.d/netease.ini
写入(正式使用应该加上-s参数,防止代理被滥用):
[supervisord]
nodaemon=false
[program:netease]
user=root
directory=/opt/UnblockNeteaseMusic
command=/usr/bin/node app.js -s -p 65535
autostart=true
autorestart=true
启动:
systemctl start supervisord
systemctl enable supervisord
未使用前:
使用后:
最后建议在一台线路/延迟/网速比较好的服务器上搭建,不然你的歌单加载会很慢。