From 188665594eba65bda7a600a9feb98c71a0afe680 Mon Sep 17 00:00:00 2001 From: CivicXFB <61540722+CivicXFB@users.noreply.github.com> Date: Mon, 5 Sep 2022 10:05:30 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=A0=87=E5=BF=97=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...PNX-CLI_Launcher_Tutorial_for_Beginners.md | 66 +++++++++---------- ...60\346\211\213\346\225\231\345\255\246.md" | 66 +++++++++---------- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md b/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md index d2ad0a0..f10602e 100644 --- a/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md +++ b/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md @@ -1,18 +1,18 @@ # PNX-CLI Launcher Tutorial for Beginners -## :question:How to download PNX-CLI Launcher? -PNX-CLI Launcher 【:earth_asia:[Download](https://github.com/PowerNukkitX/PNX-CLI/releases)】 -## :question:What is the PNX-CLI starter? +## How to download PNX-CLI Launcher? +PNX-CLI Launcher 【[Download](https://github.com/PowerNukkitX/PNX-CLI/releases)】 +## What is the PNX-CLI starter? It allows you to quickly deploy **PowerNukkitX** servers on your host, with less footprint and easier management. -## :question:How to start the server without using PNX-CLI? +## How to start the server without using PNX-CLI? -:one:Download libs.tar.gz and powernukkitx.jar from [:earth_asia:[release](https://github.com/PowerNukkitX/PowerNukkitX/releases)] +1. Download libs.tar.gz and powernukkitx.jar from 【[release](https://github.com/PowerNukkitX/PowerNukkitX/releases)】 -:two:Extract the libs folder in libs.tar.gz to the same path as powernukkitx.jar +2. Extract the libs folder in libs.tar.gz to the same path as powernukkitx.jar -:three:Run the following command +3. Run the following command -##### :computer:Windows +##### Windows ``` java -Dfile.encoding=UTF-8 ^ @@ -29,7 +29,7 @@ java -Dfile.encoding=UTF-8 ^ cn.nukkit.Nukkit ``` -##### :computer:Linux +##### Linux ``` java -Dfile.encoding=UTF-8 \ @@ -46,27 +46,27 @@ java -Dfile.encoding=UTF-8 \ cn.nukkit.Nukkit ``` -## :exclamation:Notes on the installation of the PNX-CLI! -:one:No spaces in the directory folder or it won't work! +## Notes on the installation of the PNX-CLI! +1. No spaces in the directory folder or it won't work! -:two:You must install the following in the PNX_CLI installation package folder! +2. You must install the following in the PNX_CLI installation package folder! -:three:The installation is not valid if the following command is entered +3. The installation is not valid if the following command is entered -:computer:Windows CMD Try entering the following command +Windows CMD Try entering the following command ``` pnx sys-install ``` -:computer:Linux Try entering the following command +Linux Try entering the following command ``` ./pnx sys-install ``` -:computer:Windows PowerShell Try entering the following command +Windows PowerShell Try entering the following command ``` .\pnx sys-install ``` -## :question:How do I set the PNX-CLI parameters? +## How do I set the PNX-CLI parameters? Create the pnx-cli-config.ini file and enter the following text: ``` ##Simplified Chinese zh-cn English en-us @@ -76,20 +76,20 @@ preferredJVM=GraalVM ##JVM Location jvmPath=D:\jdk\java17\bin ``` -## :question:How is the PNX-CLI starter installed? +## How is the PNX-CLI starter installed? PNX-CLI offers 3 scenario deployment projects - PNX-CLI-Linux-arm - PNX-CLI-Linux-x86 - PNX-CLI-Windows-x86 Choose the right software deployment for your conditions -### :tea:Steps to install PNX server based on PNX-CLI-Windows-x86 -1. Download the PNX-CLI-Windows-x86.zip archive 【:earth_asia:[Download](https://github.com/PowerNukkitX/PNX-CLI/releases)】 +### Steps to install PNX server based on PNX-CLI-Windows-x86 +1. Download the PNX-CLI-Windows-x86.zip archive 【[Download](https://github.com/PowerNukkitX/PNX-CLI/releases)】 2. Extract the PNX-CLI-Windows-x86.zip archive using ZIP 3. Win+R to open the Run window, type cmd in the Run window to open the command window that comes with Windows 4. Find the folder where your PNX.exe is located on the disk ---- -:briefcase:**Example** : +**Example** : > My **PNX.exe** is in the **F:**\desktop\pnx-CLI folder @@ -105,7 +105,7 @@ Choose the right software deployment for your conditions ---- 5. Enter the following command in the command box to install the PNX Quick Deployment Tool, once installed, you will be able to use the PNX-CLI related commands wherever you are in the command box -**:warning:Note: You will need to restart CMD or PowerShell after the installation is complete** +**Note: You will need to restart CMD or PowerShell after the installation is complete** ``` pnx sys-install ``` @@ -149,7 +149,7 @@ pnx jvm install=OracleJDK **Download process requires a waiting period** -##### :computer:GraalJIT Instant Compiler Installation Steps +##### GraalJIT Instant Compiler Installation Steps 1. First check if GraalJIT is installed ``` @@ -182,11 +182,11 @@ pnx libs -u ``` 11. Double-click PNX.exe to start the server - **:warning:Note: You need to install the relevant VC runtime libraries** -### :tea:Steps to install PNX server based on PNX-CLI-Linux-x86(Arm) -1. Download the PNX-CLI-Linux-x86(Arm).zip archive 【:earth_asia:[Download](https://github.com/PowerNukkitX/PNX-CLI/releases)】 + **Note: You need to install the relevant VC runtime libraries** +### Steps to install PNX server based on PNX-CLI-Linux-x86(Arm) +1. Download the PNX-CLI-Linux-x86(Arm).zip archive 【[Download](https://github.com/PowerNukkitX/PNX-CLI/releases)】 2. After downloading, enter the following command -:warning:**Note: /xxx/xxx stands for the folder where your PNX-CLI-Linux-x86(Arm).zip is located** +**Note: /xxx/xxx stands for the folder where your PNX-CLI-Linux-x86(Arm).zip is located** ``` cd /xxx/xxx ``` @@ -195,7 +195,7 @@ cd /xxx/xxx unzip PNX-CLI-Linux-x86(Arm).zip ``` 4. Enter the following command in the command box to install the PNX Quick Deployment Tool, once installed, you will be able to use the PNX-CLI related commands wherever you are in the command box\ -**:warning:Note: You will need to restart the command terminal after the installation is complete** +**Note: You will need to restart the command terminal after the installation is complete** ``` pnx sys-install ``` @@ -249,7 +249,7 @@ pnx jvm install=OracleJDK **Download process requires a waiting period** -##### :computer:GraalJIT Instant Compiler Installation Steps +##### GraalJIT Instant Compiler Installation Steps 1. First check if GraalJIT is installed @@ -291,7 +291,7 @@ pnx libs -u ``` pnx ``` -## :question:How do I get PNX to run for a long time on a Linux host? +## How do I get PNX to run for a long time on a Linux host? ### To use the screen command, proceed in detail: 1. Type the following command in the command box to check if screen is installed ``` @@ -299,14 +299,14 @@ which screen ``` 2. Enter the following command in the command box to install screen - **:warning:Note: Depends on the host system** + **Note: Depends on the host system** -###### 🎯CentOS +###### CentOS ``` yum install screen ``` -###### 🎯Ubuntu +###### Ubuntu ``` apt-get install screen diff --git "a/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" "b/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" index 0697983..8752a24 100644 --- "a/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" +++ "b/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" @@ -4,22 +4,22 @@ # PNX-CLI启动器新手教学 -## :question:如何下载PNX-CLI启动器? -PNX-CLI启动器 【:earth_asia:[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 -## :question:PNX-CLI启动器是什么? +## 如何下载PNX-CLI启动器? +PNX-CLI启动器 【[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 +## PNX-CLI启动器是什么? 能在你的主机上快速部署**PowerNukkitX**服务器 -**:star2:优势: 更少的占用,更高效的管理** +**优势: 更少的占用,更高效的管理** -## :question:不使用PNX-CLI如何启动服务器? +## 使用PNX-CLI如何启动服务器? -:one:从【:earth_asia:[release](https://github.com/PowerNukkitX/PowerNukkitX/releases)】下载libs.tar.gz和powernukkitx.jar +1. 从【[release](https://github.com/PowerNukkitX/PowerNukkitX/releases)】下载libs.tar.gz和powernukkitx.jar -:two:将libs.tar.gz中的libs文件夹解压到和powernukkitx.jar同一路径下 +2. 将libs.tar.gz中的libs文件夹解压到和powernukkitx.jar同一路径下 -:three:运行以下命令 +3. 运行以下命令 -##### :computer:Windows版本 +##### Windows版本 ``` java -Dfile.encoding=UTF-8 ^ @@ -36,7 +36,7 @@ java -Dfile.encoding=UTF-8 ^ cn.nukkit.Nukkit ``` -##### :computer:Linux版本 +##### Linux版本 ``` java -Dfile.encoding=UTF-8 \ @@ -53,31 +53,31 @@ java -Dfile.encoding=UTF-8 \ cn.nukkit.Nukkit ``` -## :exclamation:安装PNX-CLI注意事项! +## 安装PNX-CLI注意事项! - :one:**目录文件夹不能有空格否则无法正常运行!** + 1. **目录文件夹不能有空格否则无法正常运行!** - :two:**你必需在PNX_CLI安装包目录文件夹下进行以下安装!** + 2. **你必需在PNX_CLI安装包目录文件夹下进行以下安装!** - :three:**你如果使用下述指令安装失败** + 3. **你如果使用下述指令安装失败** -### :computer:Linux 输入下述指令尝试 +### Linux 输入下述指令尝试 ``` ./pnx sys-install ``` -### :computer:Windows PowerShell 输入下述指令尝试 +### Windows PowerShell 输入下述指令尝试 ``` .\pnx sys-install ``` -### :computer:Windows CMD 输入下述指令尝试 +### Windows CMD 输入下述指令尝试 ``` pnx sys-install ``` -## :question:如何设置PNX-CLI参数? +## 如何设置PNX-CLI参数? 创建**pnx-cli-config.ini**文件 输入下述文本: @@ -90,7 +90,7 @@ preferredJVM=GraalVM ##JVM所在位置 jvmPath=D:\jdk\java17\bin ``` -## :question:PNX-CLI启动器如何安装? +## PNX-CLI启动器如何安装? PNX-CLI提供了3个场景部署的项目 - PNX-CLI-Linux-arm @@ -99,13 +99,13 @@ PNX-CLI提供了3个场景部署的项目 - PNX-CLI-Windows-x86 结合自身条件选择合适的软件部署 -### :tea:基于PNX-CLI-Windows-x86 安装PNX服务器相关步骤 -1. 下载PNX-CLI-Windows-x86.zip压缩包 【:earth_asia:[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 +### 基于PNX-CLI-Windows-x86 安装PNX服务器相关步骤 +1. 下载PNX-CLI-Windows-x86.zip压缩包 【[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 2. 使用ZIP解压PNX-CLI-Windows-x86.zip压缩包 3. Win+R键打开运行窗口,在运行窗口里输入cmd打开Windows自带的命令窗口 4. 找到你PNX.exe在磁盘的那个文件夹那个位置 ---- -**:briefcase:例子:** +**例子:** > **PNX.exe** 在 **F:**\桌面\pnx-CLI 文件夹里 @@ -122,7 +122,7 @@ PNX-CLI提供了3个场景部署的项目 ---- 5. 在命令框输入下述指令安装PNX快速部署工具,安装完毕后,无论在命令框哪里都能使用PNX-CLI相关指令 - **:warning:注意:安装完成后需要重启CMD或者PowerShell** + **注意:安装完成后需要重启CMD或者PowerShell** ``` pnx sys-install ``` @@ -166,7 +166,7 @@ pnx jvm install=OracleJDK **下载过程需等待一段时间** -### :computer:GraalJIT即时编译器安装步骤 +### GraalJIT即时编译器安装步骤 1. 首先检测GraalJIT是否安装 @@ -206,12 +206,12 @@ pnx libs -u ``` 11. 双击PNX.exe启动服务器 - **:warning:注意:你需要安装相关VC运行库** + **注意:你需要安装相关VC运行库** ### :tea:基于PNX-CLI-Linux-x86(Arm)安装PNX服务器相关步骤 -1. 下载PNX-CLI-Linux-x86(Arm).zip压缩包 【:earth_asia:[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 +1. 下载PNX-CLI-Linux-x86(Arm).zip压缩包 【[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 2. 下载完成后,输入下述指令\ -**:warning:注意:/xxx/xxx 代表你PNX-CLI-Linux-x86(Arm).zip所在文件夹目录** +**注意:/xxx/xxx 代表你PNX-CLI-Linux-x86(Arm).zip所在文件夹目录** ``` cd /xxx/xxx ``` @@ -220,7 +220,7 @@ cd /xxx/xxx unzip PNX-CLI-Linux-x86(Arm).zip ``` 4. 在命令框输入下述指令安装PNX快速部署工具,安装完毕后,无论在命令框哪里都能使用PNX-CLI相关指令 -**:warning:注意:安装完成后需要重启命令终端** +**注意:安装完成后需要重启命令终端** ``` pnx sys-install ``` @@ -272,7 +272,7 @@ pnx jvm install=OracleJDK **下载过程需等待一段时间** -### :computer:GraalJIT即时编译器安装步骤 +### GraalJIT即时编译器安装步骤 1. 首先检测GraalJIT是否安装 @@ -312,7 +312,7 @@ pnx libs -u ``` pnx start ``` -#### :question:如何让PNX在Linux主机上长久运行? +#### 如何让PNX在Linux主机上长久运行? ##### 使用screen指令,详细步骤: @@ -322,14 +322,14 @@ which screen ``` 2. 在命令框输入下述指令,安装screen - **:warning:注意: 需要根据主机系统而定** + **注意: 需要根据主机系统而定** -###### 🎯CentOS +###### CentOS ``` yum install screen ``` -###### 🎯Ubuntu +###### Ubuntu ``` apt-get install screen From d848dc2979ac6ee834b4c6cc47417198cab80370 Mon Sep 17 00:00:00 2001 From: CivicXFB <61540722+CivicXFB@users.noreply.github.com> Date: Thu, 8 Sep 2022 19:14:11 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=BA=BF?= =?UTF-8?q?=E4=BA=9B=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...PNX-CLI_Launcher_Tutorial_for_Beginners.md | 42 ------------------ ...60\346\211\213\346\225\231\345\255\246.md" | 44 +------------------ 2 files changed, 1 insertion(+), 85 deletions(-) diff --git a/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md b/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md index f10602e..14dfde8 100644 --- a/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md +++ b/PowerNukkitX/faq/PNX-CLI_Launcher_Tutorial_for_Beginners.md @@ -4,48 +4,6 @@ PNX-CLI Launcher 【[Download](https://github.com/PowerNukkitX/PNX-CLI/releases) ## What is the PNX-CLI starter? It allows you to quickly deploy **PowerNukkitX** servers on your host, with less footprint and easier management. -## How to start the server without using PNX-CLI? - -1. Download libs.tar.gz and powernukkitx.jar from 【[release](https://github.com/PowerNukkitX/PowerNukkitX/releases)】 - -2. Extract the libs folder in libs.tar.gz to the same path as powernukkitx.jar - -3. Run the following command - -##### Windows - -``` -java -Dfile.encoding=UTF-8 ^ --Djansi.passthrough=true ^ --Dterminal.ansi=true ^ --XX:+UnlockExperimentalVMOptions ^ --XX:+UseG1GC ^ --XX:+UseStringDeduplication ^ --XX:+EnableJVMCI ^ ---module-path=.\libs\graal-sdk-22.2.0.jar;.\libs\truffle-api-22.2.0.jar; ^ ---add-opens java.base/java.lang=ALL-UNNAMED ^ ---add-opens java.base/java.io=ALL-UNNAMED ^ --cp .\powernukkitx.jar;.\libs\* ^ -cn.nukkit.Nukkit -``` - -##### Linux - -``` -java -Dfile.encoding=UTF-8 \ --Djansi.passthrough=true \ --Dterminal.ansi=true \ --XX:+UnlockExperimentalVMOptions \ --XX:+UseG1GC \ --XX:+UseStringDeduplication \ --XX:+EnableJVMCI \ ---module-path=./libs/truffle-api-22.2.0.jar:./libs/graal-sdk-22.2.0.jar: \ ---add-opens java.base/java.lang=ALL-UNNAMED \ ---add-opens java.base/java.io=ALL-UNNAMED \ --cp ./powernukkitx.jar:./libs/* \ -cn.nukkit.Nukkit -``` - ## Notes on the installation of the PNX-CLI! 1. No spaces in the directory folder or it won't work! diff --git "a/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" "b/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" index 8752a24..5fbbbe6 100644 --- "a/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" +++ "b/PowerNukkitX/faq/PNX-CLI\345\220\257\345\212\250\345\231\250\346\226\260\346\211\213\346\225\231\345\255\246.md" @@ -11,48 +11,6 @@ PNX-CLI启动器 【[前往下载](https://github.com/PowerNukkitX/PNX-CLI/relea **优势: 更少的占用,更高效的管理** -## 使用PNX-CLI如何启动服务器? - -1. 从【[release](https://github.com/PowerNukkitX/PowerNukkitX/releases)】下载libs.tar.gz和powernukkitx.jar - -2. 将libs.tar.gz中的libs文件夹解压到和powernukkitx.jar同一路径下 - -3. 运行以下命令 - -##### Windows版本 - -``` -java -Dfile.encoding=UTF-8 ^ --Djansi.passthrough=true ^ --Dterminal.ansi=true ^ --XX:+UnlockExperimentalVMOptions ^ --XX:+UseG1GC ^ --XX:+UseStringDeduplication ^ --XX:+EnableJVMCI ^ ---module-path=.\libs\graal-sdk-22.2.0.jar;.\libs\truffle-api-22.2.0.jar; ^ ---add-opens java.base/java.lang=ALL-UNNAMED ^ ---add-opens java.base/java.io=ALL-UNNAMED ^ --cp .\powernukkitx.jar;.\libs\* ^ -cn.nukkit.Nukkit -``` - -##### Linux版本 - -``` -java -Dfile.encoding=UTF-8 \ --Djansi.passthrough=true \ --Dterminal.ansi=true \ --XX:+UnlockExperimentalVMOptions \ --XX:+UseG1GC \ --XX:+UseStringDeduplication \ --XX:+EnableJVMCI \ ---module-path=./libs/truffle-api-22.2.0.jar:./libs/graal-sdk-22.2.0.jar: \ ---add-opens java.base/java.lang=ALL-UNNAMED \ ---add-opens java.base/java.io=ALL-UNNAMED \ --cp ./powernukkitx.jar:./libs/* \ -cn.nukkit.Nukkit -``` - ## 安装PNX-CLI注意事项! 1. **目录文件夹不能有空格否则无法正常运行!** @@ -208,7 +166,7 @@ pnx libs -u **注意:你需要安装相关VC运行库** -### :tea:基于PNX-CLI-Linux-x86(Arm)安装PNX服务器相关步骤 +### 基于PNX-CLI-Linux-x86(Arm)安装PNX服务器相关步骤 1. 下载PNX-CLI-Linux-x86(Arm).zip压缩包 【[前往下载](https://github.com/PowerNukkitX/PNX-CLI/releases)】 2. 下载完成后,输入下述指令\ **注意:/xxx/xxx 代表你PNX-CLI-Linux-x86(Arm).zip所在文件夹目录** From cc5ccf2c68fef3531af0fd406fe1832b9b88856b Mon Sep 17 00:00:00 2001 From: CivicXFB <61540722+CivicXFB@users.noreply.github.com> Date: Fri, 4 Nov 2022 20:20:59 +0800 Subject: [PATCH 3/9] Update PowerNukkitX.md --- PowerNukkitX/PowerNukkitX.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/PowerNukkitX/PowerNukkitX.md b/PowerNukkitX/PowerNukkitX.md index 8771a7f..75bd02f 100644 --- a/PowerNukkitX/PowerNukkitX.md +++ b/PowerNukkitX/PowerNukkitX.md @@ -4,12 +4,16 @@