可以利用crontab,需要root权限才能关机,比如到某个时间点执
shutdown -h now
可以使用Linux下的命令
定时关机sudo shutdown -h 23:00 //表示在23点定时关机