通过crontab -e写入定时任务的指令,一行为一项任务。任务模式是时间克龙表达式+命令形式。如:2 0,6,12,18 * * * perl /root/restarttomcat.plperl之前的部分依次为2分 0点6点12点18点 任意日 任意月 任意周perl /root/restart...
分类:
系统相关 时间:
2015-07-08 00:23:56
阅读次数:
140
1.fragment & activitywhen config changes, activity will restart but fragment can be store.2.textviewCapstrue3.Service Running,When service is running ...
分类:
移动开发 时间:
2015-07-07 18:31:10
阅读次数:
142
以部署在linux系统/opt/Server目录下的Server.jar为例1.在run.sh启动脚本中添加jvm参数:-XX:OnOutOfMemoryError=/opt/Server/restart.sh2.restart.sh脚本linux环境:#!/bin/bashpid=$(ps -ef...
分类:
其他好文 时间:
2015-07-06 23:13:36
阅读次数:
130
管理Activity的生命周期序言从这章开始,我们会用这几节课程来学习Activity的生命周期机制。1、开启(start)Activity 2、暂停(pause)和恢复(resume)Activity3、停止(stop)和重新打开(restart)Activity4、重新创建(recreate)....
分类:
移动开发 时间:
2015-07-06 23:10:35
阅读次数:
170
RHEL7虚拟机添加新网卡后,网卡无法启动1.在开启网络时,有错误提示:# systemctl restart network.service Job for network.service failed. See 'systemctl status network.service' and 'j....
分类:
其他好文 时间:
2015-07-04 00:46:40
阅读次数:
183
一般linux添加cron任务是在/etc/crontab,但是由于openshift的权限木有这么开放,所以如果需要设置定时任务的话,需要在如下的文件夹下添加你的sh文件,因为我需要的是每天运行一次就可以了所以放在daily文件夹下面,使用chmod 711 restart.sh命令或者使用...
分类:
其他好文 时间:
2015-07-03 23:19:41
阅读次数:
588
1.打开配置文件$ sudo vi /etc/ssh/sshd_config2.修改操作PermitRootLogin without-password 修改为PermitRootLogin yes3.重启shh服务或重启计算机$ service sshd restart
环境描述:在虚拟机VM中,centos6.6的操作系统故障说明:vi /etc/sysconfig/network-scripts/ifcfg-eth0在修改虚拟机的ip地址之后,而在使用"service network restart"重启网卡时,出现错误:Error:No suitable de...
分类:
其他好文 时间:
2015-07-01 17:39:01
阅读次数:
135
1.首先检查vsftpd服务器 是否安装$ rpm -qa | grep vsftpdvsftpd-2.2.2-11.el6.x86_642.显示已安装,restart the vsftpd¥ sudo /etc/rc.d/init.d/vsftpd restart
cornd 是定时任务的守护进程 这个服务系统是默认启动的[root@localhost/]#/etc/init.d/crond strat|restart|stop[root@localhost/]#chkconfig crond on命令介绍:[root@localhost/]#crontab ...
分类:
系统相关 时间:
2015-06-30 20:21:20
阅读次数:
203