diff --git a/docs/getting-started/install/jar-file.md b/docs/getting-started/install/jar-file.md index 7829290b..c7b89c68 100644 --- a/docs/getting-started/install/jar-file.md +++ b/docs/getting-started/install/jar-file.md @@ -150,7 +150,7 @@ title: 使用 JAR 文件部署 6. 测试运行 Halo ```bash - cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/ + cd ~/app && java -Dfile.encoding=UTF-8 -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/ ``` 7. 如果没有观察到异常日志,即可尝试访问 Halo @@ -197,7 +197,7 @@ title: 使用 JAR 文件部署 [Service] Type=simple User=USER - ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/ + ExecStart=/usr/bin/java -Dfile.encoding=UTF-8 -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/ ExecStop=/bin/kill -s QUIT $MAINPID Restart=always StandOutput=syslog diff --git a/versioned_docs/version-2.20/getting-started/install/jar-file.md b/versioned_docs/version-2.20/getting-started/install/jar-file.md index 7829290b..c7b89c68 100644 --- a/versioned_docs/version-2.20/getting-started/install/jar-file.md +++ b/versioned_docs/version-2.20/getting-started/install/jar-file.md @@ -150,7 +150,7 @@ title: 使用 JAR 文件部署 6. 测试运行 Halo ```bash - cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/ + cd ~/app && java -Dfile.encoding=UTF-8 -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/ ``` 7. 如果没有观察到异常日志,即可尝试访问 Halo @@ -197,7 +197,7 @@ title: 使用 JAR 文件部署 [Service] Type=simple User=USER - ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/ + ExecStart=/usr/bin/java -Dfile.encoding=UTF-8 -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/ ExecStop=/bin/kill -s QUIT $MAINPID Restart=always StandOutput=syslog