Open wqh17101 opened 5 years ago
@GeorgianaElena i found that as a systemd service unit you can modify the service config to add the locale env. https://coreos.com/os/docs/latest/using-environment-variables-in-systemd-units.html Example: create a file named locale.conf, write something below to it
LANGUAGE="zh_CN.UTF-8"
LANG="zh_CN.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
modify the /etc/systemd/system/jupyterhub.service
add
EnvironmentFile=locale.conf
to [Service]
service jupyterhub restart ,and it worked
My problem is that https://github.com/jupyterlab/jupyterlab/issues/6948
and i found the result that
https://github.com/jupyterhub/jupyterhub/issues/1902
So, as you say, i dont need to start tljh by
jupyterhub -f XXX
in the shell. How can i fix this problem.when i start jupyterhub by
jupyterhub -f XXX
, this problem is resolved