This step-by-step guide will walk you through the process of creating your own Lineage 2 private server using L2JServer. From setting up the server environment to running the game server, we’ve got you covered!
Before we start, you’ll need to install a few essential tools:
Now, let’s create the required databases using MySQL or MariaDB. Open the MySQL console and enter the following commands to create the necessary databases:
CREATE DATABASE l2jgs; -- for Game Server
CREATE DATABASE l2jls; -- for Login Server
Create a new MySQL user for the server:
CREATE USER 'l2juser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON l2jgs.* TO 'l2juser'@'localhost';
GRANT ALL PRIVILEGES ON l2jls.* TO 'l2juser'@'localhost';
FLUSH PRIVILEGES;
Import the SQL files into the databases you just created:
mysql -u l2juser -p l2jgs < gameserver.sql
mysql -u l2juser -p l2jls < loginserver.sql
Next, we’ll configure the server to connect to your databases:
Edit the loginserver.properties file to configure the login server:
# login/config/loginserver.properties
URL=jdbc:mysql://localhost/l2jls
Login=l2juser
Password=password
Edit the server.properties file for the game server:
# gameserver/config/server.properties
URL=jdbc:mysql://localhost/l2jgs
Login=l2juser
Password=password
Start the login server by running the following command:
./startLoginServer.sh # For Linux/Mac startLoginServer.bat # For Windows
Next, start the game server:
./startGameServer.sh # For Linux/Mac startGameServer.bat # For Windows
To connect to your private server, modify the hosts file on your system to point the game client to your server IP:
your-server-ip l2authd.lineage2.com
Your server is now up and running! From here, you can begin customizing the server by modifying configuration files, adding new content, or enhancing gameplay mechanics. Be sure to check the L2JServer Wiki for additional guidance.
For more in-depth help and advice, visit the L2JServer Forum.
More related stuff : Lineage 2 private servers, Lineage 2 FAQs, Lineage 2 emulators