## 명령어 양식 ##
java -jar <jar파일명>.jar --installServer
## 명령어 사용의 예 ##
java -jar forge-1.18.2-40.2.4-installer.jar --installServer
메모리 수정 → 자신의 서버 PC 물리 메모리를 확인하여 적정량을 할당 합니다. "user_jvm_args.txt" 파일을 메모장으로 엽니다.
# Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M or a G. # M means Megabyte, G means Gigabyte. # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M # A good default for a modded server is 4GB. # Uncomment the next line to set it. -Xmx6G -Xms4G <------ Xmx(최대메모리) Xms(최소메모리)를 PC 환경에 맞게 수정함
Step5 : 게임 엔진 구동
run.bat 파일을 수행합니다. (run.sh은 리눅스에서 사용하는 파일이므로 삭제해도 무관 합니다)
## 명령어 형식 ##
java -jar forge-{Version}-installer.jar --installServer
## 명령어 예시 ##
java -jar forge-1.21.5-55.0.4-installer.jar --installServer
메모리 수정 : user_jvm_args.txt
# Note: Not all server panels support this file. You may need to set these options in the panel itself.
# Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M (for megabyte) or a G (for gigabyte). # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB. Do not allocate excessive amounts of RAM as too much may cause lag or crashes. # Uncomment the next line to set it. To uncomment, remove the # at the beginning of the line. -Xmx16G <---- 이 부분에 '#' 주석을 지우고 원하는 최대 메모리 용량을 기입