首页 > Web开发 > 详细

使用UnblockNeteaseMusic解鎖網易雲音樂無版權付費歌曲

时间:2020-11-05 16:39:31      阅读:53      评论:0      收藏:0      [点我收藏+]

本文所述方式僅限於學習交流及安全測試,請尊重創作者知識產權,遵守所在地相關法律規定

Github項目UnblockNeteaseMusic

https://github.com/nondanee/UnblockNeteaseMusic

這裏主要介紹代理服務器的搭建及配置.

1.安裝node.js

#Debian/Ubuntu系统
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt install -y nodejs git 

#CentOS系统
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install nodejs git -y

2.運行UnblockNeteaseMusic

git clone https://github.com/nondanee/UnblockNeteaseMusic.git
cd UnblockNeteaseMusic
node app.js

這時會啓動代理服務器,默認端口8080,如需更改代理端口,可通過修改config.port對應數值或運行時指定參數

node app.js -p <port>

3.開機自啓

使用systemd進程守護(僅適用於Centos7+,Ubuntu16+)

編輯/etc/systemd/system/UnblockNeteaseMusic.service

[Unit]
Description=UnblockNeteaseMusic
After=network.target
Wants=network.target

[Service]
Type=simple
PIDFile=/var/run/UnblockNeteaseMusic.pid
WorkingDirectory=/root/UnblockNeteaseMusic
ExecStart=$(command -v node) app.js -p 4567
RestartPreventExitStatus=23
Restart=always

[Install]
WantedBy=multi-user.target
EOF

? 啓動並設置自啓:

systemctl start UnblockNeteaseMusic
systemctl enable UnblockNeteaseMusic

其它系統設定原理相同(應該也不會有人拿arch做服務器

4.使用方法

/*
如無公網ip,需保證代理服務器和客戶端處於同一局域網內
*/
Windows/Macosx:打開網易暈音樂客戶端 設置>>工具>>自定義代理>>http代理
Linux:由於2.0以上版本客戶端閹割了內置代理設置,可以使用proxychain等命令行工具設置代理
Andorid:設置>>WLAN>>高級設置

使用UnblockNeteaseMusic解鎖網易雲音樂無版權付費歌曲

原文:https://www.cnblogs.com/Codea/p/13931725.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!