Freebsd 11.1 -> Mariadb / Source Build Et / Sorunsuz

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 282

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba ben Petyr Baelish Nam-ı diğer Littlefinger,
Bugün çoğunuzun işini kolaylaştıracak bir vdi dosyası paylaşacağım.
Bu dosyayla sabit sunucu, hamachi server, statik ip server açabilirsiniz, localhost'da oyunu editleyebilirsiniz.
İçerisinde Mysql olarak Mariadb vardır. Source build etmek için gerekli tüm ekipmanlar yüklüdür. Dosyalarınızı atıp oyuna start verip girebilirsiniz. 9.3'den daha stabil ve daha hızlı ve daha güçlü çalışır.

Özellikler
  • <li data-xf-list-type="ul">
    İşletim Sistemi: FreeBSD-11.1-RELASE-p8-amd64
VM'yi kur
  • <li data-xf-list-type="ul">
    Ova dosyasını rardan çıkartın.
    Ova uzantılı dosyaya iki defa tıklayın.
    e61a7352d4c67439aa50282e11b79aa4.gif

    Yükle'ye tıklayın(bu bölümde ram ve cpu ayarını yapabilirsiniz.)
    Yükleme bittikten sonra internet ayarlarınızı yapıp oyuna girebilirsiniz.

    Giriş yaptıktan sonra DHCP'yi kapatın.
    Nasıl kapatılır::
Kod:
# bsdconfig-&gt;Networking Management-&gt;Network interfaces-&gt;em0-&gt;DCHP(cliccate Ok)-&gt;Save exit-&gt;Yes-&gt;Cancel-&gt;Exit bsdconfig
#pkg info
autoconf-2.69_1 Automatically configure source code on many A * x platforms
autoconf-wrapper-20131203 GNU script autoconf
automake-1.15.1 GNU Standards-compliant Makefile generator
automake-wrapper-20131203 Wrapper script for GNU automake
bison- 3.0.4.1 Parser generator from FSF, (mostly) compatible with Yacc
ca_root_nss-3.36 Root certified bundle from the Mozilla Project
cmake-3.10.2 Cross-platform Makefile generator
curl-7.59.0 Command line tool and library for transferring data with URLs
dialog4ports-0.1.6 Console Interface to configure ports
expat-2.2.5 XML 1.0 parser written in C
gettext-runtime-0.19.8.1_1 GNU gettext runtime libraries and programs
gettext-tools-0.19.8.1 GNU gettext development and translation tools
gmake-4.2.1_2 GNU version of 'make' utility
help2man-1.47.6 Automatically generating simple manual pages from the program output
indexinfo-0.3.1 Utility to regenerate the GNU info page index
jsoncpp-1.8.1_3 JSON reader and writer for C ++ library
libarchive-3.3.2.1 Library to create and read several streaming archive formats
libedit-3.1.20170329_2.1 Command line editor library
libffi-3.2.1_2 Foreign Function Interface
libiconv-1.14_11 Character set conversion
liblz4-1.8.1.2.1 LZ4 compression library, lossless and very fast
libnlttp2-1.31.0 HTTP / 2.0 C Library
libtool-2.4.6 Generic shared library support script
libuv-1.19.2 Multi- platform support library with a focus on asynchronous I / O
libxml2-2.9.7 XML parser library for GNOME
lzo2-2.10_1 Portable speedy, lossless data compression library
m4-1.4.18.1 GNU M4
mariadb102-client-10.2.13 Multithreaded SQL database (client)
mariadb102-server-10.2.13 Multithreaded SQL database (server)
p5-Locale-gettext-1.07 Message handling functions
perl5-5.24.3 Practical Extraction and Report Language
pkg-1.10.3_1 Package manager
pkgconf-1.4.2.1 Utility to help configure the compiler and linker flags
py27-Babel-2.5.1 Python applications
py27-Jinja2-2.10 Fast and easy to use stand-alone template engine
py27-MarkupSafe-1.0 XML / HTML / XHTML implementations Markup safe string for Python
py27-alabaster-0.7.6 Modified Kr Sphinx theme
py27 -asn1crypto-0.22.0 ASN.1 library with a focus on performance and a pythonic API
py27-certifi-2018.1.18 Mozilla SSL certificates
py27-cffi-1.11.2 Foreign Function for Python calling C code
py27-chardet-3.0.4 Universal encoding detector for Python 2 and 3
py27-cryptography-2.1.4 Cryptographic recipes and primitives for Python developers
py27-docutils-0.14_1 Python Documentation Utilities
py27-enum34-1.1.6 Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7
py27-idna-2.6 Internationalized Domain Names in Applications (
IDNA ) py27-imagesize-0.7.1 Python image size library
py27-ipaddress- 1.0.19 Port of Python 3.3+ ipaddress module to 2.7
py27-openssl-17.5.0_1 Python interface to the OpenSSL library
py27-pycparser-2.10 C python parser
py27-pygments-2.2.0 Syntax highlighter python
py27-pyysocks-1.6.8 Python SOCKS module
py27-pystemmer-1.3.0_1 Snowball Stemming Algorithms for Information Retrieval
py27-pytest-runner- 2.11.1 Test support for pytest runner in setup.py
py27-pytz-2018.3.1 World Timezone Definitions for Python
py27-requests-2.18.4 HTTP library written in Python for human beings
py27-setuptools-38.5.2 Python packages installer
py27 -setuptools_scm-1.15.5 Setuptools plugin to manage your versions by scm tags
py27-six-1.11.0 Python 2 and 3 compatibility utilities
py27-snowballstemmer-1.2.0_1 Snowball library python library
py27-sphinx-1.6.5_1.1 Python documentation generator
py27-sphinx_rtd_theme-0.2.4 Mobile-friendly py-sphinx theme
py27-sphinxcontrib-websupport-1.0.1 Sphinx API for Web Apps
py27-typing-3.6.4 Type Hints for Python
py27-urllib3-1.22 HTTP library with thread-safe connection pooling, post file, and more
python27-2.7.14_1 Interpreted object-oriented programming language
readline-7.0.3_1 Library for editing command lines as they are typed
rhash-1.3.5 Utility and library for computing and checking of file hashes
scons-3.0.1 Alternative tool to make
texinfo-6.5.1 Typeset documentation system with multiple format output
unixODBC-2.3.5 ODBC library suite for Unix Accesses
  • <li data-xf-list-type="ul">
    SSH, SFTP (Putty, WinSCP)
    Remote MariaDB (Navicat, mysql)
    Local MariaDB (gameserver) <li data-xf-list-type="ul">Kullanıcı Adları:root Şifre:wonkaservice
İndirme Linki:

Bu dosya @Ramsay Bolton 'ın katkılarıyla Petyr Baelish tarafından hazırlanmıştır.

FreeBSD 11.1 Sisteminde MariaDB Kaynağından Derleme (Source Build) Nasıl Yapılır?
Metin2Lobby olarak, FreeBSD tabanlı sunucular üzerinde Metin2 oyun sunucularını çalıştırmak isteyen geliştiriciler için en güvenilir yöntemlerden birisi olan MariaDB'nin kaynaktan derlenmesidir. Bu makalede, FreeBSD 11.1 sürümünde MariaDB'yi sorunsuzca nasıl kurabileceğinizi adım adım anlatıyoruz.

Neden Kaynaktan Derleme?
FreeBSD üzerinde MariaDB gibi veritabanı yazılımlarını derlemek, daha fazla kontrol ve performans avantajı sağlar. Özellikle Metin2 sunucularında yüksek güvenlik ve kararlılık gerektiği için, source build yöntemi tercih edilmelidir. Paket yöneticisiyle kurulan sürümler bazı durumlarda yeterince optimize edilmemiş olabilir.

Hazırlık Adımları
Öncelikle sisteminizde gerekli derleme araçlarının yüklü olduğundan emin olun. GCC, CMake, Boost kütüphaneleri gibi temel bileşenlerin eksiksiz olması gerekmektedir.

Güncel sistem komutları:
Kod:
pkg update && pkg upgrade[BR][/BR]pkg install gcc cmake boost-libs git wget perl[BR][/BR]

MariaDB Kaynağını İndirme
MariaDB resmi sitesinden veya GitHub deposundan en güncel stabil sürümü indirin. FreeBSD 11.1 üzerinde uyumlu olan 10.2.x serisi önerilir.

Kod:
cd /usr/local/src[BR][/BR]wget https://downloads.mariadb.org/f/mariadb-10.2.37/source/mariadb-10.2.37.tar.gz[BR][/BR]tar -zxvf mariadb-10.2.37.tar.gz[BR][/BR]cd mariadb-10.2.37[BR][/BR]

CMake ile Yapılandırma
Derleme öncesi yapılandırmaları yapmalısınız. Aşağıdaki komutları sırasıyla çalıştırarak MariaDB için gerekli ayarlamaları yapın.

Kod:
cmake . \[BR][/BR]-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \[BR][/BR]-DMYSQL_DATADIR=/var/db/mysql \[BR][/BR]-DSYSCONFDIR=/usr/local/etc \[BR][/BR]-DWITH_SSL=bundled \[BR][/BR]-DDEFAULT_CHARSET=utf8mb4 \[BR][/BR]-DDEFAULT_COLLATION=utf8mb4_general_ci \[BR][/BR]-DEXTRA_CHARSETS=ALL[BR][/BR]

Derleme ve Kurulum
Derleme işlemi tamamlandığında, aşağıdaki komutla sisteme kurulumu gerçekleştirebilirsiniz.

Kod:
make -j$(nproc)[BR][/BR]make install[BR][/BR]

MariaDB Başlatma ve Yapılandırma
Kurulum sonrası MariaDB servisini başlatmadan önce, yapılandırma dosyasını doğru şekilde ayarlayın. Gerekli dizinleri oluşturun ve izinleri düzenleyin.

Kod:
mkdir -p /var/db/mysql[BR][/BR]chown mysql:mysql /var/db/mysql[BR][/BR]/usr/local/mysql/scripts/mysql_install_db --user=mysql --datadir=/var/db/mysql[BR][/BR]

Servisi Başlatma
Ardından servisi başlatmak için:
Kod:
/usr/local/mysql/bin/mysqld_safe --user=mysql &[BR][/BR]

Başlangıçta Güvenlik Ayarları
Güvenlik ayarlarını yapmak için aşağıdaki komutu çalıştırarak root şifresi ve diğer güvenlik adımlarını tamamlayın.
Kod:
/usr/local/mysql/bin/mysql_secure_installation[BR][/BR]

Metin2 Sunucusu ile Entegrasyon
Metin2 oyun sunucuları genellikle MariaDB ile doğrudan entegre çalışır. Veritabanı bağlantı ayarlarınızı doğru şekilde yapılandırmanız önemlidir. FreeBSD üzerinde MariaDB, jail ortamında da çalıştırılabilir. Bu sayede sistem güvenliği daha da artırılır.

Sonuç
FreeBSD 11.1 üzerinde MariaDB'nin kaynaktan derlenmesi, Metin2 sunucuları için güçlü ve kararlı bir veritabanı çözümü sunar. Doğru yapılandırılmış bir kurulum ile sunucunuzun performansı ve güvenliği ciddi anlamda artar. Daha fazla bilgi için Metin2Lobby üzerinden destek alabilirsiniz.


How to Build MariaDB from Source on FreeBSD 11.1?
As Metin2Lobby, one of the most reliable methods for developers wanting to run Metin2 game servers on FreeBSD-based systems is building MariaDB from source. In this article, we will explain step by step how to install MariaDB on FreeBSD 11.1 without any issues.

Why Build from Source?
Building database software like MariaDB on FreeBSD provides more control and performance benefits. Especially for Metin2 servers requiring high security and stability, the source build method should be preferred. Versions installed via package managers may sometimes not be sufficiently optimized.

Preparation Steps
Firstly, ensure that required build tools are installed on your system. Essential components such as GCC, CMake, and Boost libraries must be fully available.

Update system commands:
Kod:
pkg update && pkg upgrade[BR][/BR]pkg install gcc cmake boost-libs git wget perl[BR][/BR]

Downloading MariaDB Source Code
Download the latest stable version from the official MariaDB site or GitHub repository. The 10.2.x series, compatible with FreeBSD 11.1, is recommended.

Kod:
cd /usr/local/src[BR][/BR]wget https://downloads.mariadb.org/f/mariadb-10.2.37/source/mariadb-10.2.37.tar.gz[BR][/BR]tar -zxvf mariadb-10.2.37.tar.gz[BR][/BR]cd mariadb-10.2.37[BR][/BR]

Configuration with CMake
Before compiling, configure settings properly. Execute the following commands to set up necessary configurations for MariaDB.

Kod:
cmake . \[BR][/BR]-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \[BR][/BR]-DMYSQL_DATADIR=/var/db/mysql \[BR][/BR]-DSYSCONFDIR=/usr/local/etc \[BR][/BR]-DWITH_SSL=bundled \[BR][/BR]-DDEFAULT_CHARSET=utf8mb4 \[BR][/BR]-DDEFAULT_COLLATION=utf8mb4_general_ci \[BR][/BR]-DEXTRA_CHARSETS=ALL[BR][/BR]

Compiling and Installing
After the compilation process is complete, execute the installation into the system using the following command.

Kod:
make -j$(nproc)[BR][/BR]make install[BR][/BR]

Starting and Configuring MariaDB
Before starting the MariaDB service after installation, correctly set the configuration file. Create necessary directories and adjust permissions.

Kod:
mkdir -p /var/db/mysql[BR][/BR]chown mysql:mysql /var/db/mysql[BR][/BR]/usr/local/mysql/scripts/mysql_install_db --user=mysql --datadir=/var/db/mysql[BR][/BR]

Starting the Service
To start the service afterwards:
Kod:
/usr/local/mysql/bin/mysqld_safe --user=mysql &[BR][/BR]

Initial Security Settings
Run the following command to finalize security steps such as setting the root password and other security measures.
Kod:
/usr/local/mysql/bin/mysql_secure_installation[BR][/BR]

Integration with Metin2 Server
Metin2 game servers typically integrate directly with MariaDB. Properly configuring your database connection settings is crucial. On FreeBSD, MariaDB can also run within a jail environment, enhancing system security further.

Conclusion
Building MariaDB from source on FreeBSD 11.1 provides a robust and stable database solution for Metin2 servers. With a properly configured setup, your server's performance and security increase significantly. For more information, you can get support through Metin2Lobby.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt