Salutare , in acest tutorial va voi explica cum sa rulati 2 sau mai multe servere de Metin2 pe acelasi IP si acelasi VPS.
E foarte simplu, si nu necesita nici o editare in sursa.
Sa incepem !
Sa zicem ca serverul vostru actual este in /usr/home/*.* si se numeste "GAME"
1. Clonam GAME si il redenumim in altceva. Eu il redenumesc GAME_1
2. Intram in GAME_1 si in start.sh , close.sh , clear.sh ,si le modificam cu path-ul GAME_1.(Aveti grija la symlinkuri ... sa nu se editeze si in celalat folder )
3. Ne ducem in /var/db/mysql .
a) Scriem: service mysql-server stop
b) Copiati : Account , Player ,Common , LOG, Hotbackup, si le redenumiti Account_1 , Player_1 , Common_1, LOG_1, Hotbackup_1.
c) Paste. Va trb sa arate totul in folder cam asa. Account, Account_1 , Common, Common_1 , si asa mai departe.
d) service mysql-server start
e) mysql -u root -p apoi parola voastra
f)GRANT ALL PRIVILEGES ON * . * TO 'root@'%';
GRANT ALL PRIVILEGES ON * . * TO 'server2'@'localhost'; (server2 este numele in config la ch-uri)
g) FLUSH ALL; exit;
4. Ne ducem in /usr/home/game_1 :
a)Luati toate configurile la CH-uri , db , auth , la rand si modificati cu noile baze de date. (unde vedeti account ,puneti account_1 , player -> player_1 si asa mai departe.
b)Schimbati porturile din configuri , cu unele diferite fatza de celalalt server , pentru a putea merge.(Schimba nr din fatza)
Acum daca vrei sa deschzii serverele te duci la locatia lor si le dai sh start.sh .
ATENTIE !
Aveti grija la symlinkuri , daca vedeti asa , modificatile path-urile
ATENTIE !
Trebuie sa aveti RAMI suficienti
Reset parola mysql
In ultimul timp am vazut multi detinatori de servere care nu stiu sa reseteze parola mysql din...