上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页
摘要: 转自:http://cn2.php.net/manual/zh/function.array-chunk.php(PHP 4 >= 4.2.0, PHP 5)array_chunk—将一个数组分割成多个说明arrayarray_chunk(array$input,int$size[,bool$pre... 阅读全文
posted @ 2014-06-25 14:08 KoMiles 阅读(6887) 评论(0) 推荐(0) 编辑
摘要: Quick setup— if you've done this kind of thing beforehttps://github.com/KoMiles/emlog.gitCreate a new repository on the command linetouch README.mdgit... 阅读全文
posted @ 2014-06-24 22:39 KoMiles 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 1,clonegit clonehttps://github.com/KoMiles/helloword helloword2,pullgit pull3,commitgit commit -m '*update file'4,git pushgit pushhttps://github.com/K... 阅读全文
posted @ 2014-06-24 22:26 KoMiles 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 文章转自:http://www.cnblogs.com/cocowool/archive/2012/02/17/2356125.html源代码管理系统(SCM)与版本控制版本控制是一种记录若干文件内容变化,以便将来查阅特定版本修订情况的系统。本地版本控制系统许多人习惯用复制整个项目目录的方式来保存不... 阅读全文
posted @ 2014-06-24 22:23 KoMiles 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1,curl -d "userType=seller&userId=1034285" "www.baidu.com/getInfo.php"curl-d"leaderboard_id=7778a8143f111272&score=19&app_key=8d49f16fe034b98b&_test_u... 阅读全文
posted @ 2014-06-16 16:20 KoMiles 阅读(16106) 评论(0) 推荐(1) 编辑
摘要: 转自:https://www.centos.bz/2011/07/howto-remove-lnmp/killall nginx/etc/init.d/mysql stopkillall mysqld/usr/local/php/sbin/php-fpm stopkillall php-cgirm ... 阅读全文
posted @ 2014-05-30 14:50 KoMiles 阅读(3424) 评论(0) 推荐(0) 编辑
摘要: 转自:http://chenpeng.info/html/964刚安装好的Debian默认还没有sudo功能。1、安装sudo# apt-get install sudo2、修改 /etc/sudoers 文件属性为可写# chmod +w /etc/sudoers3、编辑 /etc/sudoers... 阅读全文
posted @ 2014-05-29 11:47 KoMiles 阅读(25357) 评论(0) 推荐(1) 编辑
摘要: 转自:http://blog.chinaunix.net/uid-9789774-id-3080448.htmlGit的Windows版本Msysgit对中文的支持不够好当使用时,会出现以下三种情况的中文乱码:1.ls不能显示中文目录解决办法:在git/git-completion.bash中增加一... 阅读全文
posted @ 2014-05-22 12:07 KoMiles 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.slogra.com/post-512.html今天给新加的几个数据库备份,在执行mysqldump的时候,居然报mysqldump: Got error: 1044: Access denied for user 'jpzen'@'localhost' to data... 阅读全文
posted @ 2014-05-14 12:30 KoMiles 阅读(29664) 评论(4) 推荐(0) 编辑
摘要: 转自:http://www.linuxidc.com/Linux/2010-12/30386.htm1)进入到root用户下。2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。3)编辑/etc/sudoers文件。也就是输入命令"gedit /etc/sudoer... 阅读全文
posted @ 2014-05-09 10:30 KoMiles 阅读(5079) 评论(0) 推荐(1) 编辑
摘要: 转自:http://pangge.blog.51cto.com/6013757/1319304MySQL日志:主要包含:错误日志、查询日志、慢查询日志、事务日志、二进制日志;日志是mysql数据库的重要组成部分。日志文件中记录着mysql数据库运行期间发生的变化;也就是说用来记录mysql数据库的客... 阅读全文
posted @ 2014-04-24 10:59 KoMiles 阅读(106074) 评论(5) 推荐(7) 编辑
摘要: 转自:http://www.itokit.com/2013/0308/74883.htmllinux系统中,利用grep打印匹配的上下几行如果在只是想匹配模式的上下几行,grep可以实现。$grep -5 'parttern' inputfile //打印匹配行的前后5行$grep -C 5 'pa... 阅读全文
posted @ 2014-04-24 10:49 KoMiles 阅读(131963) 评论(2) 推荐(5) 编辑
摘要: 转自:http://www.linuxidc.com/Linux/2013-07/87371.htm简述:今天在看书的时候,看到有个实例,手痒痒的跟着做了起来。。。但是,出现问题了。。测试的用户和组不能删除。。---------------------------------------------... 阅读全文
posted @ 2014-04-19 11:40 KoMiles 阅读(14760) 评论(1) 推荐(1) 编辑
摘要: .快速清理磁盘垃圾磁盘空间又不够用了?尝试在终端窗口中输入sudo apt-get autoremove然后输入sudo apt-get clean,前一个命令会卸载系统中所有未被使用的依赖关系,后一个命令会清除所有缓存的包文件,两者都是无害的。在一个升级过多次的系统上,你也许能通过这个方法清理出若... 阅读全文
posted @ 2014-04-19 11:27 KoMiles 阅读(3401) 评论(0) 推荐(0) 编辑
摘要: 在查看项目代码时,发现smart代码中有这样写。{if $auctionInfo.printingNum} 印数:{math equation="cid/1000" cid=$auctionInfo.printingNum format="%d"}千册{/if}意思是:把$auctionInf... 阅读全文
posted @ 2014-04-17 17:31 KoMiles 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: http://www.hlbaozhuangji.cn/manage/content/other_info.php?anyid=31&lang=cn首页内容简介:select * from met_config where name = 'met_index_content' \G ;联系方式内容:select * from met_otherinfo \G; 阅读全文
posted @ 2014-04-08 22:45 KoMiles 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 语 法:alias[别名]=[指令名称]1,查看该用户下的别名:alias2,有的系统里没有ll这个命令,原因就是没有定义ll='ls -l --color=tty'这个别名如果想永久生效,就把这条写入到 /etc/bashrc里面alias ll='ls -l --color=tty'3,查看命令别名:alias 设置命令别名:alias 别名='命令' 取消命令别名:unalias 别名 阅读全文
posted @ 2014-04-07 22:50 KoMiles 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: 转载:http://joewalker.iteye.com/blog/408879命令行下具体用法如下:mysqldump -u用戶名 -p密码-d数据库名表名 > 脚本名;导出整个数据库结构和数据mysqldump -h localhost -uroot -p123456database > dump.sql导出单个数据表结构和数据mysqldump -h localhost -uroot -p123456 database table > dump.sql导出整个数据库结构(不包含数据)mysqldump -h localhost -uroot -p123456-ddat 阅读全文
posted @ 2014-04-06 14:12 KoMiles 阅读(18599) 评论(0) 推荐(0) 编辑
摘要: 1,例如我想解压Metinfo5.2.zip 到某一个文件夹下,执行下面的命令就可以了sudo unzip MetInfo5.2.zip -d metinfo-bak 阅读全文
posted @ 2014-04-04 22:18 KoMiles 阅读(48989) 评论(1) 推荐(0) 编辑
摘要: 在新添加用户后,切换到该用户下面后:发现命令行前面只有一个$符号,很不方便。虽然每次输入一个bash可以解决,但是太麻烦。如何解决呢?sudo vi /etc/passwd找到该用户wangkongming:x:1002:1002::/home/wangkongming:/bin/shzhangbi... 阅读全文
posted @ 2014-04-01 23:00 KoMiles 阅读(6296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页