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

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


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


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


 yum -y install wget git zsh tmux vim cd ~ wget --no-check-certificate tar zxvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz mv jdk-17.0.3+7 /usr/local/java java -version



 cd /usr/local wget tar -zxvf jdk-17_linux-x64_bin.tar.gz mv jdk- java



Remember to check the alignment of the directory and move it


 cd /usr/local/java wget --no-check-certificate tar zxvf jdk-18_linux-x64_bin.tar.gz



Remember to check the alignment of the directory and move it

Uninstall the old version of JDK

Find the JDK path

 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


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


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


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

 wget 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


 wget 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
This site is for inclusion only, and the copyright belongs to the original author.