I think I've found a solution. First, we have to install a window manager like xfce gnome.
The second step is to download the ibus
# pkgin install ibus ibus-pinyin ibus-table-chinese
The third step is to modify shrc to add this content.
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
ibus-daemon -d -r -x
The fourth step is to modify the profile and change the language environment.
export LANG=zh_CN.UTF-8
export LC_CTYPE=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
This will allow us to use the Chinese side and use Chinese input methods.
This is just a temporary method, I haven't learned the principle yet.