ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 系统名称 查看系统名称 ``` hostnamectl ``` 修改系统名称 ``` hostnamectl set-hostname centos701 ``` ## 系统时间 查看系统时间 ``` timedatectl ``` 查看系统时区 ``` timedatectl list-timezones timedatectl list-timezones | grep -i asia timedatectl list-timezones | grep -i shanghai ``` 设置系统时区 ``` timedatectl set-timezone Asia/Shanghai ``` ## 时间服务 chrony(CentOS 7) ``` yum info chrony yum install chrony -y systemctl start chronyd systemctl enable chronyd systemctl status chronyd ``` ntp(CentOS 6) ``` chkconfig ntpd on chkconfig | grep ntpd service ntpd start service ntpd status ```