Linux环境的AMP安装 MSSQL扩展安装
Linux要安装mssql扩展,必须首先安装freetds,安装过程如下:
1、假设源文件目录为/webServ,安装目录为/opt/freetds。
1) >cd /webServ
2) 下载, >wget ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
3) 解压, >tar -zxvf freetds-stable.tgz
4) 进入, >cd freetds-0。82
5) 安装, >./configure --enable-msdblib --prefix=/opt/freetds
6) >make
7) >make install
2、编译mssql扩展,假设PHP安装源码包为/webServ/php-4.4.9
1) 进入模块源码目录,>cd /webServ/php-4.4.9/ext/mssql
2) 生成编译配置文件,>/opt/php4/bin/phpize
3) 安装,>./configure --with-php-config=/opt/php4/bin/php-config --with-mssql=/opt/freetds
4) >make
5) >make install
6) 把生成的mssql.so模块复制到PHP的扩展目录,修改php.ini,加入mssql模块
注:
在编译配置的时候可能会遇到找不到FreeTDS的错误:configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory,按照官方的解释http://www.freetds.org/news.html
,PHP检测一些文件以确定FreeTDS是否安装,由于新版的FreeTDS不再安装这些文件,导致PHP编译失败。只需建立两个空文件即可。如下:
>touch /opt/freetds/include/tds.h
>touch /opt/freetds/lib/libtds.a
相关文档:
内核进行物理内存管理和虚拟内存管理
使用磁盘上的空间,称为交换区。
内核是将虚拟内存中的内容来来回回的和内存的内容进行交换的
这样可以让os感觉到其实可用的内存比物理内存空间更大。
内存的分配是成组的分成块的,称为页面。
内核有一张表,用来定位页面是在内存里面还是在磁盘里面。以决定哪些页面要交换。 ......
linux目录架构
/ 根目录
/bin 常用的命令 binary file 的目錄
/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内
/boot/grub/menu.lst &n ......
参考《linux内核完全注释》和网上相关文章
/*
* 控制台显示操作
*/
/*
* linux/kernel/console.c
*
* (C) 1991 Linus Torvalds
*/
/*
* console.c
*
* This module implements the console io functions
* 'void con_init(v ......
MEMCACHED安装
一、服务端。先安装libevent,再安装memcached。(注:libevent是一套跨平台的事件处理接口的封装,能够兼容包括:Windows/Linux/BSD/Solaris等操作系统的事件处理)
1、下载最新版本的libevent和memcached,笔者的安装目录为/soft
>cd /soft
>wget http://www.dange.com/memcached/dist/memcach ......