To reboot VPS 5 minutes after midnight everyday:
Login via SSH and run the following:
echo shutdown -r now > /root/shutdown.sh;chmod +x /root/shutdown.sh
Then run crontab -e and enter this line:
5 0 * * * /root/shutdown.sh
Then save and exit.
by dev
To reboot VPS 5 minutes after midnight everyday:
Login via SSH and run the following:
echo shutdown -r now > /root/shutdown.sh;chmod +x /root/shutdown.sh
Then run crontab -e and enter this line:
5 0 * * * /root/shutdown.sh
Then save and exit.
by dev
If / etc/fstab is correct, you can simply type:
mount -n -o remount /
But if / etc/fstab is wrong, the device name and possibly the type must have to be given too: e.g.
mount -n -o remount -t extX /dev/sdaX /
Where,
extX is your filesystem type
/dev/sdaX is the partition you want to mount
To see all your available partitions just type ls /dev/[sh]d*.
by dev
To import email to Plesk:
You can ignore “Show advanced options” By default, it is detected automatically.
by dev
Backup of all important data before proceeding! Changes to the partition table always bear the risk of complete data loss.
by dev
Using Init.d
/etc/init.d/apache2 restart
sudo /etc/init.d/apache2 restart
sudo service apache2 restart
For a graceful restart, replace restart with reload.
For CentOS and RHEL servers
service httpd restart
Using Systemctl
systemctl restart apache2.service
Using Apachectl
sudo apachectl -k restart
sudo apachectl -k graceful