时区设置
## 查看当前时区
timedatectl | grep "Time zone"
## 查看时区列表
timedatectl list-timezones
## 设置时区
sudo timedatectl set-timezone 'Asia/Shanghai'
安装Docker 环境
# 开机自启
systemctl enable docker
ifconfig not found
yum install net-tools
install oh-my-zsh
yum install zsh -y
chsh -s /bin/zsh root
echo $SHELL
yum install wget git -y
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
/bin/cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc
zsh plugin
##下载安装
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-autosuggestions
##vi进去配置zsh-autosuggestions
plugins=(
git
# other plugins...
zsh-autosuggestions
)
添加登录证书
## 将本地公钥添加到当前文件
vim ~/.ssh/authorized_keys
## 修改配置信息
vi /etc/ssh/sshd_config
# 响应速度慢
UseDNS no
RSAAuthentication yes
StrictModes no
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
# PasswordAuthentication no # 禁止密码登录, 根据需要配置
## 重启sshd服务
systemctl restart sshd.service
配置静态IP
https://blog.csdn.net/to_free/article/details/125045898