01 2015 档案

摘要:html页面测试ssi测试ssi头部页体尾部在php_app.conf文件中添加rewrite_log on;location / {# try_files $uri $uri/ /missing.html;# ssi on;# ssi_silen... 阅读全文
posted @ 2015-01-28 09:15 KoMiles 阅读(824) 评论(0) 推荐(0) 编辑
摘要:按住右边的ctrl键即可。 阅读全文
posted @ 2015-01-26 22:34 KoMiles 阅读(357) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.cnblogs.com/by2lemon/p/4200432.html杰克是美国纽约一家公司的主管,由于经济危机的影响,杰克的薪水很低。杰克每天早晨6点多到公司,晚上8点多了还在公司加班,有时候甚至要忙到晚上10点多。工作的劳累不算什么,可是让杰克难过的是自己对这份工作已... 阅读全文
posted @ 2015-01-23 13:59 KoMiles 阅读(602) 评论(0) 推荐(1) 编辑
摘要:有时候用浏览器调试太麻烦,想在linux命令下直接执行php代码php -r 'echo 0500;' 阅读全文
posted @ 2015-01-20 14:59 KoMiles 阅读(877) 评论(0) 推荐(0) 编辑
摘要:1,首先链接到数据库 mysql -h 127.0.0.1 -uroot -p2,选择数据库use mysql;3,修改user表的密码UPDATE user SET Password=PASSWORD('12345678') where USER='root' and host='root' or... 阅读全文
posted @ 2015-01-18 16:07 KoMiles 阅读(1251) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.cnblogs.com/yanyangtian/archive/2011/03/21/1989940.html一双鞋,耐克的6百多;李宁的4百多;特步的3百多;361的2百多;所以,你毕业于一个什么样的大学很重要。 一双鞋,在地摊不过几十元,到了商场、专卖店,会涨到一百甚... 阅读全文
posted @ 2015-01-18 15:04 KoMiles 阅读(389) 评论(0) 推荐(0) 编辑
摘要:在图形界面中,执行拉取操作时,出现下面的错误。Youaskedtopullfromtheremote'origin',butdidnotspecifyabranch.Becausethisisnotthedefaultconfiguredremoteforyourcurrentbranch,youm... 阅读全文
posted @ 2015-01-16 09:36 KoMiles 阅读(29021) 评论(2) 推荐(1) 编辑
摘要:1,SHOW VARIABLES LIKE'storage_engine';2,show table status from 数据库库名 where name='表名',例:mysql> SHOW TABLE STATUS from mytest where Name='test';3,SHOW E... 阅读全文
posted @ 2015-01-14 11:43 KoMiles 阅读(995) 评论(0) 推荐(0) 编辑
摘要:看下面的一段程序。#!/bin/bashif [ $# -gt 0 ]; then echo "参数个数为$#个"else echo "没有参数"fi 阅读全文
posted @ 2015-01-13 16:08 KoMiles 阅读(38450) 评论(0) 推荐(2) 编辑
摘要:下面是工作中用到的链接数据库的shell程序。#!/bin/bashif [ $# -le 0 ] ; then echo "prase is wrong ,please check first" exitfi#知识点: 1,$#代表了命令行的参数数量 2,-le表示... 阅读全文
posted @ 2015-01-13 15:48 KoMiles 阅读(575) 评论(0) 推荐(0) 编辑
摘要:转自:http://qubaoquan.blog.51cto.com/1246748/292461比较两个字符串是否相等的办法是:if [ "$test"x = "test"x ]; then这里的关键有几点:1 使用单个等号2 注意到等号两边各有一个空格:这是unix shell的要求3 注意到"... 阅读全文
posted @ 2015-01-13 15:38 KoMiles 阅读(79011) 评论(0) 推荐(1) 编辑
摘要:select 语句select表达式是bash的一种扩展应用,擅长于交互式场合。用户可以从一组不同的值中进行选择:select var in ...; do break;done.... now $var can be used ....下面是一个简单的示例:#!/bin/bashecho "Wha... 阅读全文
posted @ 2015-01-13 14:05 KoMiles 阅读(15711) 评论(0) 推荐(0) 编辑
摘要:转自:http://os.51cto.com/art/200907/140987.htmvi/vim 中可以使用 :s 命令来替换字符串。以前只会使用一种格式来全文替换,今天发现该命令有很多种写法(linux vi命令真是强大啊,还有很多需要学习),记录几种在此,方便以后查询。:s/vivian/s... 阅读全文
posted @ 2015-01-12 16:09 KoMiles 阅读(2099) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示