Shell运行
安装教程1 Git方式
1
2
3
4
5
6
7
|
yum install –y git
rm –rf /usr/local/directadmin/data/skins/enhanced/lang/cn
cd /usr/local/directadmin/data/skins/enhanced/lang/
git clone https://github.com/ninetian/diretcadmin-chinese-lang cn
chown diradmin:diradmin –R cn
#替换 所有用户显示中文
perl –pi –e ‘s/language=en/language=cn/’ /usr/local/directadmin/data/users/*/user.conf
|
安装教程2 zip方式
注意替换版本号
1
2
3
4
5
6
7
8
|
rm –rf /usr/local/directadmin/data/skins/enhanced/lang/cn
cd /usr/local/directadmin/data/skins/enhanced/lang
wget —no–check–certificate –c https://github.com/ninetian/diretcadmin-chinese-lang/archive/1.5.0.zip
unzip 1.5.0.zip
rm –rf 1.5.0.zip
mv diretcadmin–chinese–lang–1.5.0 cn
chown diradmin:diradmin –R cn
perl –pi –e ‘s/language=en/language=cn/’ /usr/local/directadmin/data/users/*/user.conf
|