Instal CRON pada Server / VPS (restart otomatis)

Login dari Putty menggunakan root
auto restart setiap 30 menit
echo "0,30 * * * * root /usr/bin/reboot" > /etc/cron.d/reboot
auto restart setiap 60 menit / 1 Jam
echo "0 * * * * root /usr/bin/reboot" > /etc/cron.d/reboot
auto restart setiap 12 Jam
echo "0 */12 * * * root /usr/bin/reboot" > /etc/cron.d/reboot
auto restart setiap 24 Jam / perhari
echo "0 0 * * * root /usr/bin/reboot" > /etc/cron.d/reboot

Dan untuk menghapus / Uninstall silahkan ketik script dibawah
rm /etc/cron.d/reboot


Post a Comment

Lebih baru Lebih lama

Terkini