08 2012 档案
[Mysql]创建表、使用表
摘要:进入mysql----------cd mysql/bin./mysql -uroot -p输入密码使用表格----------use [table name]; show tables; 查看所有的表格查看表格名称----------desc 表名;show columns from 表名;describe 表名;show create table 表名;
阅读全文
[Linux].netrc或者_netrc使用可以
摘要:当hudson链接svn或者git的时候,如果git按照http形式需要输入密码,那么可以在 ~目录下建立.netrc文件在文件内写入 machine 172.22.1.100 username xxx password xxx 则可以正常使用可以man netrc
阅读全文
[GIT] tag添加和删除方式
摘要:git建立tag方式 在当前文件下git tag xxxxxx 删除tag方式 git push origin :refs/tags/xxxxxx
阅读全文
grep查找文件内容
摘要:Linux今天跟师傅又学了一招grep -R "你想要找的东西" *然后就会遍历整个文件夹了
阅读全文
svn帮助
摘要:svn document 地址:http://svnbook.red-bean.com/svn add [--depth=empty] dir/ 只添加dir,不递归svn revert -R dir/ 再commit之前 递归回滚
阅读全文
[Linux]下查看ip的方法
摘要:1. 老办法 ifconfig 肉眼2.hostname -i 这个有时候有问题,得到的ip居然是127.0.0.13.ifconfig eth0|grep 'inet addr'|awk -F ":" '{print $2}'|awk '{print $1}'第三个不错参考bloghttp://oldboy.blog.51cto.com/2561410/791670
阅读全文
今天犯了个小错误
摘要:svn安装,如果只是安装svn client是不需要安装svn2个包的 只需要如下即可#! /bin/bashcd $1wget xxx/subversion-1.6.5_with_dep.tar.gztar zxf subversion-1.6.5_with_dep.tar.gzcd subversion-1.6.5./configure --with-ssl --prefix=$1/svn --exec-prefix=$1/svnmakemake installrm -rf $1/subversion-1.6.5rm -rf $1/subversion-1.6.5_with_dep.tar
阅读全文
[php] socket例子
摘要:<?php// 设置一些基本的变量// $host = "localhost";// $port = 1234;// var_dump($argv);$host = $argv[1];$port = $argv[2];echo "-------host=$host,port=$port-------";// 设置超时时间set_time_limit(3);// 创建一个Socket$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could notcreate socket\
阅读全文
[php]子进程
摘要:<?phpif (! function_exists('pcntl_fork')) die('PCNTL functions not available on this PHP installation');$pid = pcntl_fork();var_dump("aaaaaaa");if ($pid == -1) { die('could not fork');} else if($pid) { var_dump("bbbbbbbbbbbbbb"); pcntl_wait($status);} e
阅读全文
浙公网安备 33010602011771号