0

PUTTY 无密码登陆

Posted in Linux at 六月 30th, 2011 / No Comments »

环境: 运行putty的系统:Windows XP 运行sshd的服务端:centos   下载软件: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PUTTY: ssh客户端程序 PUTTYgen:产生ssh密钥/私钥对的程序 以上程...

  例子: find -name “CVS” -exec rm -rf {} \; 利用-name和-exec两个参数组合,可以实现批量查找删除指定文件的目的。 要活用find,它是很强大的。 find [path...] [expression] -name pattern Base of fil...

0

GIT 的基本使用

Posted in Linux at 六月 30th, 2011 / No Comments »

2 简介GIT是一个分布式的版本控制系统。 分布式的意思是它不依赖一个中央服务器,每个开发者clone得到的仓库都包含了完整的变更记录。   3 GIT 的四种协议file: 只能访问本地repository git:后台运行git-daemon...

php:  ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-config-file-path=/usr/local/lib –with-mysql=/usr  –with-pdo-mysql –with-...

0

sles10.1下重新编译php+apache

Posted in Linux at 六月 24th, 2011 / No Comments »

sles10.1装好apache+php+mysql后,缺少pdo_mysql。好不容易编译好pdo_mysql后,发现又少了json。查手册发现json在php5.2.0之后才支持,sles10.1的php5.1.2是彻底没戏了,只能重新编译新版的php。 下载php5.3.6: w...

0

sles10.1下安装pdo_mysql

Posted in PHP at 六月 24th, 2011 / No Comments »

sles10.1的安装源中只用php5-pdo,没有pdo_mysql,安装后phpinfo页面PDO drivers栏为空。 下载并安装PDO_MYSQL 1.0.1 wget http://pecl.php.net/get/PDO_MYSQL-1.0.1.tgz tar zxvf PDO_MYSQL-1.0.1.tgz cd PDO_MY...

0

sles10.1 ppc64编译git报错

Posted in PHP at 六月 23rd, 2011 / No Comments »

sles10.1 ppc64的安装源中没有git,下载了git的源码进行编译,make的时候报错: linux:~/git-1.7.5.4 # make all     CC daemon.o In file included from daemon.c:1: cache.h:18:18: error: zlib.h: No such ...

使用putty登录suse11输入命令时,按home键跳到命令行首不起作用。解决办法: putty  ->  Connection  ->  Data  ->  Terminal type string  的值改成 Linux http://bbs.chinaunix.net/thr...

统计cn目录下,php文件数量: find cn/ -name “*.php” |wc -l 统计cn目录下所有php文件代码行数。 find cn/ -name “*.php” |xargs cat|wc -l 或 wc -l `find ./ -name “*.php”`|tail -n1 统计a目录下所有ph...

0

virtualbox的克隆

Posted in 虚拟机 at 六月 17th, 2011 / No Comments »

VBox的克隆不像VMware有个按钮那么简便 有两种方法: 一、在CMD窗口中进入VirtualBox 安装目录,然后用VBox自带的克隆命令复制,注意目标的路径和文件名必须写完整,缺点是速度慢了点 C:\Program Files\Sun\Virtu...