仓库传送:UnblockNeteaseMusic
curl -sL http://rpm.nodesource.com/setup_18.x | bash-
yum install -y nodej
yum install git -y
git clone http://https://github.com/nondanee/UnblockNeteaseMusic.git
git clone https://gitee.com/leopku/UnblockNeteaseMusic.git
cd UnblockNeteaseMusic
npx @nondanee/unblockneteasemusic
node app.js -p 8000:8002 -e http://music.163.com -s
vim /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=/usr/bin/node app.js -p 4000:4002 -e https://music.163.com -s
Restart=always
RestartPreventExitStatus=23
[Install]
WantedBy=multi-user.target
sudo systemctl start UnblockNeteaseMusic
sudo systemctl enable UnblockNeteaseMusic.service