How to change main server?
First of all we need to take important backups.
First of all we need to take important backups.
- Go to manage servers page, edit main server and add your new server ip and save it. Never run start_services.sh or any other command.
- Go to settings ==> Backups ==> Create New backup
- Now login to your main server ssh via WinSCP and go to /home/xtreamcodes/iptv_xtream_codes/adtools/backups and download your latest backup locally.
- Now download this file locally from your main server and all your LBs /home/xtreamcodes/iptv_xtream_codes/nginx/conf/ngix.conf
- Now as our main server has now new IP and MySQL password, get main server MySQL password then run this command one by one on each LB to update IP and MySQL Pass
Bash:wget https://raw.githubusercontent.com/shinctl/XtreamUI/master/pytools/config.py && python config.py ENCRYPT
Last edited by a moderator: