Genshin One (2): Environment Construction Based on Cent OS 7 Remote Server Construction

Genshin One(二):基于Cent OS 7 的远程服务端搭建之环境构建

foreword

Only for personal learning Java programming use, not for commercial profit, please delete within 24 hours

Demo environment: CentOS 7 Contabo 6C16G server

Note that the game is very delayed, and the European and American experience may be bad. We recommend servers from Hong Kong GIA, CMI, Japan SB, 9929, GIA, Singapore GIA and other network servers.

I feel that the load of a single person is not high, and the configuration should be quite low.

Then to run the Genshin server, you need three basic ones: JDK, MongoDB, and Python.

Since python is basically installed by normal people, let’s not talk about it, let’s show the environment of configuring the server in the pagoda environment

JDK

At present, it is recommended to use JDK18 directly, and some compiled versions cannot run with JDK17 and OPENJDK.

Refer to the error Exception in thread “main” java.lang.UnsupportedClassVersionError: me/exzork/commands/ApplyCommand$1 has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0

OPENJDK17

 yum -y install wget git zsh tmux vim cd ~ wget --no-check-certificate https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.3%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz tar zxvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz mv jdk-17.0.3+7 /usr/local/java java -version

QQ%E5%9B%BE%E7%89%8720220917114345.png

JDK17

 cd /usr/local wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz tar -zxvf jdk-17_linux-x64_bin.tar.gz mv jdk-17.0.4.1 java

QQ%E5%9B%BE%E7%89%8720220917120137.png

QQ%E5%9B%BE%E7%89%8720220917120110.png

Remember to check the alignment of the directory and move it

JDK18

 cd /usr/local/java wget --no-check-certificate https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz tar zxvf jdk-18_linux-x64_bin.tar.gz

QQ%E5%9B%BE%E7%89%8720220917112904.png

QQ%E5%9B%BE%E7%89%8720220917123332.png

Remember to check the alignment of the directory and move it

Uninstall the old version of JDK

Find the JDK path

https://blog.csdn.net/m290345792/article/details/79073358

 whereis java

Then according to the path, they are all raised and deleted with the pagoda file manager

Also consider using these commands to find

 yum list installed | grep java yum list installed | grep [java][jdk] rpm -qa | grep [java][jdk][gcj] rpm -qa | grep java

environment variable

Find the file /etc/profile and add it at the end

 export JAVA_HOME=/usr/local/java export PATH=$PATH:$JAVA_HOME/bin; export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar;

Then reload it (remember JAVA’s own directory to check the alignment and move it)

 source /etc/profile

Check the version effect

 java -version

MongoDB

It can be used directly by installing the pagoda panel, so there is no need to toss

QQ%E5%9B%BE%E7%89%8720220917115436.png

Note that it is enough to write 127.0.0.1 only for local access and only IP. For external network access, you need to open 0.0.0.0 or public network IP. Port can also consider changing to avoid scanning.

mitmproxy

Used to install certificates, currently PC players don’t need this to play.

 wget https://snapshots.mitmproxy.org/8.1.1/mitmproxy-8.1.1-linux.tar.gz tar -zxvf mitmproxy-8.1.1-linux.tar.gz -C /usr/bin /usr/bin/mitmproxy --version mitmdump --version mitmweb --version

version GLIBC_2.25 not found

Reference https://blog.csdn.net/dm569263708/article/details/125201512

 wget http://ftp.gnu.org/gnu/glibc/glibc-2.25.tar.gz tar -xvf glibc-2.25.tar.gz cd glibc-2.25 mkdir build cd build ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin make make install

This article is reprinted from https://www.blueskyxn.com/202209/6573.html
This site is for inclusion only, and the copyright belongs to the original author.