CentOS新系统工具安装

时区设置

## 查看当前时区
timedatectl | grep "Time zone"
## 查看时区列表
timedatectl list-timezones
## 设置时区
sudo timedatectl set-timezone  'Asia/Shanghai'

CentOS7桌面怎么校准时间?(设置时区)

安装Docker 环境

# 开机自启
systemctl enable docker

菜鸟教程-CentOS 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
)

Mac/Linux配置oh-my-zsh 安装必用插件

添加登录证书

## 将本地公钥添加到当前文件
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

ssh链接服务器响应速度慢

配置静态IP

https://blog.csdn.net/to_free/article/details/125045898

强制更新密码

centos 配置默认账户并设置简单密码

  • 9
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值