Genshin One (3): Server operation and server configuration based on Cent OS 7-based remote server construction

Genshin One(三):基于Cent OS 7 的远程服务端搭建之服务端运行和服务器配置

Server running + server configuration

You can directly upload the mower folder of the integration package to the server, or you can go to Github to download the latest version https://github.com/Grasscutters/Grasscutter

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

Run directly with default configuration

 cd /root/genshin/grasscutter/
 java -jar /root/genshin/grasscutter/grasscutter.jar

or

 java -jar grasscutter.jar

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

If the port conflicts, as shown in the figure above, go to the config of the lawn mower to modify the port

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

There are two types of server and game. The bindaddress does not need to be ignored. The accessaddress needs to be modified. If it is accessed from the public network, it needs to be modified to the public IP. For external IP access, the external IP needs to be modified. The local access is 127.0.0.1. No problem.

Then the server uses the TCP protocol. The default is HTTPS on port 443. You can change it to other ports, but note that this is still HTTPS, not HTTP. If you are asked to fill in the server address in other tools, you must have HTTPS instead of HTTP. .

Then the game uses the UDP protocol, the default is port 22102, this can be changed or not.

If you want to access the public network, then in addition to the access address here, you need to change the access address here, and then you need to go to Pagoda-Security-Release these two, and then the system firewall must be assured, as well as the cloud server provider (such as Tencent Cloud, Amazon Cloud) , Some systems may have multiple firewalls, which must be opened, whitelisted, and closed one by one.

Then you can go to ping.pe to check that the tcp of this port is not working. If you open IP:Port directly with https, it will return Welcome to the lawnmower.

There is nothing else to modify. You can refer to the documentation and make some adjustments. The new ones will not be affected.

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

The correct operation is shown in the figure above, and it is not correct until Done is loaded.

Of course, this default is not running in the background

  1. I tried the Supervisor process daemon of the pagoda and found that it didn’t work.
  2. I tried the Pagoda Application Manager, and the operation is OK, but it will abnormally report EOF in the log, resulting in an explosion.
  3. I tried nohup with a log, and the explosion log of several M per second is OK.
  4. I tried nohup without the log, it seems that there is no problem, the log is discarded.
  5. I haven’t tried screen, but others can use it. https://iphysresearch.github.io/blog/post/programing/linux_shell/screen/
  6. I don’t know the reason for this explosion output problem. The lawn mower I downloaded may not be the official original version, and it has a lot of plug-ins installed.

Reference command

 nohup java -jar /root/genshin/grasscutter/grasscutter.jar >> /root/genshin/grasscutter/genshin.log &
 nohup java -jar /root/genshin/grasscutter/grasscutter.jar &

Remember to run in /root/genshin/grasscutter/ which is your lawnmower directory

Then use a dedicated proxy assistant for the connection method. I have already talked about it in the first tutorial.

I still choose nohup to run without logs here.

To close the game just kill the process

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

For IOS access, please refer to Using Grasscutter Server to Build Genshin Impact

For common errors, please refer to Yuanshen Private Server Construction Tutorial

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