上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: http://www.cnblogs.com/kissdodog/p/3929903.html 阅读全文
posted @ 2016-01-08 17:10 Forward1990 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 查看远程分支gitbranch-a查看本地分支gitbranch创建分支gitbranchtest把分支推到远程分支gitpushorigintest切换分支到testgitcheckouttest删除本地分支testgit branch -d 本地分支名删除远程版本gitpushorigin:远程... 阅读全文
posted @ 2015-12-31 14:41 Forward1990 阅读(365) 评论(0) 推荐(0) 编辑
摘要: http://www.runoob.com/bootstrap/bootstrap-glyphicons.html 阅读全文
posted @ 2015-12-25 11:39 Forward1990 阅读(108) 评论(0) 推荐(0) 编辑
摘要: sed -i "s/原字符/替换的字符/g" `grep 原字符 -rl /var/www/项目名` 阅读全文
posted @ 2015-10-22 11:43 Forward1990 阅读(228) 评论(0) 推荐(0) 编辑
摘要: function GrabImage($url,$filename="") { if($url=="") return false; if($filename=="") { $ext=strrchr($url,"."); if($ext!=".gif" && $ext!=".jpg... 阅读全文
posted @ 2015-10-22 09:59 Forward1990 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 开始->运行->输入cmd输入 at 21:00 Shutdown -s 表示21点关机Shutdown.exe -s -t 3600 表示3600秒后关机如果想取消 输入 Shutdown -a 阅读全文
posted @ 2015-10-22 08:38 Forward1990 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 需求:一个php程序要跑一段时间,但是时间不确定。问题: 当该php程序运行超过一段时间被强制断开连接。PHP本身超时处理在 php.ini 中,有一个参数 max_execution_time 可以设置 PHP 脚本的最大执行时间,但是,在 php-cgi(php-fpm) 中,该参数不会起效。真... 阅读全文
posted @ 2015-10-19 11:09 Forward1990 阅读(235) 评论(0) 推荐(0) 编辑
摘要: date >> /home/backupluc/monitor/loadavg.txttop -b -n 1 | grep Cpu >> /home/backupluc/monitor/loadavg.txttop -b -n 1 | grep average >> /home/backuplu... 阅读全文
posted @ 2015-10-13 16:38 Forward1990 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 我们的PHP程序有时候需要定时执行,我们可以使用ignore_user_abort函数或是在页面放置js让用户帮我们实现。但这两种方法都不太可靠,不稳定。我们可以借助Linux的Crontab工具来稳定可靠地触发PHP执行任务。下面介绍Crontab的两种方法。一、在Crontab中使用PHP执行脚... 阅读全文
posted @ 2015-09-29 17:35 Forward1990 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 根据php安装模式不同分为2种,一是Apache 2.0 Handler,另外一种是FPM/FastCGI如果Server API是cgi,那么在需要cron执行的php脚本的第一行额外加入一段代码#!/usr/bin/php -q(类似PERL语法),指定服务器中php可执行程序的位置,具体步骤如... 阅读全文
posted @ 2015-09-29 17:34 Forward1990 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页