[root@bgw-t ~]# vi /etc/init/control-alt-delete.conf#exec /sbin/shutdown -r now "Control-Alt-Delete pressed"注释掉原有的然后用 init q 命令使刚才的修改立即生效.init Q或init ...
分类:
其他好文 时间:
2014-06-18 19:57:48
阅读次数:
229
查看当前系统分区 命令:fdisk –l 运行虚拟机时添加了磁盘,系统不能识别到新的磁盘即sdb,需要重启虚拟机:shutdown -r now 新磁盘进行分区并格式化 命令:fdisk /dev/sdb 根据提示依次输入m、1,输入w保存 再次使用 "fdisk -l "这个命令来查看会发现出现了...
分类:
其他好文 时间:
2014-06-18 13:00:13
阅读次数:
224
由于每次不正常关闭 MongoDB 的行为
导致今天打开 MongoDB 发现出现如下错误
unclean shutdown detected
解决方案(很详细):
http://docs.mongodb.org/manual/tutorial/recover-data-following-unexpected-shutdown/...
分类:
数据库 时间:
2014-06-18 12:09:18
阅读次数:
283
/** linux/kernel/printk.c** Copyright (C) 1991, 1992 Linus Torvalds** Modified to make sys_syslog() more flexible: added commands to* return the last ...
分类:
其他好文 时间:
2014-06-17 21:10:57
阅读次数:
275
一、日志系统1、日志系统:syslog()信息详细程序:日志级别日志子系统:facility日志记录动作:ActionLinux上的日志系统:syslogsyslog-ng:syslog-ng作为syslog的替代工具,可以完全替代syslog的服务,并且通过定义规则,实现更好的过滤功能系统启动过程的日志:kernel-->物..
分类:
系统相关 时间:
2014-06-16 18:21:51
阅读次数:
306
Mac开机密码忘了,咋办?开不开机啦
1.打开你的Mac,command +S 进入你的终端界面
2.输入/sbin/mount -uaw /
3.输入rm /var/db/.AppleSetupDone (删除)
4.reboot ...
分类:
其他好文 时间:
2014-06-15 12:38:37
阅读次数:
207
nixio.syslog("string") 函数用来debug luci
http://luci.subsignal.org/api/nixio/modules/nixio.html...
分类:
其他好文 时间:
2014-06-15 08:53:30
阅读次数:
1593
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\PolicIEs\Microsoft\Windows NT\Reliability] "ShutdownReasonOn"=dword:00000000"Shutdown...
Tomcat安装目录下bin目录有两个脚本分别用来启动和停止Tomcat,分别是startup.sh,shutdown.sh,可以用这两个脚本来手工启动和停止Tomcat服务。编辑/etc/rc.d/rc.local增加内容(假设JDK目录是/usr/jdk,Tomcat目录是/apache/tomcat)exportJDK_HOME=/usr/jdkexportJAVA_HOME=/usr..
分类:
其他好文 时间:
2014-06-13 21:03:06
阅读次数:
246
1.使用SQL*PLUS停止数据库[oracle@OracleTest oracle]$
sqlplus logSQL> connect / as sysdbaSQL> shutdown [immediate]SQL>
exit2.停止Listener[oracle@OracleTest oracl...
分类:
数据库 时间:
2014-06-13 20:17:21
阅读次数:
400