Linux下常用的关机实例
Linux下关机最要有以下方法,我想这些方法足以满足你的需要:
[root@localhost /]# shutdown [-t秒] [-arkhcncfF] [时间] [提示信息]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t 后加秒数,即‘过几秒钟后关机’的意思。
-k : 不要真的关机,只是发送提示信息。
-r : 在将系统的服务关掉之后就重新启动。
-h : 在将系统的服务关掉之后就关机。
-n : 不要进过init程序,直接以shutdown关机。
-f : 关机并启动后,强制略过fsck的磁盘检查
-F : 系统重新启动后,强制进行fsck的磁盘检查
-c : 取消已经在进行的shutdown命令符
立即关机
[root@localhost /]#shutdown -h now
系统在今天的20:25关机
[root@localhost /]#shutdown -h 20:25
系统再过10分钟后重新启动
[root@localhost /]#shutdown -h +10
系统立即重新启动
[root@localhost /]#shutdown -r now
再过30分钟系统会重新启动,并显示后面的信息
[root@localhost /]#shutdown -r +30 'The system will reboot'
仅仅发出警告信息,系统并不会关机
[root@localhost /]#shutdown -r +30 'The system will reboot'
相关文档:
/*
* linux/fs/fcntl.c
*
* (C) 1991 Linus Torvalds
*/
#include <string.h>
#include <errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <asm/segment.h>
#include <fcntl.h>
#include <sys/stat. ......
SLES 11
设置mysql服务自动启动状态
chkconfig mysql on
(chkconfig mysql off)
添加/删除mysql服务
/sbin/chkconfig --del mysql
/sbin/chkconfig --add mysql
查看mysql版本
mysql -V
mysqld -V
启停 mysql
service mysql start
service mysql stop
service mysql restart
......
众所周知,网络安全是一个非常重要的课题,而服务器是网络安全中最关键的环节。Linux被认为是一个比较安全的Internet服务器,作为一种开放源代码操作系统,一旦Linux系统中发现有安全漏洞,Internet上来自世界各地的志愿者会踊跃修补它。然而,系统管理员往往不能及时地得到信息并进行更正,这就给黑客以可乘之机。然而 ......
嵌入式linux基础知识大纲
其实这段时间非常的忙,忙到连做饭吃的时间都没有了。但是今天我特意抽空,来给关注我的朋友们一点点交代。(因为今天发现关注的人还蛮多的,有点受宠若惊啊!哈哈....)如题我暂时只能给大家一些大纲,很详细的学习过程要等大概半个月的时间,我有了空闲时间才能 ......
Internet------(eth1)router1(eth2)------(eth1)router2(eth0)------(eth0)router3(eth1)------(eth0)pc
上面就是我的网络拓扑结构,其中路由器1是用来连接外部网络的一台linux机器,图中所有路由器都是普通的pc机,这些pc都安装了ubuntu桌面系统,除了最右边的pc,其余的pc都装了3张网卡(其中一张备用)。
由于Debian系 ......