Thursday, October 6, 2022
Uncategorized Bash Script

Mengatasi Server yang Waktu / Date nya salah diarenakan batre cemos habis

Biasanya jika batre cemoh habis , tiap kali server nya reboot / updown pasti date / jam server nya salah dan tidak sesuai dengan saat ini :

Bisa menggunakan perintah berikut :

rdate -s rdate.cpanel.net

Bisa di terapkan juga dengan cron , sehingga tiap kali reboot akan otomatis menyesuaikan.

nano date.sh

chmod a+x date.sh

#!/bin/bash

rdate -s rdate.cpanel.net

dan corntab – e

@reboot /home/yuby/date.sh > /dev/null 2>&1

(Visited 55 times, 1 visits today)
Klik untuk berbagi dengan orang lain
Baca Juga :  Membuat Script grep log zimbra dan di kirim ke email

Similar Posts


Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270