朱熹庞德 发表于 2010-01-28 11:54

samp源码方式安装


一. 配置主机
#/usr/dt/bin/dtconfig –d   以文字方式启动,关闭图形(需要重启)
#svcadm disable svc:/network/smtp:sendmail 关闭sendmail
#svcadm disable svc:/application/management/wbem:default
#svcadm disable svc:/network/inetd:default
#svcadm disable svc:/system/cron:default
#svcadm disable svc:/system/filesystem/autofs:default
#svcadm disable svc:/network/rpc/bind:default
#vi .bashrc
PATH=/usr/sfw/bin/:/usr/ccs/bin:$PATH
#.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
二.apache源代码安装
./configure --prefix=/opt/apache2 --enable-so --with-mpm=worker
#make
#make install
#vi apachectl添加如下
LD_PRELOAD=/usr/lib/libmtmalloc.so.1
export LD_PRELOAD
三.mysql安装
略…下载已经编译好的mysql版本,按照文档,进行安装
四.php安装
首先安装
freetype-2.3.9,gd-2.0.35,jpeg-6b,libpng-1.2.35, zlib-1.2.3
freetype安装时需要gmake,可以更改下make的名字继续安装
jpeg的./configure --prefix=/usr/local/jpeg --enable-shared --enable-static
gd的安装
./configure --prefix=/usr/local/gd --with-freetype=/usr/local/freetype/ --with-jpeg=/usr/local/jpeg/ --with-png=/usr/local/libpng/
在安装PHP
./configure --prefix=/opt/php --with-mysql=/opt/mysql --with-apxs2=/opt/apache2/bin/apxs--with-zlib-dir=/usr/local/zlib/ --with-freetype-dir=/usr/local/freetype/ --with-jpeg-dir=/usr/local/jpeg/ --with-gd=/usr/local/gd/ --with-png-dir=/usr/local/libpng/ --enable-ftp


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75896/showart_2162957.html
页: [1]
查看完整版本: samp源码方式安装