Yiyiyimu commented on a change in pull request #4362:
URL: https://github.com/apache/apisix/pull/4362#discussion_r645052000
##########
File path: conf/config-default.yaml
##########
@@ -130,6 +130,9 @@ apisix:
disable_sync_configuration_during_start: false # safe exit. Remove this
once the feature is stable
nginx_config: # config for render the template to generate
nginx.conf
+ #user: "root" # specifies the execution user of worker
process.
+ # the "user" directive makes sense only if
the master process runs with super-user privileges.
+ # if you is not root user,the default is
current user.
Review comment:
```suggestion
# if you is not root user, by default it
would be the current user.
```
##########
File path: conf/config-default.yaml
##########
@@ -130,6 +130,9 @@ apisix:
disable_sync_configuration_during_start: false # safe exit. Remove this
once the feature is stable
nginx_config: # config for render the template to generate
nginx.conf
+ #user: "root" # specifies the execution user of worker
process.
Review comment:
```suggestion
#user: "root" # specifies the execution user of the
worker process.
```
##########
File path: docs/en/latest/FAQ.md
##########
@@ -502,3 +502,14 @@ $ acme.sh --renew --domain demo.domain
```
Blog https://juejin.cn/post/6965778290619449351 has detail setup.
+
+
+## How to run APISIX on the Chinese OS
+
+When the APISIX is run as the root user on the Chinese OS, the worker process
of nginx is started as the nobody user by default. In the Chinese OS, luajit
will have a ยท`require` failure problem. You can start APISIX by adding the
following configuration in `conf/conf-default.yaml` and executing `make run` as
the root user.
Review comment:
```suggestion
When APISIX runs as the root user on Chinese OS, the worker process of Nginx
is started as the nobody user by default. In Chinese OS, luajit will have a
"require" failure problem. You can start APISIX by adding the following
configuration to `conf/conf-default.yaml` and executing `make run` as the root
user.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]