Blogger Information
Blog 43
fans 2
comment 2
visits 113231
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
liunx常用命令 - 关机重启命令
朝游东海
Original
1416 people have browsed it
命令名称:shutdown 命令
语法 shutdown [-chr] 时间
               -c 取消前一个关机命令
			   -h 关机 [正式服务器上不能关机,只能重启]
			   -r 重启
	li:
	   shutdown -r now		   
	   
其他关机命令[正式服务器不可用]
halt
poweroff
init 0

其他重启命令
reboot
init 6

系统运行级别
0  关机
1  单用户
2  不完全多用户,不含nfs服务
3  完全多用户
4  未分配
5  图形界面
6  重启

cat /etc/inittab 修改系统默认运行级别 id:3:initdeafult:
runlevel 查询系统运行级别
[root@pb6a80081 ~]# runlevel
N 3

N 3 #N 3之前的级别 现在是开机后就是3 所以3之前并无其他级别


退出登录命令
logout


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post