Last update at :2024-07-08,Edit by888u
The following script has been successfully run on UBUNTU16.04/18.04 64-bit test. The script is automatically installed as a system service.
Background information:
Renren Film and Television has built a blockchain. You can download movie episodes, but at the same time share the bandwidth. In this way, you can earn Renren Diamonds and CVNT, which is actually bandwidth mining. It is recommended to change the download location and the default panel password. If you are just hanging up, please select All downloads in [Auto Download] in Panel -> Options, otherwise it will be zero upload. It will automatically download the latest video and then upload it automatically.
Create script:
cd /root touchrenren.sh chmod +x renren.sh nanorenren.sh Script content: ##!/bin/bash apt update -y apt install -y wget curl screen make ##installation path Path="/root/" cd $Path ##Download the latest version of Renren Film and Television rm -rf rrshareweb rm -rf /root/rrshareweb_centos7.tar.gz wget https://appdown.rrysapp.com/rrshareweb_centos7.tar.gz tar -zxvf rrshareweb_centos7.tar.gz cdrrshareweb rm -rf /root/rrshareweb_centos7.tar.gz ##Create service systemctl (start/stop/status/restart) renren cat > /lib/systemd/system/renren.service <<-EOF [Unit] Description=RenRen server After=network.target Wants=network.target [Service] Type=simple PIDFile=/run/renren.pid ExecStart=/root/rrshareweb/rrshareweb RestartPreventExitStatus=23 Restart=always ExecStop=/bin/kill -s QUIT $MAINPID User=root [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable renren.service ##Installation completed PublicIP=$(curl -4 icanhazip.com) echo 'The default port is 3001, which can be modified in the configuration file. Please pay attention to the firewall settings. ' echo "Panel address: http://$PublicIP:3001" echo 'Panel password: 123456' echo 'Configuration file: /root/rrshareweb/conf/rrshare.json' echo "Usage: systemctl {start|restart|stop|status} renren" echo "BY tomcb" echo "https://madlax.pw/2019/01/248.html" Instructions:Start service:
systemctl start renren
Stop service:
systemctl stop renren
View service status:
systemctl status renren
Restart the service:
systemctl restart renren
Note: The download directory location must be modified in the Web panel
Crontab scheduled service restart
0 0 * * * systemctl restart renren Reprinted from: https://madlax.pw/2019/01/248.htmlIn addition, you can use Under CentOS, Renren Film and Television Web version one-click installation script
Recommended site search: cheapest dual-line space, server, asp.net space, US PHP host, domain name value evaluation, domain name space registration, free domain name registration, US attack defense server, registration query Ministry of Industry and Information Technology, South Korea high defense server ,
发表评论