Hello,
I tried to install the l2j on CentOS 7. I used the wiki page.
I did the follings commands:
mkdir /opt/l2j
useradd -s /bin/false -d /opt/lineage2 -c "Linage 2 Daemon User" lineage2
cd /opt/l2j
git clone https://bitbucket.org/l2jserver/l2j_server.git
git clone https://bitbucket.org/l2jserver/l2j_datapack.git
cd l2j_datapack
yum install java-1.8.0-openjdk -y
./gradlew build
But the gradlew build failed:
Could not resolve all dependencies for configuration ':compileClasspath'.
So I looked at the support chatroom and read there (in the history) that there is a zip file with all server datas.
I downloaded the zip file (https://bitbucket.org/l2jserver/l2j_ser ... .6.0.0.zip)
I created the two databases and started the login server. This worked fine.
The error logs says, that he wasnt able to find the right tables.
Where I can find the database dumps for the tables? Or its enough to create empty tables?
Cheers, Mordecaine
[SOLVED] Installation on CentOS 7
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: Installation on CentOS 7
Let me test.
Powered by Eclipse 4.30 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
Join our Discord!
Join our Discord!
-
- Posts: 5
- Joined: Mon Jun 12, 2017 5:12 pm
Re: Installation on CentOS 7
Ok, I did the following steps.
I found out, that there are two helper jars (in Zip file):
dbinst_gs.jar
dbinst_ls.jar
I started the jars with the follwing command:
java -jar dbinst_gs.jar
After that, the programm asks me:
After that, the tables are still empty.
Now I found (in the git clone) a lot of .sql files:
/opt/l2j/l2j_datapack/dist/sql/game
/opt/l2j/l2j_datapack/dist/sql/login
Now I did the following commands:
for i in $(ls -1 *.sql);do mysql -u l2j_game_server -pMyPassword l2jgs < $i;done
and the same for the login server. Now I have all tables.
Is there a better way to do this?
Cheers, Morde
I found out, that there are two helper jars (in Zip file):
dbinst_gs.jar
dbinst_ls.jar
I started the jars with the follwing command:
java -jar dbinst_gs.jar
After that, the programm asks me:
Code: Select all
java -jar dbinst_ls.jar
Welcome to L2J DataBase installer
Jun 14, 2017 4:26:11 PM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml
Host (localhost):
Port (3306):
Username (root): l2j_login_server
Password (): MyPassword
Database (l2jls):
(C)lean install, (U)pdate or (E)xit? C
Writing dump l2jls_dump_20170614-162632.sql
Dump Complete!
Installing Database Content...
Database Installation Complete!
Database Installation Complete!
Now I found (in the git clone) a lot of .sql files:
/opt/l2j/l2j_datapack/dist/sql/game
/opt/l2j/l2j_datapack/dist/sql/login
Now I did the following commands:
for i in $(ls -1 *.sql);do mysql -u l2j_game_server -pMyPassword l2jgs < $i;done
and the same for the login server. Now I have all tables.
Is there a better way to do this?
Cheers, Morde
-
- Posts: 5
- Joined: Mon Jun 12, 2017 5:12 pm
Re: Installation on CentOS 7
I get still errors.
I think I should go back to the first step and get out, why the "gradlew build" command failed.
@Zoey76 Did you test the gradlew build with centos 7?
If you have no centos 7, we can do a teamviewer session, and you cant test on my machine.
Cheers, Morde
I think I should go back to the first step and get out, why the "gradlew build" command failed.
@Zoey76 Did you test the gradlew build with centos 7?
If you have no centos 7, we can do a teamviewer session, and you cant test on my machine.
Cheers, Morde
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: Installation on CentOS 7
I have installed CentOS 7 on a virtual machine, I'll test it myself and add it to the wiki.
Powered by Eclipse 4.30 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
Join our Discord!
Join our Discord!
-
- Posts: 5
- Joined: Mon Jun 12, 2017 5:12 pm
Re: Installation on CentOS 7
When it works on my server, I can build a RPM package for you. Then its a bit easier for RedHat, CentOS, Fedora and Oracle Linux users.
After that I can write a documentation and you can upload it if you want to.
Further more I can write a service file for login and game server. After that the SystemD is able to start the processes and its a bit easier to handle the daemons.
Thanks for your help,
Morde
After that I can write a documentation and you can upload it if you want to.
Further more I can write a service file for login and game server. After that the SystemD is able to start the processes and its a bit easier to handle the daemons.
Thanks for your help,
Morde
-
- Posts: 5
- Joined: Mon Jun 12, 2017 5:12 pm
Re: Installation on CentOS 7
Did you update the wiki?
Maybe I have the wrong wiki. I searched in this wiki page: https://bitbucket.org/l2jserver/l2j_server/wiki/Home
Cheers,
Morde
Maybe I have the wrong wiki. I searched in this wiki page: https://bitbucket.org/l2jserver/l2j_server/wiki/Home
Cheers,
Morde
- regenx
- Posts: 319
- Joined: Sat Jul 17, 2010 6:55 am
Re: Installation on CentOS 7
How is L2J server on CentOS? Better than Ubuntu 16.04 LTS?
It is stable? CentOS distro is recommended for web servers, it is good for gaming and java app?
It is stable? CentOS distro is recommended for web servers, it is good for gaming and java app?
https://45.media.tumblr.com/645731474a5 ... o1_400.gif
^^ Rengar FTW!
^^ Rengar FTW!
-
- Advanced User
- Posts: 1026
- Joined: Thu Aug 14, 2014 6:31 am
Re: Installation on CentOS 7
Every linux distro, correctly installed will be good... We could say that even works better in linux (any distro)...
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: Installation on CentOS 7
For CentOS please follow the official guide http://www.l2jserver.com/centos.html
Powered by Eclipse 4.30 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
Join our Discord!
Join our Discord!