标签存档: 编译

手把手教你在centos下编译安装配置高性能web服务器环境nginx+php(fast-cgi)+mysql等/适合小内存vps使用

本文为实战操作过程的全程记录,采用一台新创建的linode vps(512M内存)环境,操作系统采用centos 6.2,以从源码编译的方式安装配置nginx, php(fast-cgi模式)web环境。
我们的目标:配置一台高性能、安全的web服务器。所需软件如下:
Nginx(英文) Nginx(简体中文) 公认的高性能web服务器[下载 http://nginx.org/en/download.html]
PHP 应用最广泛的web开发语言[下载 http://www.php.net/downloads.php]
阅读全文——共23233字

继续阅读 »

centos 6下编译安装php时安装mcrypt支持库

centos6本身不带mcrypt库的支持,手工编译php时,还需要先安装该库,这里有两个途径
1. 使用第三方源实现yum安装,推荐使用RPMforge,在centos下配置该yum源,配置后即可尝试yum install libmcrypt, yum install libmcrypt-devel, yum install mcrypt-devel 安装该库。本人没有实际操作,不确定具体该包的包名。因为如果使用该库,就没必要手工编译php了,直接yum安装好了。配置RPMforge如下
rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
阅读全文——共846字

继续阅读 »

centos 6 下编译安装 nginx

下载nginx源码包,可以到nginx官方的下载文件归档里 http://nginx.org/download/ 下载
下载pcre源码,并编译安装,从pcre官方下载  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.zip
解压缩 unzip pcre-8.21.zip
进入源码目录 cd pcre-8.21/
阅读全文——共1431字

继续阅读 »

php编译配置参数

‘./configure’ ‘–prefix=/usr/local/php52’ ‘–disable-debug’ ‘–with-pic’ ‘–disable-rpath’ ‘–without-pear’ ‘–enable-gd-native-ttf’ ‘–with-layout=GNU’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-magic-quotes’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-sysvmsg’ ‘–with-kerberos’ ‘–enable-ucd-snmp-hack’ ‘–enable-shmop’ ‘–enable-calendar’ ‘–with-libxml-dir=/usr/local’ ‘–enable-xml’ ‘–enable-force-cgi-redirect’ ‘–enable-pcntl’ ‘–enable-mbstring’ ‘–enable-mbregex’ ‘–enable-bcmath=shared’ ‘–enable-dba=shared’ ‘–with-xmlrpc=shared’ ‘–enable-dom=shared’ ‘–enable-xmlreader=shared’ ‘–enable-xmlwriter=shared’ ‘–enable-fastcgi’ ‘–enable-json’ ‘–without-readline’ ‘–enable-fastcgi’ ‘–enable-fpm’ ‘–with-config-file-path=/usr/local/php52’ ‘–with-fpm-conf=/usr/local/php52’ ‘–with-zlib’ ‘–enable-mbstring’ ‘–enable-zip’ ‘–with-mysql’ ‘–with-mysqli’ ‘–with-gd=/usr/local’ ‘–with-freetype-dir=/usr/local/lib’ ‘–with-mcrypt’
阅读全文——共939字

继续阅读 »

Linux From Scratch(LFS)编译耗费时间SBU

The LinuxFromScratch SBU Home Page

阅读全文——共1765字

继续阅读 »

详细介绍 Linux中内核配置选项

第一部分 01、Code maturity level options &#82 …

继续阅读 »

linux内核编译选项详解(三):Processor type and features

[*] Tickless System (Dynamic Ticks) &#82 …

继续阅读 »

linux内核编译选项详解(二):Loadable Module and Block Layer Support

[*] Enable loadable module support &#821 …

继续阅读 »

linux内核编译选项详解(一):General setup

linux内核编译选项详解(一):General setup [*]Prompt …

继续阅读 »

现在的linux内核编译太简单了:linux kernel2.6.36.2编译手记

先show一下新内核: [feng@fsc ~]$ uname -a Linux …

继续阅读 »