蓝瘦香菇牛人大佬:
先上链接 -> YesPlayMusic
源码来自 -> https://github.com/Binaryify/NeteaseCloudMusicApi (感谢Binaryify)
-> https://github.com/qier222/YesPlayMusic (感谢qier222)
简单上手 -> 环境 LinodeVPS + debian 10,一只小鸡即可胜任。
下面是核心操作
- #安装node.js LTS (v14.x)
- apt update && apt install -y git curl
- curl -sL https://deb.nodesource.com/setup_lts.x | bash –
- apt-get install -y nodejs
- #安装网易云音乐API
- git clone https://github.com/Binaryify/NeteaseCloudMusicApi.git
- cd NeteaseCloudMusicApi
- npm install
- #运行网易云音乐API(可以通过nohup screen supervisor等后台运行)
- cd NeteaseCloudMusicApi
- PORT=3000 HOST=0.0.0.0 node app.js
- #安装yarn
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add –
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- apt-get update && apt-get install -y yarn
- #安装YesPlayMusic
- git clone https://github.com/qier222/YesPlayMusic.git
- cd YesPlayMusic
- yarn install
- cp .env.example .env
- #假设上述网易云音乐API解析到了music.example.com
- sed -i ‘s/127.0.0.1/music.example.com/g’ ./.env
- yarn run build
- #将 /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还得小鸡来顶,我以为好用,看来还得吃灰