zsh
For operation and maintenance personnel, zsh can greatly improve the efficiency. Therefore, DOK has built-in zsh-related installation packages to support offline installation. Currently, DOK does not force the installation of zsh on cluster machines. If necessary, you can follow the steps below to install it.
zsh depends on git and perl software, so install it locally through the built-in rpm of the DOK installation package, then configure the directory of oh-my-zsh, and then enter zsh
to enter the configuration environment of oh-my-zsh.
# On any DOK cluster node
yum install -y zsh
cp -r /root/dok-release/bin/kernel/oh-my-zsh /root/.oh-my-zsh
cp /root/.oh-my-zsh/templates/zshrc.zsh-template /root/.zshrc
yum install -y util-linux-user
chsh -s /bin/zsh root
If the general host has no way to install git, you can use git in the installation package for offline installation. Since DOK is currently targeting the Centos7.9 system and has not tested other system releases, the standard default git of this version is used, version It is 1.8.3.1, which is an old git version. If you still need to use go and other git-dependent tools on the host, you may need to manually upgrade the git version.