Redhat7 搭建ntp(時間同步)

2021-09-20 22:05:43 字數 536 閱讀 1684

redhat7 搭建ntp(時間同步)

安裝:# yum install ntp

啟動:# systemctl start ntpd

# systemctl enable ntpd

檢視同步:

# ntpq -p

開放防火牆:

# firewall-cmd --permanent --add-service=ntp 

此時ntp server已搭建完成

客戶端從ntp server同步

安裝:# yum install ntp

修改配置:

# vi /etc/ntp.conf

server  10.0.0.2  (預設的server列全刪掉)

:wq啟動:

# systemctl start ntpd

# systemctl enable ntpd

手動同步:

# /usr/bin/rdate -s 10.0.0.2

檢視:# ntpq -p

yangzhimingg

Docker 環境搭建(RedHat 7)

docker 環境搭建 redhat 7 裝載映象檔案 系統安裝完畢後,通過virtualbox配置網路 啟動linux 7 cd etc sysconfig network scripts 修改ifcfg enp0s3中紅線的配置 修改 etc hosts 修改dns 修改完畢,重啟網路 serv...

記錄純淨RedHat7搭建LNMP環境

1.關閉防火牆 禁用selinuxsystemctl disable firewalld systemctl stop firewalld vi etc sysconfig selinux將selinux設定為disabled 重啟伺服器 2.配置網路yum源wget o etc yum.repos...

Redhat7安裝Madagascar簡易教程

madagascar 是當前地球物理界比較流行和熱門的一套開源軟體 已經遷移到git上,由於更新速度快 開源的特性,再加上fomel等人的大力推廣,發展勢頭很猛,有超越su的趨勢。1.二 依賴軟體包 的安裝在下面的 根據自己系統版本選擇下軟體依賴包。redhat7已經更新python為2.7,所以這...