├── unb.service ├── unb_deb_install.sh ├── unb_centos_install.sh └── README.md /unb.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=unb 3 | After=network-online.target 4 | Wants=network-online.target systemd-networkd-wait-online.service 5 | 6 | [Service] 7 | Type=simple 8 | User=root 9 | DynamicUser=true 10 | ExecStart=/usr/bin/node /usr/UnblockNeteaseMusic/app.js -p 1234 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /unb_deb_install.sh: -------------------------------------------------------------------------------- 1 | apt install -y git 2 | curl -sL https://rpm.nodesource.com/setup_10.x | bash - 3 | apt install -y nodejs 4 | git clone https://github.com/nondanee/UnblockNeteaseMusic.git 5 | mv UnblockNeteaseMusic /usr 6 | wget https://raw.githubusercontent.com/NewCheung/OneKey_Unblocknetease/master/unb.service 7 | mv unb.service /lib/systemd/system 8 | rm -r unb_deb_install.sh 9 | -------------------------------------------------------------------------------- /unb_centos_install.sh: -------------------------------------------------------------------------------- 1 | yum -y install git 2 | curl -sL https://rpm.nodesource.com/setup_10.x | bash - 3 | yum -y install nodejs 4 | git clone https://github.com/nondanee/UnblockNeteaseMusic.git 5 | mv UnblockNeteaseMusic /usr 6 | wget https://raw.githubusercontent.com/NewCheung/OneKey_Unblocknetease/master/unb.service 7 | mv unb.service /lib/systemd/system 8 | rm -r unb_centos_install.sh 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 一键安装网易云解锁 2 | ## 原项目地址:https://github.com/nondanee/UnblockNeteaseMusic 3 | ## 安装完成后,默认解锁HTTP代理地址是: ip:1234 4 | # 一、安装 5 | ## centos安装 6 | ``` shell 7 | wget https://raw.githubusercontent.com/NewCheung/OneKey_Unblocknetease/master/unb_centos_install.sh && chmod +x unb_centos_install.sh && ./unb_centos_install.sh && systemctl start unb && systemctl status unb 8 | ``` 9 | 10 | ## deb系(debian/ubuntu)安装 11 | ``` shell 12 | wget https://raw.githubusercontent.com/NewCheung/OneKey_Unblocknetease/master/unb_deb_install.sh && chmod +x unb_deb_install.sh && ./unb_deb_install.sh && systemctl start unb && systemctl status unb 13 | ``` 14 | # 二、更改端口(可跳过用1234默认) 15 | ## 1.编辑 ```/lib/systemd/system/unb.service``` 文件里ExecStart=后面`-p`参数后面数字(端口) 16 | ## 2.执行```systemctl daemon-reload```重载systemd,再执行```systemctl restart unb```重启 17 | 18 | # 三、添加自启 19 | ### 添加开机自启:```systemctl enable unb ``` 20 | --------------------------------------------------------------------------------