蓝瘦香菇牛人大佬:

先上链接 -> YesPlayMusic

源码来自 -> https://github.com/Binaryify/NeteaseCloudMusicApi (感谢Binaryify)
              -> https://github.com/qier222/YesPlayMusic (感谢qier222)

简单上手 -> 环境 LinodeVPS + debian 10,一只小鸡即可胜任。

下面是核心操作

  1. #安装node.js LTS (v14.x)
  2. apt update && apt install -y git curl
  3. curl -sL https://deb.nodesource.com/setup_lts.x | bash –
  4. apt-get install -y nodejs
  5. #安装网易云音乐API
  6. git clone https://github.com/Binaryify/NeteaseCloudMusicApi.git
  7. cd NeteaseCloudMusicApi
  8. npm install
  9. #运行网易云音乐API(可以通过nohup screen supervisor等后台运行)
  10. cd NeteaseCloudMusicApi
  11. PORT=3000 HOST=0.0.0.0 node app.js
  12. #安装yarn
  13. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add –
  14. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  15. apt-get update && apt-get install -y yarn
  16. #安装YesPlayMusic
  17. git clone https://github.com/qier222/YesPlayMusic.git
  18. cd YesPlayMusic
  19. yarn install
  20. cp .env.example .env
  21. #假设上述网易云音乐API解析到了music.example.com
  22. sed -i ‘s/127.0.0.1/music.example.com/g’ ./.env
  23. yarn run build
  24. #将 /dist 目录下的文件上传到你的 Web 服务器(不限制本机)

权限防采集

对了还有个坑,如果顺利搭建完成加载不出来页面,服务器端ping一下music.163.com。

如果不通,找个能ping通的ip,然后修改/etc/hosts即可。

aipage牛人大佬:
花了30秒,终于打开了。

蓝瘦香菇牛人大佬:


花了30秒,终于打开了。

刚放ion的免费空间上了,看来拉胯

ymh1147牛人大佬:
为什么我打开除了head都是白板,必须登录?

chinayang牛人大佬:


花了30秒,终于打开了。

小jie姐站不错

aipage牛人大佬:


刚放ion的免费空间上了,看来拉胯

免空,你还叫小鸡
我的免空就挂了个米和WP默认模板。

蓝瘦香菇牛人大佬:


为什么我打开除了head都是白板,必须登录?

不用登录,我裂开了,等我换个链接

matoi牛人大佬:
花了一分钟才打开

ntgoaywh牛人大佬:
不错,比宝塔的一键部署好多了

蓝瘦香菇牛人大佬:


免空,你还叫小鸡
我的免空就挂了个米和WP默认模板。

不啊,空间只能放个web页面,api还得小鸡来顶,我以为好用,看来还得吃灰