個人筆記,不喜請繞路!
locale 命令來查看有哪些語言支持
[root@0ca5b90999e6 soft]# locale -a|grep utf8
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN.utf8
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM.utf8
en_ZW.utf8
添加環境變數
[root@0ca5b90999e6 soft]# vim /etc/profile
LANG=en_ZW.utf8
[root@0ca5b90999e6 soft]# source /etc/profile
注:
1、docker run時,最好最后加上 /usr/sbin/init,啟動systemd (按需求來)
2、另外我的dockerfile 啟動命令是 CMD /etc/init.d/sh/init.sh,會多啟動一個腳本,其中會自動source,這樣就不需要重新構建容器了
#!/bin/bash
source /etc/profile
/usr/sbin/sshd -D
/bin/bash
-----------------------------------end
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/254793.html
標籤:區塊鏈
上一篇:如何加入VNT Hubble主網
