sudo reboot
sudo init 6
sudo shutdown -r now
sudo /sbin/reboot
will get the job done every time.
- 0 停机
- 1 单用户,Does not configure network interfaces, start daemons, or allow non-root logins
- 2 多用户,无网络连接 Does not configure network interfaces or start daemons
- 3 多用户,启动网络连接 Starts the system normally.
- 4 用户自定义
- 5 多用户带图形界面
- 6 重启