2013年10月9日
摘要: 前言使用mysql也有一段时间,但是安装mysql,都是在linux上使用软件源的安装,再使用mysql自带的shell执行的便捷启动,对于mysql内部的启动参数不甚了解,所以特意从mysql官网下载mysql的tar包,自行安装启动,了解mysql程序的启动过程,有助于启动过程的排错,进一步了解mysql。环境ubuntu 12.04 32bit下载mysql1.下载:在http://dev.mysql.com/downloads/mysql/官网上下载mysql-5.5.28-linux2.6-i686.tar.gz.2.解压tar -xvf mysql-5.5.28-linux2.6- 阅读全文
posted @ 2013-10-09 18:31 华彩 阅读(286) 评论(0) 推荐(0) 编辑
摘要: >刚编译了一个lamp,上线后发现验证码无法显示, 和网站沟通后,说是imagettftext()。函数同时需要 GD 库和 FreeType 库。 通过产查看phpinfo();后发现没有freetype的支持,下面是添加freetype支持的方法cd /usr/src/php.5.4.4cat config.nice -->这个是你上次成功编译的参数我的系统是centos6.2 X86_64的 freetype的位置在 /usr/include/freetype2/freetype/不知道的同学, 可以通过find / -name freetype* 进行查找,之后在编译配置的 阅读全文
posted @ 2013-10-09 18:30 华彩 阅读(2401) 评论(0) 推荐(0) 编辑
摘要: mysql的三种安装方式:RPM 二进制包和源代码本次安装的系统平台为redhat 5一、使用RPM包进行安装 首先可以从安装光盘中或者到mysql的网站上下载对应版本的rpm包如下:MySQL-server-community-5.1.38-0.rhel5.i386.rpmMySQL-client-community-5.1.38-0.rhel5.i386.rpm 接着我们可以使用rpm命令进行安装:rpm -ivh MySQL-server-community-5.1.38-0.rhel5.i386.rpmrpm -ivh MySQL-client-community-5.1.38-0.r 阅读全文
posted @ 2013-10-09 18:29 华彩 阅读(517) 评论(0) 推荐(0) 编辑
摘要: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --enable-mbstring --with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/lib --with-curl --with-mcrypt --with-iconv --enable-pdo --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd./con 阅读全文
posted @ 2013-10-09 18:26 华彩 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 一般出现这个-bash: make: command not found提示,是因为安装系统的时候使用的是最小化mini安装,系统没有安装make、vim等常用命令,直接yum安装下即可;yum -y install gcc automake autoconf libtool make直接ssh运行即可,安装make。 阅读全文
posted @ 2013-10-09 15:12 华彩 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 编译安装 apache# tar zxvf httpd-2.2.6.tar.gz# cd httpd-2.2.6# ./configure --prefix=/usr/local/apache2 --enable-so --enable-track-vars --enable-proxy --enable-vhost-alias --enable-cache --enable-disk-cache --enable-mem-cache --enable-rewrite --enable-mods-shared=all# make# make installwget http://mirror. 阅读全文
posted @ 2013-10-09 15:09 华彩 阅读(125) 评论(0) 推荐(0) 编辑